blob: 690168749783519d8acc33a7aab451d6d6559e9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
all: d3.js d3.layout.js
d3version=2.4.3
d3.%: .d3/d3-$(d3version) Makefile
echo '/* $@ - Data Driven Documents' > $@
echo ' * Version: $(d3version)' >> $@
echo ' * Homepage: http://mbostock.github.com/d3/' >> $@
echo ' * Copyright: 2010, Michael Bostock' >> $@
echo ' * Licence: 3-Clause BSD' >> $@
echo ' *' >> $@
sed 's/./ * &/' $</LICENSE >> $@
echo ' */' >> $@
cat $</$@ >> $@
.d3/d3-%.tar.gz: Makefile
mkdir -p $(@D)
wget https://github.com/mbostock/d3/tarball/v$* -O $@
.d3/d3-%: .d3/d3-%.tar.gz Makefile
mkdir -p $<.d
cd $<.d && tar xzf ../d3-$*.tar.gz
mv $<.d/*/ $@
|