2012-07-14 07:27:33 +00:00
|
|
|
|
2012-07-14 17:54:38 +00:00
|
|
|
MAPS=
|
|
|
|
MAPS+=$(wildcard ../maps/trampoline*.map)
|
|
|
|
MAPS+=$(wildcard ../maps/flood*.map)
|
2012-07-14 09:28:34 +00:00
|
|
|
MAPS+=$(wildcard ../maps/contest?.map ../maps/contest10.map)
|
|
|
|
MAPS+=$(wildcard ../maps/ems*.map)
|
|
|
|
MAPS+=../maps/pacman.map ../maps/pacman2.map
|
2012-07-14 07:27:33 +00:00
|
|
|
|
2012-07-14 18:24:12 +00:00
|
|
|
all: maps.js sprites.png
|
2012-07-14 07:27:33 +00:00
|
|
|
|
|
|
|
maps.js: mapsToJson.js $(MAPS)
|
|
|
|
./mapsToJson.js $(MAPS) > maps.js
|
2012-07-14 09:28:34 +00:00
|
|
|
|
2012-07-14 18:24:12 +00:00
|
|
|
SPRITES=earth.png empty.png lambda.png liftclosed.png liftopen.png robot.png rock.png wall.png
|
|
|
|
SPRITES+=$(wildcard trampoline?.png)
|
|
|
|
SPRITES+=$(wildcard target?.png)
|
|
|
|
|
|
|
|
sprites.png: $(SPRITES)
|
|
|
|
convert -background "#000000" -append $(SPRITES) tmp_sprites.png
|
|
|
|
pngcrush -rem alla tmp_sprites.png tmp_sprites1.png
|
|
|
|
rm tmp_sprites.png
|
|
|
|
optipng -o9 tmp_sprites1.png
|
|
|
|
mv tmp_sprites1.png sprites.png
|
|
|
|
|
2012-07-14 09:28:34 +00:00
|
|
|
clean:
|
2012-07-14 18:24:12 +00:00
|
|
|
rm -f maps.js sprites.png
|
2012-07-14 09:28:34 +00:00
|
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
|
|
|
|
# just build it everytime
|
|
|
|
.PHONY: maps.js
|