blob: 22d26c2ede8be81c548b7ebc5e4cb81243b459f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
OUTPUT=../generated
GENERATED=$(OUTPUT)/tiles.h $(OUTPUT)/player.h $(OUTPUT)/enemy.h $(OUTPUT)/map.h
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)/*
|