aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2017-11-16 13:18:30 +0100
committernsensfel <SpamShield0@noot-noot.org>2017-11-16 13:18:30 +0100
commita30029960e8104d04ba09646a7b01256a26e47c6 (patch)
treec61a0644f23f4a9300adf8e7c6bac893775f76aa
parent35e53a58975f1454dd841bda0c6b90be334f9158 (diff)
downloadtacticians-client-json-comm.zip
tacticians-client-json-comm.tar.bz2
Fixes assets being re-generated every build.json-comm
-rw-r--r--src/asset/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/asset/Makefile b/src/asset/Makefile
index a3c68e9..37afeb6 100644
--- a/src/asset/Makefile
+++ b/src/asset/Makefile
@@ -18,17 +18,27 @@ TILE_STYLE_TEMPLATE ?= $(TEMPLATE_DIR)/tile_entry.css
TOTAL_NUMBER_OF_COLORS = \
$(shell expr $(NUMBER_OF_TILE_TYPES) + $(NUMBER_OF_CHAR_TYPES))
+SENSITIVITY_LIST = \
+ Makefile \
+ $(GENERATE_N_COLORS_SCRIPT) $(GENERATE_N_ENTITIES)
+
################################################################################
-build:
+build: $(TILE_STYLE_CSS) $(CHAR_STYLE_CSS)
+
+clean:
+ rm -f $(CHAR_STYLE_CSS) $(TILE_STYLE_CSS)
+
+reset: clean
+
+
+$(TILE_STYLE_CSS): $(SENSITIVITY_LIST) $(TILE_STYLE_TEMPLATE)
$(GENERATE_N_COLORS_SCRIPT) $(TOTAL_NUMBER_OF_COLORS) 0 | \
$(GENERATE_N_ENTITIES) $(NUMBER_OF_TILE_TYPES) $(TILE_STYLE_TEMPLATE) > \
$(TILE_STYLE_CSS)
+
+$(CHAR_STYLE_CSS): $(SENSITIVITY_LIST) $(CHAR_STYLE_TEMPLATE)
$(GENERATE_N_COLORS_SCRIPT) $(TOTAL_NUMBER_OF_COLORS) \
$(NUMBER_OF_TILE_TYPES) | \
$(GENERATE_N_ENTITIES) $(NUMBER_OF_CHAR_TYPES) $(CHAR_STYLE_TEMPLATE) > \
$(CHAR_STYLE_CSS)
-clean:
- rm -f $(CHAR_STYLE_CSS) $(TILE_STYLE_CSS)
-
-reset: clean