Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 128 lines (112 sloc) 2.896 kB
d617fa2 @mbostock Polymaps v1.0.0.
mbostock authored
1 JS_FILES = \
2 src/start.js \
3 src/Id.js \
4 src/Svg.js \
a452bc4 @mbostock Layer transforms!
mbostock authored
5 src/Transform.js \
d617fa2 @mbostock Polymaps v1.0.0.
mbostock authored
6 src/Cache.js \
7 src/Url.js \
8 src/Dispatch.js \
9 src/Queue.js \
10 src/Map.js \
11 src/Layer.js \
12 src/Image.js \
13 src/GeoJson.js \
14 src/Dblclick.js \
15 src/Drag.js \
16 src/Wheel.js \
17 src/Arrow.js \
18 src/Hash.js \
19 src/Interact.js \
20 src/Compass.js \
21 src/Grid.js \
22 src/end.js
23
5b89a93 @mbostock Add lib/google-compiler.
mbostock authored
24 JS_COMPILER = \
25 java -jar lib/google-compiler/compiler-20100616.jar \
d617fa2 @mbostock Polymaps v1.0.0.
mbostock authored
26 --charset UTF-8
27
14d1266 @mbostock Checkpoint Polymaps website.
mbostock authored
28 WWW_FILES = \
29 polymaps.min.js \
30 lib/nns/nns.min.js \
31 lib/blueprint/screen.css \
f131e21 @mbostock Merge branch 'master' of github.com:simplegeo/polymaps
mbostock authored
32 lib/modernizr/modernizr.min.js \
f9fe2ef @mbostock Add statehood example to the website.
mbostock authored
33 lib/colorbrewer/colorbrewer.css \
34 lib/protovis/protodata.min.js \
14d1266 @mbostock Checkpoint Polymaps website.
mbostock authored
35 www/index.html \
36 www/logo-big.js \
37 www/logo-small.js \
38 www/style.css
39
40 WWW_EX_FILES = \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
41 examples/cluster/kmeans.js \
42 examples/tilestache/dot.gif \
43 examples/overlay/sf1906.png \
ea20d17 @mbostock Add population example to the website.
mbostock authored
44 examples/population/population.css \
f9fe2ef @mbostock Add statehood example to the website.
mbostock authored
45 examples/statehood/fips.js \
3404a99 @mbostock Add streets example to the website.
mbostock authored
46 examples/streets/streets.json \
2a49605 @mbostock Add transform example to the website.
mbostock authored
47 examples/transform/nypl.js \
b29f362 @mbostock Add unemployment example to the website.
mbostock authored
48 examples/unemployment/unemployment-data.js \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
49 www/ex/bing.html \
50 www/ex/bing-sm.png \
51 www/ex/blue-marble.html \
52 www/ex/blue-marble-sm.png \
53 www/ex/cluster.html \
54 www/ex/cluster-sm.png \
55 www/ex/features-sm.png \
0d63628 @mbostock Add tilestache/flickr example to the website.
mbostock authored
56 www/ex/flickr.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
57 www/ex/flickr-sm.png \
58 www/ex/grid.html \
59 www/ex/grid-sm.png \
60 www/ex/logo-big.png \
61 www/ex/logo-small.png \
62 www/ex/midnight-commander.html \
63 www/ex/midnight-commander-sm.png \
64 www/ex/overlay.html \
65 www/ex/overlay-sm.png \
71b699f @mbostock Add cloudmade/pale-dawn example to the website.
mbostock authored
66 www/ex/pale-dawn.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
67 www/ex/pale-dawn-sm.png \
ea20d17 @mbostock Add population example to the website.
mbostock authored
68 www/ex/population.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
69 www/ex/population-sm.png \
0a6ffa5 @mbostock Add shadow example to the website.
mbostock authored
70 www/ex/shadow.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
71 www/ex/shadow-sm.png \
f9fe2ef @mbostock Add statehood example to the website.
mbostock authored
72 www/ex/statehood.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
73 www/ex/statehood-sm.png \
3404a99 @mbostock Add streets example to the website.
mbostock authored
74 www/ex/streets.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
75 www/ex/streets-sm.png \
5a4506b @mbostock Add tiles example to the website.
mbostock authored
76 www/ex/tiles.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
77 www/ex/tiles-sm.png \
2a49605 @mbostock Add transform example to the website.
mbostock authored
78 www/ex/transform.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
79 www/ex/transform-sm.png \
b29f362 @mbostock Add unemployment example to the website.
mbostock authored
80 www/ex/unemployment.html \
30bc68b @mbostock Add overlay example to the website.
mbostock authored
81 www/ex/unemployment-sm.png
14d1266 @mbostock Checkpoint Polymaps website.
mbostock authored
82
8acd27f @mbostock Add docs to website.
mbostock authored
83 WWW_DOCS_FILES = \
84 www/docs/index.html
85
1bf2eb9 @mbostock First example for website.
mbostock authored
86 PYGMENT = /Library/Pygments-1.3.1/pygmentize
87 PYGMENT_STYLE = trac
88
d617fa2 @mbostock Polymaps v1.0.0.
mbostock authored
89 all: polymaps.min.js polymaps.js
90
91 polymaps.min.js: polymaps.js
92 rm -f $@
93 echo "// $(shell git rev-parse --short HEAD)" >> $@
94 $(JS_COMPILER) < polymaps.js >> $@
95
96 polymaps.js: $(JS_FILES) Makefile
97 rm -f $@
98 echo "// $(shell git rev-parse HEAD)" >> $@
99 cat $(JS_FILES) >> $@
100 chmod a-w $@
101
1bf2eb9 @mbostock First example for website.
mbostock authored
102 %.d: %.m4 Makefile www/m4d.sh
103 www/m4d.sh $< > $@
104
105 include $(patsubst %.html,%.d,$(filter %.html,$(WWW_EX_FILES)))
106
8acd27f @mbostock Add docs to website.
mbostock authored
107 html: $(WWW_FILES) $(WWW_EX_FILES) $(WWW_DOCS_FILES) Makefile
14d1266 @mbostock Checkpoint Polymaps website.
mbostock authored
108 rm -rf $@
8acd27f @mbostock Add docs to website.
mbostock authored
109 mkdir $@ $@/ex $@/docs
14d1266 @mbostock Checkpoint Polymaps website.
mbostock authored
110 cp $(WWW_FILES) $@
111 cp $(WWW_EX_FILES) $@/ex
8acd27f @mbostock Add docs to website.
mbostock authored
112 cp $(WWW_DOCS_FILES) $@/docs
14d1266 @mbostock Checkpoint Polymaps website.
mbostock authored
113
1bf2eb9 @mbostock First example for website.
mbostock authored
114 %.html: %.m4 Makefile
115 rm -f $@
116 pushd $(dir $<) && m4 -P < $(notdir $<) > $(notdir $@) && popd
117 chmod a-w $@
118
119 %.js.html: %.js Makefile
120 $(PYGMENT) -f html -O cssclass=syntax,style=$(PYGMENT_STYLE) -l js $(filter %.js,$^) > $@
121
122 %.js.txt: %.js Makefile
123 cat $(filter %.js,$^) > $@
124
d617fa2 @mbostock Polymaps v1.0.0.
mbostock authored
125 clean:
14d1266 @mbostock Checkpoint Polymaps website.
mbostock authored
126 rm -rf polymaps.js polymaps.min.js html
1bf2eb9 @mbostock First example for website.
mbostock authored
127 rm -f $(patsubst %.html,%.d,$(filter %.html,$(WWW_EX_FILES)))
Something went wrong with that request. Please try again.