MAPS= MAPS+=$(wildcard ../maps/trampoline*.map) MAPS+=$(wildcard ../maps/flood*.map) MAPS+=$(wildcard ../maps/contest?.map ../maps/contest10.map) MAPS+=$(wildcard ../maps/ems*.map) MAPS+=../maps/pacman.map ../maps/pacman2.map all: maps.js maps.js: mapsToJson.js $(MAPS) ./mapsToJson.js $(MAPS) > maps.js clean: rm -f maps.js .PHONY: all clean # just build it everytime .PHONY: maps.js