Skip to content

Commit

Permalink
add a "whole tile set" target, e.g. ‹make z_eur›
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Feb 3, 2024
1 parent 9bb870e commit 358f717
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.tiles
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ CP:=)
# Get the tiles listed in each list file
.SECONDEXPANSION:
TILE_FILES = $(addsuffix .dsf, $(addprefix Ortho4XP/Tiles/*/*/*/, $(basename $(shell cat $(TILENAME)_tile_list.$* 2>/dev/null ) ) ) )
TILE_FILES_ALL = $(addsuffix .dsf, $(addprefix Ortho4XP/Tiles/*/*/*/, $(basename $(shell cat $(TILENAME)_tile_list 2>/dev/null ) ) ) )

all: $(ZIPS)

Expand All @@ -45,6 +46,12 @@ all: $(ZIPS)
#
# Work on tile lists
#
z_$(TILENAME): $(TILENAME)_tile_list $${TILE_FILES_ALL}
@echo "[$@]"
@mkdir -p $@
@cp -r Ortho4XP/Tiles/zOrtho4XP_*/'Earth nav data' $@/.
@cp -r Ortho4XP/Tiles/zOrtho4XP_*/terrain $@/.
@cp -r Ortho4XP/Tiles/zOrtho4XP_*/textures $@/

z_$(TILENAME)_%: $(TILENAME)_tile_list.% $${TILE_FILES}
@echo "[$@]"
Expand Down

0 comments on commit 358f717

Please sign in to comment.