aboutsummaryrefslogtreecommitdiff
path: root/game/data/Makefile
blob: 95ffa634d2d023ba153a7a0fd784d66c58cb3830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
OUTPUT := ../generated
GENERATED := $(OUTPUT)/tiles.h $(OUTPUT)/player.h $(OUTPUT)/enemy.h $(OUTPUT)/map.h

.DELETE_ON_ERROR: $(GENERATED)
all: $(GENERATED)

$(OUTPUT)/tiles.h: tiles.png
	../../tools/png2tiles.py -i tiles $< > $@

$(OUTPUT)/player.h: player.png
	../../tools/png2sprites.py -i player_sprite $< > $@

$(OUTPUT)/enemy.h: enemy.png
	../../tools/png2sprites.py -i enemy_sprite $< > $@

$(OUTPUT)/map.h: map.json map_conf.json
	../../tools/map.py --aplib --max-ents 11 --room-height 21 map.json map > $@

.PHONY: all clean
clean:
	rm -f $(OUTPUT)/*