diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-01-02 22:22:09 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-01-02 22:23:46 +0100 |
| commit | 63767a954c71b05ac529679fa5160bb7d6f05636 (patch) | |
| tree | cd4abae83c1421864565e02e9c148575b0203742 /maps/Makefile | |
| parent | 701bb96d962b1051a42ff432185f9e300a8d4bb7 (diff) | |
| download | muhqs-game-63767a954c71b05ac529679fa5160bb7d6f05636.tar.gz muhqs-game-63767a954c71b05ac529679fa5160bb7d6f05636.zip | |
add map Makefile and don't show generated maps by default
Diffstat (limited to 'maps/Makefile')
| -rw-r--r-- | maps/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/maps/Makefile b/maps/Makefile new file mode 100644 index 00000000..45254c04 --- /dev/null +++ b/maps/Makefile @@ -0,0 +1,20 @@ +.PHONY: all clean + +.DEFAULT_GOAL = all + +MAPS = $(shell find . -name "*.map") + +VERBOSE = @ + +PNGS = $(MAPS:.map=.png) + +MAKEFILE_LIST = Makefile + +all: $(PNGS) + +%.png : %.map $(MAKEFILE_LIST) + @echo "generate map › $@" + $(VERBOSE) python3 ../scripts/generate_map_img.py $< + +clean: + rm -f $(PNGS) |
