summaryrefslogtreecommitdiff
path: root/media/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'media/Makefile')
-rw-r--r--media/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/media/Makefile b/media/Makefile
index a9a1efcc..69016874 100644
--- a/media/Makefile
+++ b/media/Makefile
@@ -1,8 +1,8 @@
all: d3.js d3.layout.js
-d3version=2.7.0
+d3version=2.4.3
-d3.%: .d3/d3-$(d3version)
+d3.%: .d3/d3-$(d3version) Makefile
echo '/* $@ - Data Driven Documents' > $@
echo ' * Version: $(d3version)' >> $@
echo ' * Homepage: http://mbostock.github.com/d3/' >> $@
@@ -12,10 +12,10 @@ d3.%: .d3/d3-$(d3version)
sed 's/./ * &/' $</LICENSE >> $@
echo ' */' >> $@
cat $</$@ >> $@
-.d3/d3-%.tar.gz:
+.d3/d3-%.tar.gz: Makefile
mkdir -p $(@D)
wget https://github.com/mbostock/d3/tarball/v$* -O $@
-.d3/d3-%: .d3/d3-%.tar.gz
+.d3/d3-%: .d3/d3-%.tar.gz Makefile
mkdir -p $<.d
cd $<.d && tar xzf ../d3-$*.tar.gz
- mv $<.d/*/ $@ \ No newline at end of file
+ mv $<.d/*/ $@