summaryrefslogtreecommitdiff
path: root/visualize/static/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-10-27 11:20:13 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-10-27 11:20:13 -0400
commit8848132bdd9c0e30b5ec0b656af90063344095ce (patch)
tree36ab8fe6e30c87baab26c26152a10653a9356d22 /visualize/static/Makefile
parent593fb6005cef063f9f35af8a4a71f4ec96654583 (diff)
don't bundle the autogenerated js files
Diffstat (limited to 'visualize/static/Makefile')
-rw-r--r--visualize/static/Makefile16
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: