summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8ef6ec2e090cc00c589bf5dd763a79aed940d5fe (plain)
  1. DATAFILES = src/data/bydele.json
  2. all: data-transform build-compact
  3. init: fetch-vendor-kk
  4. # TODO: Call node (not nodejs) when Nodejs 6 (Debian buster) is stable
  5. build-compact: $(DATAFILES) \
  6. $(wildcard src/js/*.js src/js/*/*.js src/js/*/*/*.js)
  7. nodejs /usr/lib/nodejs/requirejs/r.js -o etc/build.js
  8. touch $@
  9. newfiles-vendor-kk = vendor/kk/*.json
  10. fetch-vendor-kk:
  11. bin/get-kk.sh
  12. touch $@
  13. data-transform: $(DATAFILES)
  14. src/data/%.json: vendor/kk/%.geojson
  15. mkdir $(dir $@)
  16. jq --tab --sort-keys . $< > $@
  17. clean:
  18. rm -rf build
  19. rm -f build-compact
  20. distclean: clean
  21. rm -f $(newfiles-vendor-kk)
  22. rm -f fetch-vendor-kk
  23. .PHONY: all init build-compact data-transform clean distclean