forked from ffnord/ffmap-d3
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
26 lines (18 loc) · 942 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CAT=cat
GEOMAP_SRC = config.js lib/loader.js lib/links.js lib/html5slider.js lib/geomap.js lib/init.js
GRAPH_SRC = config.js lib/loader.js lib/links.js lib/pacman.js lib/graph.js lib/init.js
LIST_SRC = config.js lib/loader.js lib/links.js lib/list.js lib/init.js
all: download_vendor geomap_compiled.js graph_compiled.js list_compiled.js
clean:
rm -f www/*_compiled.js
rm -f www/lib/*.js
%_compiled.js:
$(CAT) $^ > www/$@
geomap_compiled.js: $(GEOMAP_SRC)
graph_compiled.js: $(GRAPH_SRC)
list_compiled.js: $(LIST_SRC)
download_vendor:
wget -O www/lib/d3.min.js http://cdnjs.cloudflare.com/ajax/libs/d3/3.4.1/d3.min.js
wget -O www/lib/leaflet.js http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.2/leaflet.js
wget -O www/lib/jquery.tablesorter.min.js http://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.13.3/jquery.tablesorter.min.js
wget -O www/lib/jquery-1.11.0.min.js http://code.jquery.com/jquery-1.11.0.min.js