diff options
Diffstat (limited to 'visualize/static/Makefile')
-rw-r--r-- | visualize/static/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/visualize/static/Makefile b/visualize/static/Makefile index f68ecc4b..8c704a99 100644 --- a/visualize/static/Makefile +++ b/visualize/static/Makefile @@ -1,8 +1,17 @@ d3version=2.6.1 +_targets=d3.js d3.layout.js d3.geom.js +targets=$(_targets) $(patsubst %.js,%.min.js,$(_targets)) +gitignore=.d3 + # Force creating the d3 directory before we even evaluate how to make d3.js -all: .d3/d3-$(d3version) - $(MAKE) d3.min.js d3.layout.min.js d3.geom.min.js +all: .d3/d3-$(d3version) .gitignore + $(MAKE) $(targets) + +clean: PHONY + rm -rf .d3 + +#### d3.%: .d3/d3-$(d3version)/d3.% .d3/d3-$(d3version)/LICENSE Makefile echo '/* $@ - Data Driven Documents' > $@ @@ -27,5 +36,6 @@ d3.%: .d3/d3-$(d3version)/d3.% .d3/d3-$(d3version)/LICENSE Makefile cp -r $</*/ $@ rm $@/*.min.js +#### + include ../../sitestatic/js.mk -.SECONDARY: |