summaryrefslogtreecommitdiff
path: root/visualize/static/Makefile
blob: 9a7f9828c12434549c88c9af28b28b206a64ab3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
include ../../common.mk

d3-ver=3.0.6
targets = d3-$(d3-ver)

target-files=$(addsuffix .js,$(targets)) $(addsuffix .min.js,$(targets))
all: $(target-files)
clean:
	rm -f -- $(target-files)

d3-$(d3-ver).js: %: \
	$(www)/https/raw.github.com/mbostock/d3/v$(d3-ver)/d3.js \
	$(www)/https/raw.github.com/mbostock/d3/v$(d3-ver)/LICENSE
	{ \
	  echo '/*! $@ - Data Driven Documents' && \
	  echo ' * Version: $(d3-ver)' && \
	  echo ' * Homepage: http://mbostock.github.com/d3/' && \
	  echo ' * Copyright: 2012, Michael Bostock' && \
	  echo ' * Licence: 3-Clause BSD' && \
	  echo ' *' && \
	  sed 's/.*/ * &/' $(<D)/LICENSE && \
	  echo ' */' && \
	  cat $< ;} > $@