From 63767a954c71b05ac529679fa5160bb7d6f05636 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 2 Jan 2021 22:22:09 +0100 Subject: add map Makefile and don't show generated maps by default --- maps/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 maps/Makefile (limited to 'maps') 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) -- cgit v1.2.3