DATAFILES = src/data/bydele.json all: data-transform build-compact init: fetch-vendor-kk # TODO: Call node (not nodejs) when Nodejs 6 (Debian buster) is stable build-compact: $(DATAFILES) \ $(wildcard src/js/*.js src/js/*/*.js src/js/*/*/*.js) nodejs /usr/lib/nodejs/requirejs/r.js -o etc/build.js touch $@ # load httpd service serve-quick: bin/src.psgi serve-compact: build-compact bin/build.psgi newfiles-vendor-kk = vendor/kk/*.json fetch-vendor-kk: bin/get-kk.sh touch $@ data-transform: $(DATAFILES) src/data/%.json: vendor/kk/%.geojson mkdir $(dir $@) jq --tab --sort-keys . $< > $@ clean: rm -rf build rm -f build-compact distclean: clean rm -f $(newfiles-vendor-kk) rm -f fetch-vendor-kk .PHONY: all init build-compact data-transform clean distclean