forked from TileStache/TileStache
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
122 lines (100 loc) · 3.7 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
VERSION:=$(shell cat VERSION)
PACKAGE=TileStache-$(VERSION)
TARBALL=$(PACKAGE).tar.gz
DOCROOT=tilestache.org:public_html/tilestache/www
all: $(TARBALL)
#
live: $(TARBALL) doc
scp $(TARBALL) $(DOCROOT)/download/
rsync -Cr doc/ $(DOCROOT)/doc/
python setup.py register
$(TARBALL): doc
mkdir $(PACKAGE)
ln setup.py $(PACKAGE)/
ln README.md $(PACKAGE)/
ln VERSION $(PACKAGE)/
ln tilestache.cfg $(PACKAGE)/
ln tilestache.cgi $(PACKAGE)/
mkdir $(PACKAGE)/TileStache
ln TileStache/*.py $(PACKAGE)/TileStache/
rm $(PACKAGE)/TileStache/__init__.py
cp TileStache/__init__.py $(PACKAGE)/TileStache/__init__.py
perl -pi -e 's#\bN\.N\.N\b#$(VERSION)#' $(PACKAGE)/TileStache/__init__.py
mkdir $(PACKAGE)/TileStache/Vector
ln TileStache/Vector/*.py $(PACKAGE)/TileStache/Vector/
mkdir $(PACKAGE)/TileStache/Goodies
ln TileStache/Goodies/*.py $(PACKAGE)/TileStache/Goodies/
mkdir $(PACKAGE)/TileStache/Goodies/Caches
ln TileStache/Goodies/Caches/*.py $(PACKAGE)/TileStache/Goodies/Caches/
mkdir $(PACKAGE)/TileStache/Goodies/Providers
ln TileStache/Goodies/Providers/*.py $(PACKAGE)/TileStache/Goodies/Providers/
ln TileStache/Goodies/Providers/*.ttf $(PACKAGE)/TileStache/Goodies/Providers/
mkdir $(PACKAGE)/TileStache/Goodies/VecTiles
ln TileStache/Goodies/VecTiles/*.py $(PACKAGE)/TileStache/Goodies/VecTiles/
mkdir $(PACKAGE)/scripts
ln scripts/*.py $(PACKAGE)/scripts/
mkdir $(PACKAGE)/examples
#ln examples/*.py $(PACKAGE)/examples/
mkdir $(PACKAGE)/doc
ln doc/*.html $(PACKAGE)/doc/
mkdir $(PACKAGE)/man
ln man/*.1 $(PACKAGE)/man/
tar -czf $(TARBALL) $(PACKAGE)
rm -rf $(PACKAGE)
doc:
mkdir doc
pydoc -w TileStache
pydoc -w TileStache.Core
pydoc -w TileStache.Caches
pydoc -w TileStache.Memcache
pydoc -w TileStache.Redis
pydoc -w TileStache.S3
pydoc -w TileStache.Config
pydoc -w TileStache.Vector
pydoc -w TileStache.Vector.Arc
pydoc -w TileStache.Geography
pydoc -w TileStache.Providers
pydoc -w TileStache.Mapnik
pydoc -w TileStache.MBTiles
pydoc -w TileStache.Sandwich
pydoc -w TileStache.Pixels
pydoc -w TileStache.Goodies
pydoc -w TileStache.Goodies.Caches
pydoc -w TileStache.Goodies.Caches.LimitedDisk
pydoc -w TileStache.Goodies.Caches.GoogleCloud
pydoc -w TileStache.Goodies.Providers
pydoc -w TileStache.Goodies.Providers.Composite
pydoc -w TileStache.Goodies.Providers.Cascadenik
pydoc -w TileStache.Goodies.Providers.PostGeoJSON
pydoc -w TileStache.Goodies.Providers.SolrGeoJSON
pydoc -w TileStache.Goodies.Providers.MapnikGrid
pydoc -w TileStache.Goodies.Providers.MirrorOSM
pydoc -w TileStache.Goodies.Providers.Monkeycache
pydoc -w TileStache.Goodies.Providers.UtfGridComposite
pydoc -w TileStache.Goodies.Providers.UtfGridCompositeOverlap
pydoc -w TileStache.Goodies.Providers.TileDataOSM
pydoc -w TileStache.Goodies.Providers.Grid
pydoc -w TileStache.Goodies.Providers.GDAL
pydoc -w TileStache.Goodies.AreaServer
pydoc -w TileStache.Goodies.StatusServer
pydoc -w TileStache.Goodies.Proj4Projection
pydoc -w TileStache.Goodies.ExternalConfigServer
pydoc -w TileStache.Goodies.VecTiles
pydoc -w TileStache.Goodies.VecTiles.server
pydoc -w TileStache.Goodies.VecTiles.client
pydoc -w TileStache.Goodies.VecTiles.geojson
pydoc -w TileStache.Goodies.VecTiles.topojson
pydoc -w TileStache.Goodies.VecTiles.mvt
pydoc -w TileStache.Goodies.VecTiles.wkb
pydoc -w TileStache.Goodies.VecTiles.ops
pydoc -w scripts/tilestache-*.py
mv TileStache.html doc/
mv TileStache.*.html doc/
mv tilestache-*.html doc/
perl -pi -e 's#<br><a href="file:/[^"]+">[^<]+</a>##' doc/*.html
cp API.html doc/index.html
perl -pi -e 's#http://tilestache.org/doc/##' doc/index.html
perl -pi -e 's#\bN\.N\.N\b#$(VERSION)#' doc/index.html
clean:
find TileStache -name '*.pyc' -delete
rm -rf $(TARBALL) doc