aboutsummaryrefslogtreecommitdiff
path: root/src/static/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-03-23 16:22:45 +0100
committerlonkaars <loek@pipeframe.xyz>2023-03-23 16:22:45 +0100
commit9df9b163852cd5fd2462e1dec25ad4b00ca12a8c (patch)
tree9590f1e2068871920ffdd214873ca60583276ab0 /src/static/makefile
parent657f88952d35145b46d86a04e4b681d91f878c3a (diff)
add scripts for converting tiles to separate png images for tilemap editingtilemap-build-system
Diffstat (limited to 'src/static/makefile')
-rw-r--r--src/static/makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/static/makefile b/src/static/makefile
index d84e31e..6025a55 100644
--- a/src/static/makefile
+++ b/src/static/makefile
@@ -1,6 +1,8 @@
XXD := xxd
TILEPACK := ../../scripts/tilepack
MANIFEST2HEADER := ../../scripts/manifest2header.awk
+TILEDMK := ../../scripts/tiled.mk.awk
+TILEMAP2TILED := ../../scripts/tilemap2tiled
INPUT += air.hex \
shop.hex \
@@ -31,5 +33,10 @@ tilemap.h: manifest.txt
$(MANIFEST2HEADER) $< > $@
cat $(USER_META) >> $@
+tiled.mk: manifest.txt
+ $(TILEDMK) < $< > $@
+
+include tiled.mk
+
clean:
- $(RM) $(OUT_BIN) $(OUT_META) manifest.txt tilemap.h tilemap.bin
+ $(RM) -r $(OUT_BIN) $(OUT_META) manifest.txt tilemap.h tilemap.bin tiled.mk tiled