summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2018-08-21 14:44:16 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2018-08-21 14:44:16 +0200 |
commit | 3713d6089adccd96385b0d079bb72587d2122848 (patch) | |
tree | 35f5ea6aceef626ed95039cbe29cd49a65000992 /src/asset/Makefile | |
parent | e4e5a4949a1296b2f756ba9c7033a9eddfaa3594 (diff) |
Adds tiles generation to the Makefiles.
Diffstat (limited to 'src/asset/Makefile')
-rw-r--r-- | src/asset/Makefile | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/asset/Makefile b/src/asset/Makefile index 7cf17d3..ab464b2 100644 --- a/src/asset/Makefile +++ b/src/asset/Makefile @@ -2,13 +2,20 @@ ## CONFIG ###################################################################### ################################################################################ SRC_DIR ?= ${CURDIR}/src/ -TILE_CLASSES_DIR ?= ${CURDIR}/tile/class -TILE_FRONTIER_DIR ?= ${CURDIR}/tile/frontier +TILE_DIR ?= ${CURDIR}/tile/ +TILE_CLASSES_DIR ?= $(TILE_DIR)/class/ +TILE_FRONTIER_DIR ?= $(TILE_DIR)/frontier/basic/ WWW_DIR ?= ${CURDIR}/www/ +WWW_TILES_DIR ?= $(WWW_DIR)/svg/tile/ +TILE_WITNESS ?= $(WWW_TILES_DIR)/.witness + +GEN_ALL_TILES_EXEC ?= $(SRC_DIR)/generate_all_tiles.py ################################################################################ ## MAKEFILE MAGIC ############################################################## ################################################################################ +TILE_CLASSES_FILES = $(wildcard $(TILE_CLASSES_DIR)/*/*) +TILE_FRONTIER_FILES = $(wildcard $(TILE_FRONTIER_DIR)/*) ################################################################################ ## SANITY CHECKS ############################################################### @@ -17,12 +24,16 @@ WWW_DIR ?= ${CURDIR}/www/ ################################################################################ ## TARGET RULES ################################################################ ################################################################################ -build: +build: $(TILE_WITNESS) clean: reset: + ################################################################################ ## INTERNAL RULES ############################################################## ################################################################################ +$(TILE_WITNESS): $(TILE_CLASSES_FILES) $(TILE_FRONTIER_FILES) + $(GEN_ALL_TILES_EXEC) $(WWW_TILES_DIR) $(TILE_CLASSES_DIR) $(TILE_FRONTIER_DIR) + touch $@ |