-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathGNUmakefile.in
178 lines (137 loc) · 3.56 KB
/
GNUmakefile.in
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
#-----------------------------------------------------
#
# Configuration directives are in postgis_config.h
#
#-----------------------------------------------------
# todo: add all subdirs
SUBDIRS = liblwgeom libpgcommon regress postgis loader utils @RASTER@ @TOPOLOGY@
# todo: add more rules here, like uninstall, clean...
all install uninstall noop clean distclean check:
for s in $(SUBDIRS); do \
echo "---- Making $@ in $${s}"; \
$(MAKE) -C $${s} $@ || exit 1; \
done;
@if test x"$@" = xall; then \
echo "PostGIS was built successfully. Ready to install."; \
fi
install: all
uninstall: docs-uninstall comments-uninstall
clean: docs-clean clean-local
clean-local:
rm -f postgis.sql postgis_upgrade.sql
# TODO: drop 'test' target..
test: check
check: all
distclean: clean distclean-local
distclean-local: clean
rm -Rf autom4te.cache
rm -f config.log config.cache config.status
rm -f postgis_config.h
maintainer-clean:
@echo '------------------------------------------------------'
@echo 'This command is intended for maintainers to use; it'
@echo 'deletes files that may need special tools to rebuild.'
@echo '------------------------------------------------------'
$(MAKE) -C doc maintainer-clean
$(MAKE) -C postgis maintainer-clean
$(MAKE) -C liblwgeom maintainer-clean
$(MAKE) -C java/jdbc maintainer-clean
$(MAKE) distclean
rm -f configure
garden:
@echo '------------------------------------------------------'
@echo 'Generating SQL file from Documentation'
@echo '------------------------------------------------------'
$(MAKE) -C doc garden
@echo '------------------------------------------------------'
@echo 'Launch regression Test'
@echo '------------------------------------------------------'
$(MAKE) -C regress garden
#test-clean:
# $(MAKE) -C regress clean
#liblwgeom:
# $(MAKE) -C liblwgeom
#
#liblwgeom-clean:
# $(MAKE) -C liblwgeom clean
#postgis: liblwgeom
# $(MAKE) -C postgis
#
#postgis-clean:
# $(MAKE) -C postgis clean
#
#postgis-install:
# $(MAKE) -C postgis install
#
#postgis-uninstall:
# $(MAKE) -C postgis uninstall
#loaderdumper:
# $(MAKE) -C loader
#
#loaderdumper-clean:
# $(MAKE) -C loader clean
#
#loaderdumper-install:
# $(MAKE) -C loader install
#
#loaderdumper-uninstall:
# $(MAKE) -C loader uninstall
templategis:
$(MAKE) -C extras/template_gis
templategis-clean:
$(MAKE) -C extras/template_gis clean
templategis-install:
$(MAKE) -C extras/template_gis install
templategis-uninstall:
$(MAKE) -C extras/template_gis uninstall
docs:
$(MAKE) -C doc
docs-clean:
$(MAKE) -C doc clean
comments:
$(MAKE) -C doc comments
cheatsheets:
$(MAKE) -C doc cheatsheets
comments-install:
$(MAKE) -C doc comments-install
comments-uninstall:
$(MAKE) -C doc comments-uninstall
docs-install:
$(MAKE) -C doc install
docs-uninstall:
$(MAKE) -C doc uninstall
#utils:
# $(MAKE) -C utils
configure: configure.in
./autogen.sh
config.status: configure
./configure
ChangeLog.svn:
svn2cl --authors=authors.svn -i -o ChangeLog.svn
#raster:
# $(MAKE) -C raster all
#
#raster-clean:
# $(MAKE) -C raster clean
#
#raster-distclean:
# $(MAKE) -C raster distclean
#
#raster-install:
# $(MAKE) -C raster install
#
#raster-check:
# $(MAKE) -C raster check
raster-post-install-check:
$(MAKE) -C raster post-install-check
raster-sql:
$(MAKE) -C raster rtpostgis.sql
astyle:
./astyle.sh
commit:
$(MAKE) astyle && $(MAKE) clean && $(MAKE) check && svn commit
authors.git: authors.svn
sed -e 's/:/ = /' authors.svn > authors.git
svnrebase: authors.git
git svn rebase --authors-file authors.git
.PHONY: utils liblwgeom ChangeLog.svn raster