aboutsummaryrefslogtreecommitdiff
path: root/maps/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-09-13 13:17:18 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2021-09-13 13:17:18 +0200
commit3482f66ce348d7dd0e5d2f72fa3ab370c5051b8c (patch)
tree893094690b81544c8ffc3364d301c7a4946b05ff /maps/Makefile
parent0e3172f314b69fd913e8db0bfc040cf722e4f2d5 (diff)
downloadmuhqs-game-3482f66ce348d7dd0e5d2f72fa3ab370c5051b8c.tar.gz
muhqs-game-3482f66ce348d7dd0e5d2f72fa3ab370c5051b8c.zip
[maps] add new tyrant map, tiles and improve map generation script
Diffstat (limited to 'maps/Makefile')
-rw-r--r--maps/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/maps/Makefile b/maps/Makefile
index 98fac22e..9ed6dc36 100644
--- a/maps/Makefile
+++ b/maps/Makefile
@@ -1,20 +1,19 @@
-.PHONY: all clean
-
-.DEFAULT_GOAL = all
-
MAPS = $(shell find . -name "*.yml")
VERBOSE = @
PNGS = $(MAPS:.yml=.png)
+GENERATE_MAP_IMG=../scripts/generate_map_img.py
+
MAKEFILE_LIST = Makefile
+.PHONY: all clean
all: $(PNGS)
-%.png : %.yml $(MAKEFILE_LIST)
+%.png : %.yml $(MAKEFILE_LIST) $(GENERATE_MAP_IMG)
@echo "generate map › $@"
- $(VERBOSE) python3 ../scripts/generate_map_img.py $<
+ $(VERBOSE) $(GENERATE_MAP_IMG) $<
clean:
rm -f $(PNGS)