From f494e4871e005895ef47b99ff70bad45d39ee6ea Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 16 May 2018 17:30:42 +0200 Subject: Add target build-compact. Strip not yet implemented use of app places. --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9e82115..8ef6ec2 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,15 @@ DATAFILES = src/data/bydele.json -all: data-transform +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 $@ + newfiles-vendor-kk = vendor/kk/*.json fetch-vendor-kk: bin/get-kk.sh @@ -16,9 +22,11 @@ src/data/%.json: vendor/kk/%.geojson 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 data-transform clean distclean +.PHONY: all init build-compact data-transform clean distclean -- cgit v1.2.3