From 1084ecf65c5bfcb195cf29e123bf1c33e938bad9 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 16 May 2018 16:35:29 +0200 Subject: Add targets to fetch and transform bydele.json. --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1bf0d24 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +DATAFILES = src/data/bydele.json + +all: fetch-vendor-kk + +newfiles-vendor-kk = vendor/kk/*.json +fetch-vendor-kk: + bin/get-kk.sh + touch $@ + +data-transform: $(DATAFILES) + +src/data/%.json: vendor/kk/%.geojson + jq --tab --sort-keys . $< > $@ + +clean: + +distclean: clean + rm -f $(newfiles-vendor-kk) + rm -f fetch-vendor-kk + +.PHONY: all clean distclean -- cgit v1.2.3