root / Makefile.am @ 5d9e167a
History | View | Annotate | Download (22.4 kB)
1 | e8230860 | Michael Hanselmann | # Ganeti makefile |
---|---|---|---|
2 | e8230860 | Michael Hanselmann | # - Indent with tabs only. |
3 | e8230860 | Michael Hanselmann | # - Keep files sorted; one line per file. |
4 | e8230860 | Michael Hanselmann | # - Directories in lib/ must have their own *dir variable (see hypervisor). |
5 | e8230860 | Michael Hanselmann | # - All directories must be listed DIRS. |
6 | 0a7bed64 | Michael Hanselmann | # - Use autogen.sh to generate Makefile.in and configure script. |
7 | e8230860 | Michael Hanselmann | |
8 | e8230860 | Michael Hanselmann | # Automake doesn't export these variables before version 1.10. |
9 | e8230860 | Michael Hanselmann | abs_top_builddir = @abs_top_builddir@ |
10 | e8230860 | Michael Hanselmann | abs_top_srcdir = @abs_top_srcdir@ |
11 | e8230860 | Michael Hanselmann | |
12 | 6e06b36c | Iustin Pop | ACLOCAL_AMFLAGS = -I autotools |
13 | 4f3d5b76 | Michael Hanselmann | BUILD_BASH_COMPLETION = $(top_srcdir)/autotools/build-bash-completion |
14 | b959138f | Michael Hanselmann | RUN_IN_TEMPDIR = $(top_srcdir)/autotools/run-in-tempdir |
15 | eed5c5df | Michael Hanselmann | CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code |
16 | a4f12da4 | Michael Hanselmann | CHECK_MAN = $(top_srcdir)/autotools/check-man |
17 | 96602be4 | Michael Hanselmann | CHECK_VERSION = $(top_srcdir)/autotools/check-version |
18 | e8230860 | Michael Hanselmann | REPLACE_VARS_SED = autotools/replace_vars.sed |
19 | e8230860 | Michael Hanselmann | |
20 | 2d48a3a2 | Michael Hanselmann | clientdir = $(pkgpythondir)/client |
21 | e8230860 | Michael Hanselmann | hypervisordir = $(pkgpythondir)/hypervisor |
22 | ff9efc03 | Michael Hanselmann | httpdir = $(pkgpythondir)/http |
23 | dc101ecc | Michael Hanselmann | masterddir = $(pkgpythondir)/masterd |
24 | 12426ae1 | Guido Trotter | confddir = $(pkgpythondir)/confd |
25 | 8c229cc7 | Oleksiy Mishchenko | rapidir = $(pkgpythondir)/rapi |
26 | 899c4d2c | Michael Hanselmann | serverdir = $(pkgpythondir)/server |
27 | 9f4bb951 | Michael Hanselmann | watcherdir = $(pkgpythondir)/watcher |
28 | bb44b1ae | Michael Hanselmann | impexpddir = $(pkgpythondir)/impexpd |
29 | e8230860 | Michael Hanselmann | toolsdir = $(pkglibdir)/tools |
30 | e8230860 | Michael Hanselmann | docdir = $(datadir)/doc/$(PACKAGE) |
31 | e8230860 | Michael Hanselmann | |
32 | a4f12da4 | Michael Hanselmann | # Delete output file if an error occurred while building it |
33 | a4f12da4 | Michael Hanselmann | .DELETE_ON_ERROR: |
34 | a4f12da4 | Michael Hanselmann | |
35 | e8230860 | Michael Hanselmann | DIRS = \ |
36 | e8230860 | Michael Hanselmann | autotools \ |
37 | e8230860 | Michael Hanselmann | daemons \ |
38 | e8230860 | Michael Hanselmann | devel \ |
39 | e8230860 | Michael Hanselmann | doc \ |
40 | e8230860 | Michael Hanselmann | doc/examples \ |
41 | d6d9ce45 | Guido Trotter | doc/examples/hooks \ |
42 | c51580b3 | Guido Trotter | doc/examples/gnt-debug \ |
43 | e8230860 | Michael Hanselmann | lib \ |
44 | 2d48a3a2 | Michael Hanselmann | lib/client \ |
45 | f9897b6d | Michael Hanselmann | lib/build \ |
46 | 2f16ea8f | Michael Hanselmann | lib/confd \ |
47 | ff9efc03 | Michael Hanselmann | lib/http \ |
48 | e8230860 | Michael Hanselmann | lib/hypervisor \ |
49 | bb44b1ae | Michael Hanselmann | lib/impexpd \ |
50 | dc101ecc | Michael Hanselmann | lib/masterd \ |
51 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi \ |
52 | 899c4d2c | Michael Hanselmann | lib/server \ |
53 | 9f4bb951 | Michael Hanselmann | lib/watcher \ |
54 | e8230860 | Michael Hanselmann | man \ |
55 | e8230860 | Michael Hanselmann | qa \ |
56 | e8230860 | Michael Hanselmann | test \ |
57 | e8230860 | Michael Hanselmann | test/data \ |
58 | e8230860 | Michael Hanselmann | tools |
59 | e8230860 | Michael Hanselmann | |
60 | 2750b299 | Michael Hanselmann | BUILDTIME_DIR_AUTOCREATE = \ |
61 | c964d962 | Michael Hanselmann | scripts \ |
62 | 6b997854 | Michael Hanselmann | doc/api \ |
63 | 2750b299 | Michael Hanselmann | doc/coverage |
64 | 2750b299 | Michael Hanselmann | |
65 | 2750b299 | Michael Hanselmann | BUILDTIME_DIRS = \ |
66 | 2750b299 | Michael Hanselmann | $(BUILDTIME_DIR_AUTOCREATE) \ |
67 | 6b997854 | Michael Hanselmann | doc/html |
68 | 6b997854 | Michael Hanselmann | |
69 | 6b997854 | Michael Hanselmann | DIRCHECK_EXCLUDE = \ |
70 | 6b997854 | Michael Hanselmann | $(BUILDTIME_DIRS) \ |
71 | 6b997854 | Michael Hanselmann | ganeti-[0-9]*.[0-9]*.[0-9]* \ |
72 | 6b997854 | Michael Hanselmann | doc/html/_* |
73 | 6b997854 | Michael Hanselmann | |
74 | 2750b299 | Michael Hanselmann | all_dirfiles = $(addsuffix /.dir,$(DIRS) $(BUILDTIME_DIR_AUTOCREATE)) |
75 | c964d962 | Michael Hanselmann | |
76 | 2ab2b9f5 | Iustin Pop | MAINTAINERCLEANFILES = \ |
77 | d17e74b4 | Iustin Pop | $(docpng) \ |
78 | b76aac08 | Michael Hanselmann | $(maninput) \ |
79 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst \ |
80 | 84a12e40 | Iustin Pop | doc/news.rst \ |
81 | 84a12e40 | Iustin Pop | vcs-version |
82 | 2ab2b9f5 | Iustin Pop | |
83 | d17e74b4 | Iustin Pop | maintainer-clean-local: |
84 | 6b997854 | Michael Hanselmann | rm -rf $(BUILDTIME_DIRS) |
85 | d17e74b4 | Iustin Pop | |
86 | e8230860 | Michael Hanselmann | CLEANFILES = \ |
87 | 2f16ea8f | Michael Hanselmann | $(addsuffix /*.py[co],$(DIRS)) \ |
88 | c964d962 | Michael Hanselmann | $(all_dirfiles) \ |
89 | 2d48a3a2 | Michael Hanselmann | $(PYTHON_BOOTSTRAP) \ |
90 | e8230860 | Michael Hanselmann | autotools/replace_vars.sed \ |
91 | f154a7a3 | Michael Hanselmann | daemons/daemon-util \ |
92 | 46a8da3b | René Nussbaumer | daemons/ensure-dirs \ |
93 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner \ |
94 | e8230860 | Michael Hanselmann | devel/upload \ |
95 | f72f8622 | Iustin Pop | doc/examples/bash_completion \ |
96 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd \ |
97 | 5d9e167a | Miguel Di Ciurcio Filho | doc/examples/ganeti-kvm-poweroff.initd \ |
98 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron \ |
99 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup \ |
100 | a2442bf9 | Luca Bigliardi | doc/examples/hooks/ipsec \ |
101 | 2ab2b9f5 | Iustin Pop | $(man_MANS) \ |
102 | 2ab2b9f5 | Iustin Pop | $(manhtml) \ |
103 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
104 | e8230860 | Michael Hanselmann | $(nodist_pkgpython_PYTHON) |
105 | e8230860 | Michael Hanselmann | |
106 | c964d962 | Michael Hanselmann | # BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise |
107 | c964d962 | Michael Hanselmann | # it'll cause the target to rebuild every time. |
108 | dc7d2c49 | Michael Hanselmann | BUILT_SOURCES = \ |
109 | dc7d2c49 | Michael Hanselmann | ganeti \ |
110 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
111 | 2d1f248e | Michael Hanselmann | lib/_autoconf.py \ |
112 | c964d962 | Michael Hanselmann | $(all_dirfiles) \ |
113 | 2d1f248e | Michael Hanselmann | $(PYTHON_BOOTSTRAP) |
114 | 2d1f248e | Michael Hanselmann | |
115 | e8230860 | Michael Hanselmann | nodist_pkgpython_PYTHON = \ |
116 | e8230860 | Michael Hanselmann | lib/_autoconf.py |
117 | e8230860 | Michael Hanselmann | |
118 | f9897b6d | Michael Hanselmann | noinst_PYTHON = \ |
119 | f9897b6d | Michael Hanselmann | lib/build/__init__.py |
120 | f9897b6d | Michael Hanselmann | |
121 | e8230860 | Michael Hanselmann | pkgpython_PYTHON = \ |
122 | e8230860 | Michael Hanselmann | lib/__init__.py \ |
123 | a8a76bc2 | Guido Trotter | lib/asyncnotifier.py \ |
124 | e8230860 | Michael Hanselmann | lib/backend.py \ |
125 | e8230860 | Michael Hanselmann | lib/bdev.py \ |
126 | e8230860 | Michael Hanselmann | lib/bootstrap.py \ |
127 | e8230860 | Michael Hanselmann | lib/cli.py \ |
128 | e8230860 | Michael Hanselmann | lib/cmdlib.py \ |
129 | cea881e5 | Michael Hanselmann | lib/compat.py \ |
130 | e8230860 | Michael Hanselmann | lib/config.py \ |
131 | e8230860 | Michael Hanselmann | lib/constants.py \ |
132 | 821d9e43 | Michael Hanselmann | lib/daemon.py \ |
133 | e8230860 | Michael Hanselmann | lib/errors.py \ |
134 | 62e0e880 | Iustin Pop | lib/ht.py \ |
135 | e8230860 | Michael Hanselmann | lib/jqueue.py \ |
136 | 8b537bb0 | Michael Hanselmann | lib/jstore.py \ |
137 | e8230860 | Michael Hanselmann | lib/locking.py \ |
138 | e8230860 | Michael Hanselmann | lib/luxi.py \ |
139 | e8230860 | Michael Hanselmann | lib/mcpu.py \ |
140 | a744b676 | Manuel Franceschini | lib/netutils.py \ |
141 | e8230860 | Michael Hanselmann | lib/objects.py \ |
142 | e8230860 | Michael Hanselmann | lib/opcodes.py \ |
143 | a123dc19 | Michael Hanselmann | lib/qlang.py \ |
144 | 4ca96421 | Michael Hanselmann | lib/query.py \ |
145 | e8230860 | Michael Hanselmann | lib/rpc.py \ |
146 | f12e1736 | René Nussbaumer | lib/runtime.py \ |
147 | e8230860 | Michael Hanselmann | lib/serializer.py \ |
148 | e8230860 | Michael Hanselmann | lib/ssconf.py \ |
149 | e8230860 | Michael Hanselmann | lib/ssh.py \ |
150 | ac2d0fe4 | Michael Hanselmann | lib/storage.py \ |
151 | 76094e37 | Michael Hanselmann | lib/utils.py \ |
152 | 1338f2b4 | Balazs Lecz | lib/uidpool.py \ |
153 | 76094e37 | Michael Hanselmann | lib/workerpool.py |
154 | e8230860 | Michael Hanselmann | |
155 | 2d48a3a2 | Michael Hanselmann | client_PYTHON = \ |
156 | c2855a12 | Michael Hanselmann | lib/client/__init__.py \ |
157 | 02266fe0 | Michael Hanselmann | lib/client/gnt_backup.py \ |
158 | 7b3e7d41 | Michael Hanselmann | lib/client/gnt_cluster.py \ |
159 | 6d50f5f9 | Michael Hanselmann | lib/client/gnt_debug.py \ |
160 | 667dbd6b | Adeodato Simo | lib/client/gnt_group.py \ |
161 | e792102d | Michael Hanselmann | lib/client/gnt_instance.py \ |
162 | a09b9e3d | Michael Hanselmann | lib/client/gnt_job.py \ |
163 | 37494fa4 | Michael Hanselmann | lib/client/gnt_node.py \ |
164 | 6d50f5f9 | Michael Hanselmann | lib/client/gnt_os.py |
165 | 2d48a3a2 | Michael Hanselmann | |
166 | e8230860 | Michael Hanselmann | hypervisor_PYTHON = \ |
167 | e8230860 | Michael Hanselmann | lib/hypervisor/__init__.py \ |
168 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_base.py \ |
169 | 48297fa2 | Iustin Pop | lib/hypervisor/hv_chroot.py \ |
170 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_fake.py \ |
171 | eb58f9b1 | Guido Trotter | lib/hypervisor/hv_kvm.py \ |
172 | 4b5e40a5 | Iustin Pop | lib/hypervisor/hv_lxc.py \ |
173 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_xen.py |
174 | e8230860 | Michael Hanselmann | |
175 | 8c229cc7 | Oleksiy Mishchenko | rapi_PYTHON = \ |
176 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/__init__.py \ |
177 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/baserlib.py \ |
178 | 95ab4de9 | David Knowles | lib/rapi/client.py \ |
179 | 20b509de | Michael Hanselmann | lib/rapi/client_utils.py \ |
180 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/connector.py \ |
181 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/rlib2.py |
182 | 8c229cc7 | Oleksiy Mishchenko | |
183 | ff9efc03 | Michael Hanselmann | http_PYTHON = \ |
184 | 02cab3e7 | Michael Hanselmann | lib/http/__init__.py \ |
185 | be500c29 | Michael Hanselmann | lib/http/auth.py \ |
186 | 02cab3e7 | Michael Hanselmann | lib/http/client.py \ |
187 | 02cab3e7 | Michael Hanselmann | lib/http/server.py |
188 | ff9efc03 | Michael Hanselmann | |
189 | 12426ae1 | Guido Trotter | confd_PYTHON = \ |
190 | 71f27d19 | Guido Trotter | lib/confd/__init__.py \ |
191 | e4ccf6cd | Guido Trotter | lib/confd/client.py \ |
192 | 2f16ea8f | Michael Hanselmann | lib/confd/querylib.py \ |
193 | 2f16ea8f | Michael Hanselmann | lib/confd/server.py |
194 | 8c229cc7 | Oleksiy Mishchenko | |
195 | dc101ecc | Michael Hanselmann | masterd_PYTHON = \ |
196 | 033a1d00 | Michael Hanselmann | lib/masterd/__init__.py \ |
197 | 033a1d00 | Michael Hanselmann | lib/masterd/instance.py |
198 | dc101ecc | Michael Hanselmann | |
199 | bb44b1ae | Michael Hanselmann | impexpd_PYTHON = \ |
200 | bb44b1ae | Michael Hanselmann | lib/impexpd/__init__.py |
201 | bb44b1ae | Michael Hanselmann | |
202 | 9f4bb951 | Michael Hanselmann | watcher_PYTHON = \ |
203 | 9f4bb951 | Michael Hanselmann | lib/watcher/__init__.py |
204 | 9f4bb951 | Michael Hanselmann | |
205 | 899c4d2c | Michael Hanselmann | server_PYTHON = \ |
206 | 29d91329 | Michael Hanselmann | lib/server/__init__.py \ |
207 | 5c9c0e0e | Michael Hanselmann | lib/server/confd.py \ |
208 | 5119f2ec | Michael Hanselmann | lib/server/masterd.py \ |
209 | d9c82a4e | Michael Hanselmann | lib/server/noded.py \ |
210 | d9c82a4e | Michael Hanselmann | lib/server/rapi.py |
211 | 899c4d2c | Michael Hanselmann | |
212 | f05c99f3 | Michael Hanselmann | docrst = \ |
213 | ffa6869f | Iustin Pop | doc/admin.rst \ |
214 | 5c0c1eeb | Iustin Pop | doc/design-2.0.rst \ |
215 | 4f366caf | Michael Hanselmann | doc/design-2.1.rst \ |
216 | e56bb0e8 | Guido Trotter | doc/design-2.2.rst \ |
217 | 1eb85930 | Guido Trotter | doc/design-2.3.rst \ |
218 | 1e86ee97 | Marc Schmitt | doc/design-oob.rst \ |
219 | e5a246df | Michael Hanselmann | doc/design-query2.rst \ |
220 | d9bdffc3 | René Nussbaumer | doc/cluster-merge.rst \ |
221 | 62947ebb | Michael Hanselmann | doc/devnotes.rst \ |
222 | e2078d28 | Iustin Pop | doc/glossary.rst \ |
223 | 4d6443f4 | Iustin Pop | doc/hooks.rst \ |
224 | 876860a3 | Iustin Pop | doc/iallocator.rst \ |
225 | d17e74b4 | Iustin Pop | doc/index.rst \ |
226 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst \ |
227 | 28e15341 | Iustin Pop | doc/install.rst \ |
228 | 9725b53d | Michael Hanselmann | doc/locking.rst \ |
229 | 6bf273d5 | Michael Hanselmann | doc/move-instance.rst \ |
230 | c71a1a3d | Iustin Pop | doc/news.rst \ |
231 | 6d81475c | Iustin Pop | doc/rapi.rst \ |
232 | b76aac08 | Michael Hanselmann | doc/security.rst \ |
233 | c71a1a3d | Iustin Pop | doc/walkthrough.rst |
234 | f05c99f3 | Michael Hanselmann | |
235 | c964d962 | Michael Hanselmann | $(RUN_IN_TEMPDIR): | $(all_dirfiles) |
236 | c964d962 | Michael Hanselmann | |
237 | c964d962 | Michael Hanselmann | doc/html/index.html: $(docrst) $(docpng) doc/conf.py configure.ac \ |
238 | 2750b299 | Michael Hanselmann | $(RUN_IN_TEMPDIR) |
239 | d17e74b4 | Iustin Pop | @test -n "$(SPHINX)" || \ |
240 | d17e74b4 | Iustin Pop | { echo 'sphinx-build' not found during configure; exit 1; } |
241 | 2750b299 | Michael Hanselmann | @mkdir_p@ $(dir $@) |
242 | e7f6524c | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(SPHINX) -q -W -b html \ |
243 | 13de7d59 | Michael Hanselmann | -d . \ |
244 | d17e74b4 | Iustin Pop | -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \ |
245 | d17e74b4 | Iustin Pop | -D release="$(PACKAGE_VERSION)" \ |
246 | 13de7d59 | Michael Hanselmann | $(abs_top_srcdir)/doc $(CURDIR)/doc/html |
247 | 13de7d59 | Michael Hanselmann | rm -f doc/html/.buildinfo doc/html/objects.inv |
248 | 13de7d59 | Michael Hanselmann | touch $@ |
249 | 13de7d59 | Michael Hanselmann | |
250 | c964d962 | Michael Hanselmann | doc/html: doc/html/index.html |
251 | 2ab2b9f5 | Iustin Pop | |
252 | b76aac08 | Michael Hanselmann | doc/news.rst: NEWS |
253 | b76aac08 | Michael Hanselmann | set -e; \ |
254 | b76aac08 | Michael Hanselmann | { echo '.. This file is automatically updated at build time from $<.'; \ |
255 | b76aac08 | Michael Hanselmann | echo '.. Do not edit.'; \ |
256 | b76aac08 | Michael Hanselmann | echo; \ |
257 | b76aac08 | Michael Hanselmann | cat $<; \ |
258 | b76aac08 | Michael Hanselmann | } > $@ |
259 | b76aac08 | Michael Hanselmann | |
260 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst: INSTALL |
261 | cbf3d64b | Michael Hanselmann | set -e; \ |
262 | cbf3d64b | Michael Hanselmann | { echo '.. This file is automatically updated at build time from $<.'; \ |
263 | cbf3d64b | Michael Hanselmann | echo '.. Do not edit.'; \ |
264 | cbf3d64b | Michael Hanselmann | echo; \ |
265 | cbf3d64b | Michael Hanselmann | cat $<; \ |
266 | cbf3d64b | Michael Hanselmann | } > $@ |
267 | cbf3d64b | Michael Hanselmann | |
268 | b8195800 | Iustin Pop | docdot = \ |
269 | ca9ccea8 | Michael Hanselmann | doc/arch-2.0.dot \ |
270 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-acquire.dot \ |
271 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-release.dot |
272 | b8195800 | Iustin Pop | |
273 | d17e74b4 | Iustin Pop | docpng = $(patsubst %.dot,%.png,$(docdot)) |
274 | e8230860 | Michael Hanselmann | |
275 | 7e1ccbe0 | Michael Hanselmann | # Things to build but not to install (add it to EXTRA_DIST if it should be |
276 | 7e1ccbe0 | Michael Hanselmann | # distributed) |
277 | 7e1ccbe0 | Michael Hanselmann | noinst_DATA = \ |
278 | 7e1ccbe0 | Michael Hanselmann | devel/upload \ |
279 | 7e1ccbe0 | Michael Hanselmann | doc/html \ |
280 | 7e1ccbe0 | Michael Hanselmann | doc/examples/bash_completion \ |
281 | 7e1ccbe0 | Michael Hanselmann | doc/examples/ganeti.cron \ |
282 | 7e1ccbe0 | Michael Hanselmann | doc/examples/ganeti.initd \ |
283 | 5d9e167a | Miguel Di Ciurcio Filho | doc/examples/ganeti-kvm-poweroff.initd \ |
284 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup \ |
285 | 7e1ccbe0 | Michael Hanselmann | doc/examples/hooks/ipsec \ |
286 | 7e1ccbe0 | Michael Hanselmann | $(manhtml) |
287 | f29266b4 | Iustin Pop | |
288 | 4f3d5b76 | Michael Hanselmann | gnt_scripts = \ |
289 | e8230860 | Michael Hanselmann | scripts/gnt-backup \ |
290 | e8230860 | Michael Hanselmann | scripts/gnt-cluster \ |
291 | e8230860 | Michael Hanselmann | scripts/gnt-debug \ |
292 | 667dbd6b | Adeodato Simo | scripts/gnt-group \ |
293 | e8230860 | Michael Hanselmann | scripts/gnt-instance \ |
294 | e8230860 | Michael Hanselmann | scripts/gnt-job \ |
295 | e8230860 | Michael Hanselmann | scripts/gnt-node \ |
296 | e8230860 | Michael Hanselmann | scripts/gnt-os |
297 | e8230860 | Michael Hanselmann | |
298 | c2855a12 | Michael Hanselmann | PYTHON_BOOTSTRAP = \ |
299 | 5c9c0e0e | Michael Hanselmann | daemons/ganeti-confd \ |
300 | 29d91329 | Michael Hanselmann | daemons/ganeti-masterd \ |
301 | 5119f2ec | Michael Hanselmann | daemons/ganeti-noded \ |
302 | 9f4bb951 | Michael Hanselmann | daemons/ganeti-watcher \ |
303 | d9c82a4e | Michael Hanselmann | daemons/ganeti-rapi \ |
304 | 02266fe0 | Michael Hanselmann | scripts/gnt-backup \ |
305 | 7b3e7d41 | Michael Hanselmann | scripts/gnt-cluster \ |
306 | 6d50f5f9 | Michael Hanselmann | scripts/gnt-debug \ |
307 | 667dbd6b | Adeodato Simo | scripts/gnt-group \ |
308 | e792102d | Michael Hanselmann | scripts/gnt-instance \ |
309 | a09b9e3d | Michael Hanselmann | scripts/gnt-job \ |
310 | 37494fa4 | Michael Hanselmann | scripts/gnt-node \ |
311 | 6d50f5f9 | Michael Hanselmann | scripts/gnt-os |
312 | 2d48a3a2 | Michael Hanselmann | |
313 | d9c82a4e | Michael Hanselmann | dist_sbin_SCRIPTS = |
314 | 4f3d5b76 | Michael Hanselmann | |
315 | fc3fd894 | Michael Hanselmann | nodist_sbin_SCRIPTS = \ |
316 | 2d48a3a2 | Michael Hanselmann | $(PYTHON_BOOTSTRAP) \ |
317 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner |
318 | fc3fd894 | Michael Hanselmann | |
319 | e8230860 | Michael Hanselmann | dist_tools_SCRIPTS = \ |
320 | e8230860 | Michael Hanselmann | tools/burnin \ |
321 | e8230860 | Michael Hanselmann | tools/cfgshell \ |
322 | e8230860 | Michael Hanselmann | tools/cfgupgrade \ |
323 | b5672ea0 | Iustin Pop | tools/cfgupgrade12 \ |
324 | 1f7d3f7d | René Nussbaumer | tools/cluster-merge \ |
325 | ea5fd476 | Iustin Pop | tools/lvmstrap \ |
326 | 6bf273d5 | Michael Hanselmann | tools/move-instance \ |
327 | 05cd934d | René Nussbaumer | tools/setup-ssh \ |
328 | ea5fd476 | Iustin Pop | tools/sanitize-config |
329 | e8230860 | Michael Hanselmann | |
330 | 2d76b580 | Michael Hanselmann | pkglib_python_scripts = \ |
331 | c6ccba7e | Michael Hanselmann | daemons/import-export \ |
332 | c6ccba7e | Michael Hanselmann | tools/check-cert-expired |
333 | 2d76b580 | Michael Hanselmann | |
334 | f154a7a3 | Michael Hanselmann | pkglib_SCRIPTS = \ |
335 | 2d76b580 | Michael Hanselmann | daemons/daemon-util \ |
336 | 46a8da3b | René Nussbaumer | daemons/ensure-dirs \ |
337 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) |
338 | f154a7a3 | Michael Hanselmann | |
339 | e8230860 | Michael Hanselmann | EXTRA_DIST = \ |
340 | e8230860 | Michael Hanselmann | NEWS \ |
341 | 70c771f6 | Michael Hanselmann | pylintrc \ |
342 | bb46a96c | Michael Hanselmann | autotools/build-bash-completion \ |
343 | eed5c5df | Michael Hanselmann | autotools/check-python-code \ |
344 | a4f12da4 | Michael Hanselmann | autotools/check-man \ |
345 | e627fe09 | Michael Hanselmann | autotools/check-tar \ |
346 | 96602be4 | Michael Hanselmann | autotools/check-version \ |
347 | 27e336af | Michael Hanselmann | autotools/gen-coverage \ |
348 | e8c8cf1a | Michael Hanselmann | autotools/testrunner \ |
349 | f3313af5 | Guido Trotter | $(RUN_IN_TEMPDIR) \ |
350 | f154a7a3 | Michael Hanselmann | daemons/daemon-util.in \ |
351 | 46a8da3b | René Nussbaumer | daemons/ensure-dirs.in \ |
352 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner.in \ |
353 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
354 | e8230860 | Michael Hanselmann | devel/upload.in \ |
355 | b8195800 | Iustin Pop | $(docdot) \ |
356 | f727d134 | Michael Hanselmann | $(docpng) \ |
357 | d17e74b4 | Iustin Pop | $(docrst) \ |
358 | d17e74b4 | Iustin Pop | doc/conf.py \ |
359 | d17e74b4 | Iustin Pop | doc/html \ |
360 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd.in \ |
361 | 5d9e167a | Miguel Di Ciurcio Filho | doc/examples/ganeti-kvm-poweroff.initd.in \ |
362 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron.in \ |
363 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup.in \ |
364 | e8230860 | Michael Hanselmann | doc/examples/dumb-allocator \ |
365 | 752a8ca8 | Michael Hanselmann | doc/examples/ganeti.default \ |
366 | 752a8ca8 | Michael Hanselmann | doc/examples/ganeti.default-debug \ |
367 | d6d9ce45 | Guido Trotter | doc/examples/hooks/ethers \ |
368 | a2442bf9 | Luca Bigliardi | doc/examples/hooks/ipsec.in \ |
369 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/README \ |
370 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/delay0.json \ |
371 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/delay50.json \ |
372 | e8230860 | Michael Hanselmann | test/testutils.py \ |
373 | e8230860 | Michael Hanselmann | test/mocks.py \ |
374 | e8230860 | Michael Hanselmann | $(dist_TESTS) \ |
375 | e8230860 | Michael Hanselmann | $(TEST_FILES) \ |
376 | 6be8e2bf | Iustin Pop | man/footer.rst \ |
377 | 6be8e2bf | Iustin Pop | $(manrst) \ |
378 | f727d134 | Michael Hanselmann | $(maninput) \ |
379 | e8230860 | Michael Hanselmann | qa/ganeti-qa.py \ |
380 | 39e0d19e | Michael Hanselmann | qa/qa-sample.json \ |
381 | e8230860 | Michael Hanselmann | qa/qa_cluster.py \ |
382 | e8230860 | Michael Hanselmann | qa/qa_config.py \ |
383 | e8230860 | Michael Hanselmann | qa/qa_daemon.py \ |
384 | e8230860 | Michael Hanselmann | qa/qa_env.py \ |
385 | e8230860 | Michael Hanselmann | qa/qa_error.py \ |
386 | e8230860 | Michael Hanselmann | qa/qa_instance.py \ |
387 | e8230860 | Michael Hanselmann | qa/qa_node.py \ |
388 | e8230860 | Michael Hanselmann | qa/qa_os.py \ |
389 | a47f574c | Oleksiy Mishchenko | qa/qa_rapi.py \ |
390 | e8230860 | Michael Hanselmann | qa/qa_tags.py \ |
391 | e8230860 | Michael Hanselmann | qa/qa_utils.py |
392 | e8230860 | Michael Hanselmann | |
393 | e8230860 | Michael Hanselmann | man_MANS = \ |
394 | e8230860 | Michael Hanselmann | man/ganeti.7 \ |
395 | bae7e531 | Michael Hanselmann | man/ganeti-cleaner.8 \ |
396 | b7b7cda6 | Guido Trotter | man/ganeti-confd.8 \ |
397 | 320d986d | Iustin Pop | man/ganeti-masterd.8 \ |
398 | e8230860 | Michael Hanselmann | man/ganeti-noded.8 \ |
399 | e8230860 | Michael Hanselmann | man/ganeti-os-interface.7 \ |
400 | 320d986d | Iustin Pop | man/ganeti-rapi.8 \ |
401 | e8230860 | Michael Hanselmann | man/ganeti-watcher.8 \ |
402 | e8230860 | Michael Hanselmann | man/gnt-backup.8 \ |
403 | e8230860 | Michael Hanselmann | man/gnt-cluster.8 \ |
404 | d3b4cf9f | Iustin Pop | man/gnt-debug.8 \ |
405 | 667dbd6b | Adeodato Simo | man/gnt-group.8 \ |
406 | e8230860 | Michael Hanselmann | man/gnt-instance.8 \ |
407 | d3b4cf9f | Iustin Pop | man/gnt-job.8 \ |
408 | e8230860 | Michael Hanselmann | man/gnt-node.8 \ |
409 | e8230860 | Michael Hanselmann | man/gnt-os.8 |
410 | e8230860 | Michael Hanselmann | |
411 | 6be8e2bf | Iustin Pop | manrst = $(patsubst %.7,%.rst,$(patsubst %.8,%.rst,$(man_MANS))) |
412 | 6be8e2bf | Iustin Pop | manhtml = $(patsubst %.rst,%.html,$(manrst)) |
413 | 25c92bc5 | Michael Hanselmann | maninput = \ |
414 | 25c92bc5 | Michael Hanselmann | $(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS))) \ |
415 | de8eea3e | Iustin Pop | $(patsubst %.html,%.html.in,$(manhtml)) \ |
416 | 6be8e2bf | Iustin Pop | man/footer.man man/footer.html |
417 | e8230860 | Michael Hanselmann | |
418 | e8230860 | Michael Hanselmann | TEST_FILES = \ |
419 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-8.0.txt \ |
420 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-8.3.txt \ |
421 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-disk.txt \ |
422 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-net-ip4.txt \ |
423 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-net-ip6.txt \ |
424 | 27e46076 | Michael Hanselmann | test/data/cert1.pem \ |
425 | d816408a | Iustin Pop | test/data/proc_drbd8.txt \ |
426 | a6ac80db | Iustin Pop | test/data/proc_drbd80-emptyline.txt \ |
427 | 2d76b580 | Michael Hanselmann | test/data/proc_drbd83.txt \ |
428 | 549071a0 | Luca Bigliardi | test/data/sys_drbd_usermode_helper.txt \ |
429 | 2d76b580 | Michael Hanselmann | test/import-export_unittest-helper |
430 | e8230860 | Michael Hanselmann | |
431 | e8c8cf1a | Michael Hanselmann | python_tests = \ |
432 | 17496050 | Guido Trotter | test/ganeti.asyncnotifier_unittest.py \ |
433 | f942a838 | Michael Hanselmann | test/ganeti.backend_unittest.py \ |
434 | 6de7c41d | Iustin Pop | test/ganeti.bdev_unittest.py \ |
435 | 6de7c41d | Iustin Pop | test/ganeti.cli_unittest.py \ |
436 | 1118ec44 | Guido Trotter | test/ganeti.daemon_unittest.py \ |
437 | 6de7c41d | Iustin Pop | test/ganeti.cmdlib_unittest.py \ |
438 | cea881e5 | Michael Hanselmann | test/ganeti.compat_unittest.py \ |
439 | edf7d66e | Iustin Pop | test/ganeti.confd.client_unittest.py \ |
440 | e8230860 | Michael Hanselmann | test/ganeti.config_unittest.py \ |
441 | 6de7c41d | Iustin Pop | test/ganeti.constants_unittest.py \ |
442 | 3bd19c66 | Michael Hanselmann | test/ganeti.errors_unittest.py \ |
443 | e8230860 | Michael Hanselmann | test/ganeti.hooks_unittest.py \ |
444 | 6de7c41d | Iustin Pop | test/ganeti.http_unittest.py \ |
445 | b7d82e40 | Iustin Pop | test/ganeti.hypervisor_unittest.py \ |
446 | 748e4b5a | Michael Hanselmann | test/ganeti.hypervisor.hv_kvm_unittest.py \ |
447 | bb44b1ae | Michael Hanselmann | test/ganeti.impexpd_unittest.py \ |
448 | 989a8bee | Michael Hanselmann | test/ganeti.jqueue_unittest.py \ |
449 | e8230860 | Michael Hanselmann | test/ganeti.locking_unittest.py \ |
450 | 231db3a5 | Michael Hanselmann | test/ganeti.luxi_unittest.py \ |
451 | 033a1d00 | Michael Hanselmann | test/ganeti.masterd.instance_unittest.py \ |
452 | 407339d0 | Michael Hanselmann | test/ganeti.mcpu_unittest.py \ |
453 | a744b676 | Manuel Franceschini | test/ganeti.netutils_unittest.py \ |
454 | 4c14965f | Guido Trotter | test/ganeti.objects_unittest.py \ |
455 | c32b908e | Michael Hanselmann | test/ganeti.opcodes_unittest.py \ |
456 | a123dc19 | Michael Hanselmann | test/ganeti.qlang_unittest.py \ |
457 | 4ca96421 | Michael Hanselmann | test/ganeti.query_unittest.py \ |
458 | 95ab4de9 | David Knowles | test/ganeti.rapi.client_unittest.py \ |
459 | 4cbd4462 | Oleksiy Mishchenko | test/ganeti.rapi.resources_unittest.py \ |
460 | 6395cebb | Michael Hanselmann | test/ganeti.rapi.rlib2_unittest.py \ |
461 | 33231500 | Michael Hanselmann | test/ganeti.rpc_unittest.py \ |
462 | f12e1736 | René Nussbaumer | test/ganeti.runtime_unittest.py \ |
463 | 6de7c41d | Iustin Pop | test/ganeti.serializer_unittest.py \ |
464 | 6de7c41d | Iustin Pop | test/ganeti.ssh_unittest.py \ |
465 | 93be53da | Balazs Lecz | test/ganeti.uidpool_unittest.py \ |
466 | 6de7c41d | Iustin Pop | test/ganeti.utils_unittest.py \ |
467 | 4b6fa0bf | Luca Bigliardi | test/ganeti.utils_mlockall_unittest.py \ |
468 | 3f991867 | Michael Hanselmann | test/ganeti.workerpool_unittest.py \ |
469 | aefbe369 | Michael Hanselmann | test/cfgupgrade_unittest.py \ |
470 | 055f822b | Michael Hanselmann | test/docs_unittest.py \ |
471 | 055f822b | Michael Hanselmann | test/tempfile_fork_unittest.py |
472 | e8230860 | Michael Hanselmann | |
473 | e8c8cf1a | Michael Hanselmann | dist_TESTS = \ |
474 | 7172f605 | Michael Hanselmann | test/check-cert-expired_unittest.bash \ |
475 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash \ |
476 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash \ |
477 | 2d76b580 | Michael Hanselmann | test/import-export_unittest.bash \ |
478 | e8c8cf1a | Michael Hanselmann | $(python_tests) |
479 | e8c8cf1a | Michael Hanselmann | |
480 | e8230860 | Michael Hanselmann | nodist_TESTS = |
481 | e8230860 | Michael Hanselmann | |
482 | e8230860 | Michael Hanselmann | TESTS = $(dist_TESTS) $(nodist_TESTS) |
483 | e8230860 | Michael Hanselmann | |
484 | 27e336af | Michael Hanselmann | # Environment for all tests |
485 | 27e336af | Michael Hanselmann | PLAIN_TESTS_ENVIRONMENT = \ |
486 | 27e336af | Michael Hanselmann | PYTHONPATH=. TOP_SRCDIR=$(abs_top_srcdir) PYTHON=$(PYTHON) $(RUN_IN_TEMPDIR) |
487 | 27e336af | Michael Hanselmann | |
488 | 27e336af | Michael Hanselmann | # Environment for tests run by automake |
489 | f848ac00 | Michael Hanselmann | TESTS_ENVIRONMENT = \ |
490 | e8c8cf1a | Michael Hanselmann | $(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/testrunner |
491 | 6e06b36c | Iustin Pop | |
492 | eed5c5df | Michael Hanselmann | all_python_code = \ |
493 | 01a3a718 | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
494 | 01a3a718 | Michael Hanselmann | $(dist_tools_SCRIPTS) \ |
495 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
496 | e8c8cf1a | Michael Hanselmann | $(python_tests) \ |
497 | 01a3a718 | Michael Hanselmann | $(pkgpython_PYTHON) \ |
498 | 2d48a3a2 | Michael Hanselmann | $(client_PYTHON) \ |
499 | 01a3a718 | Michael Hanselmann | $(hypervisor_PYTHON) \ |
500 | 01a3a718 | Michael Hanselmann | $(rapi_PYTHON) \ |
501 | 899c4d2c | Michael Hanselmann | $(server_PYTHON) \ |
502 | 01a3a718 | Michael Hanselmann | $(http_PYTHON) \ |
503 | 01a3a718 | Michael Hanselmann | $(confd_PYTHON) \ |
504 | dc101ecc | Michael Hanselmann | $(masterd_PYTHON) \ |
505 | bb44b1ae | Michael Hanselmann | $(impexpd_PYTHON) \ |
506 | 9f4bb951 | Michael Hanselmann | $(watcher_PYTHON) \ |
507 | 01a3a718 | Michael Hanselmann | $(noinst_PYTHON) |
508 | 01a3a718 | Michael Hanselmann | |
509 | eed5c5df | Michael Hanselmann | srclink_files = \ |
510 | 6be8e2bf | Iustin Pop | man/footer.rst \ |
511 | 7172f605 | Michael Hanselmann | test/check-cert-expired_unittest.bash \ |
512 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash \ |
513 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash \ |
514 | 2d76b580 | Michael Hanselmann | test/import-export_unittest.bash \ |
515 | eed5c5df | Michael Hanselmann | $(all_python_code) |
516 | eed5c5df | Michael Hanselmann | |
517 | eed5c5df | Michael Hanselmann | check_python_code = \ |
518 | e4e7c7df | Michael Hanselmann | $(BUILD_BASH_COMPLETION) \ |
519 | eed5c5df | Michael Hanselmann | $(all_python_code) |
520 | eed5c5df | Michael Hanselmann | |
521 | e4e7c7df | Michael Hanselmann | lint_python_code = \ |
522 | f60d352e | Michael Hanselmann | ganeti \ |
523 | f1763373 | Iustin Pop | ganeti/http/server.py \ |
524 | f60d352e | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
525 | f60d352e | Michael Hanselmann | $(dist_tools_SCRIPTS) \ |
526 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
527 | 2cc8bdd0 | Michael Hanselmann | $(BUILD_BASH_COMPLETION) \ |
528 | 2cc8bdd0 | Michael Hanselmann | $(PYTHON_BOOTSTRAP) |
529 | eed5c5df | Michael Hanselmann | |
530 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash: daemons/daemon-util |
531 | 571b34f8 | Michael Hanselmann | |
532 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash: daemons/ganeti-cleaner |
533 | 7172f605 | Michael Hanselmann | |
534 | dbefcc7e | Michael Hanselmann | devel/upload: devel/upload.in $(REPLACE_VARS_SED) |
535 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
536 | e8230860 | Michael Hanselmann | chmod u+x $@ |
537 | e8230860 | Michael Hanselmann | |
538 | c964d962 | Michael Hanselmann | daemons/%: daemons/%.in $(REPLACE_VARS_SED) |
539 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
540 | 5c566e17 | Michael Hanselmann | chmod +x $@ |
541 | e8230860 | Michael Hanselmann | |
542 | c964d962 | Michael Hanselmann | doc/examples/%: doc/examples/%.in $(REPLACE_VARS_SED) |
543 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
544 | e8230860 | Michael Hanselmann | |
545 | c964d962 | Michael Hanselmann | doc/examples/hooks/%: doc/examples/hooks/%.in $(REPLACE_VARS_SED) |
546 | a2442bf9 | Luca Bigliardi | sed -f $(REPLACE_VARS_SED) < $< > $@ |
547 | a2442bf9 | Luca Bigliardi | |
548 | b959138f | Michael Hanselmann | doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \ |
549 | 88a6ca6f | Michael Hanselmann | lib/cli.py $(gnt_scripts) $(client_PYTHON) tools/burnin |
550 | b959138f | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@ |
551 | 4f3d5b76 | Michael Hanselmann | |
552 | f86e82ef | Iustin Pop | doc/%.png: doc/%.dot |
553 | 2ab2b9f5 | Iustin Pop | @test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; } |
554 | f86e82ef | Iustin Pop | $(DOT) -Tpng -o $@ $< |
555 | f86e82ef | Iustin Pop | |
556 | de8eea3e | Iustin Pop | man/footer.man: man/footer.rst |
557 | de8eea3e | Iustin Pop | @test -n "$(PANDOC)" || \ |
558 | de8eea3e | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
559 | de8eea3e | Iustin Pop | $(PANDOC) -f rst -t man -o $@ $< |
560 | de8eea3e | Iustin Pop | |
561 | 6be8e2bf | Iustin Pop | man/footer.html: man/footer.rst |
562 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
563 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
564 | 6be8e2bf | Iustin Pop | $(PANDOC) -f rst -t html -o $@ $< |
565 | 6be8e2bf | Iustin Pop | |
566 | 6be8e2bf | Iustin Pop | man/%.7.in man/%.8.in: man/%.rst man/footer.man |
567 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
568 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
569 | 6be8e2bf | Iustin Pop | $(PANDOC) -s -f rst -t man -A man/footer.man $< | \ |
570 | 6be8e2bf | Iustin Pop | sed -e 's/\\@/@/g' > $@ |
571 | 5f55173b | Iustin Pop | if test -n "$(MAN_HAS_WARNINGS)"; then $(CHECK_MAN) $@; fi |
572 | 2ab2b9f5 | Iustin Pop | |
573 | 6be8e2bf | Iustin Pop | man/%.html.in: man/%.rst man/footer.html |
574 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
575 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
576 | 6be8e2bf | Iustin Pop | $(PANDOC) -s -f rst -t html -A man/footer.html $< | \ |
577 | 6be8e2bf | Iustin Pop | sed -e 's/\\@/@/g' > $@ |
578 | 6be8e2bf | Iustin Pop | |
579 | 2ab2b9f5 | Iustin Pop | |
580 | dbefcc7e | Michael Hanselmann | man/%.7: man/%.7.in $(REPLACE_VARS_SED) |
581 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
582 | e8230860 | Michael Hanselmann | |
583 | dbefcc7e | Michael Hanselmann | man/%.8: man/%.8.in $(REPLACE_VARS_SED) |
584 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
585 | e8230860 | Michael Hanselmann | |
586 | dbefcc7e | Michael Hanselmann | man/%.html: man/%.html.in $(REPLACE_VARS_SED) |
587 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
588 | f29266b4 | Iustin Pop | |
589 | 84a12e40 | Iustin Pop | vcs-version: |
590 | 84a12e40 | Iustin Pop | if test -d .git; then \ |
591 | 84a12e40 | Iustin Pop | git describe > $@; \ |
592 | 84a12e40 | Iustin Pop | elif test ! -f $@ ; then \ |
593 | 84a12e40 | Iustin Pop | echo "Cannot auto-generate $@ file"; exit 1; \ |
594 | 84a12e40 | Iustin Pop | fi |
595 | 84a12e40 | Iustin Pop | |
596 | 84a12e40 | Iustin Pop | .PHONY: regen-vcs-version |
597 | 84a12e40 | Iustin Pop | regen-vcs-version: |
598 | e8230860 | Michael Hanselmann | set -e; \ |
599 | 84a12e40 | Iustin Pop | cd $(srcdir); \ |
600 | 84a12e40 | Iustin Pop | if test -d .git; then \ |
601 | 84a12e40 | Iustin Pop | rm -f vcs-version; \ |
602 | 84a12e40 | Iustin Pop | $(MAKE) vcs-version; \ |
603 | 84a12e40 | Iustin Pop | fi |
604 | 84a12e40 | Iustin Pop | |
605 | c964d962 | Michael Hanselmann | lib/_autoconf.py: Makefile vcs-version | lib/.dir |
606 | 84a12e40 | Iustin Pop | set -e; \ |
607 | 84a12e40 | Iustin Pop | VCSVER=`cat $(abs_top_srcdir)/vcs-version`; \ |
608 | e8230860 | Michael Hanselmann | { echo '# This file is automatically generated, do not edit!'; \ |
609 | e8230860 | Michael Hanselmann | echo '#'; \ |
610 | 67047322 | Iustin Pop | echo ''; \ |
611 | 67047322 | Iustin Pop | echo '"""Build-time configuration for Ganeti.'; \ |
612 | 67047322 | Iustin Pop | echo '';\ |
613 | 67047322 | Iustin Pop | echo 'This file is autogenerated by the build process.'; \ |
614 | 67047322 | Iustin Pop | echo 'For any changes you need to re-run ./configure (and'; \ |
615 | 67047322 | Iustin Pop | echo 'not edit by hand).'; \ |
616 | 67047322 | Iustin Pop | echo ''; \ |
617 | 67047322 | Iustin Pop | echo '"""'; \ |
618 | 67047322 | Iustin Pop | echo ''; \ |
619 | 0a4e7f24 | Iustin Pop | echo '# pylint: disable-msg=C0301,C0324'; \ |
620 | 0a4e7f24 | Iustin Pop | echo '# because this is autogenerated, we do not want'; \ |
621 | 0a4e7f24 | Iustin Pop | echo '# style warnings' ; \ |
622 | 0a4e7f24 | Iustin Pop | echo ''; \ |
623 | e8230860 | Michael Hanselmann | echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \ |
624 | e8230860 | Michael Hanselmann | echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \ |
625 | e8230860 | Michael Hanselmann | echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \ |
626 | e8230860 | Michael Hanselmann | echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \ |
627 | e8230860 | Michael Hanselmann | echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \ |
628 | e8230860 | Michael Hanselmann | echo "VERSION_FULL = '$(VERSION_FULL)'"; \ |
629 | e8230860 | Michael Hanselmann | echo "LOCALSTATEDIR = '$(localstatedir)'"; \ |
630 | e8230860 | Michael Hanselmann | echo "SYSCONFDIR = '$(sysconfdir)'"; \ |
631 | 553bd93f | Vitaly Kuznetsov | echo "SSH_CONFIG_DIR = '$(SSH_CONFIG_DIR)'"; \ |
632 | e8230860 | Michael Hanselmann | echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \ |
633 | e8230860 | Michael Hanselmann | echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \ |
634 | 2f2dbb4b | Jun Futagawa | echo "XEN_BOOTLOADER = '$(XEN_BOOTLOADER)'"; \ |
635 | e8230860 | Michael Hanselmann | echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \ |
636 | e8230860 | Michael Hanselmann | echo "XEN_INITRD = '$(XEN_INITRD)'"; \ |
637 | e8230860 | Michael Hanselmann | echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \ |
638 | cb7c0198 | Iustin Pop | echo "ENABLE_FILE_STORAGE = $(ENABLE_FILE_STORAGE)"; \ |
639 | e8230860 | Michael Hanselmann | echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \ |
640 | 7e2c5b9e | Guido Trotter | echo "KVM_PATH = '$(KVM_PATH)'"; \ |
641 | fe5b0c42 | Michael Hanselmann | echo "SOCAT_PATH = '$(SOCAT)'"; \ |
642 | fe5b0c42 | Michael Hanselmann | echo "SOCAT_USE_ESCAPE = $(SOCAT_USE_ESCAPE)"; \ |
643 | e90739d6 | Michael Hanselmann | echo "SOCAT_USE_COMPRESS = $(SOCAT_USE_COMPRESS)"; \ |
644 | bea60381 | Michael Hanselmann | echo "LVM_STRIPECOUNT = $(LVM_STRIPECOUNT)"; \ |
645 | bea60381 | Michael Hanselmann | echo "TOOLSDIR = '$(toolsdir)'"; \ |
646 | 4f3d5b76 | Michael Hanselmann | echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \ |
647 | f154a7a3 | Michael Hanselmann | echo "PKGLIBDIR = '$(pkglibdir)'"; \ |
648 | 89b70f39 | Iustin Pop | echo "DRBD_BARRIERS = $(DRBD_BARRIERS)"; \ |
649 | 551b6283 | Iustin Pop | echo "SYSLOG_USAGE = '$(SYSLOG_USAGE)'"; \ |
650 | 8b72b05c | René Nussbaumer | echo "DAEMONS_GROUP = '$(DAEMONS_GROUP)'"; \ |
651 | f12e1736 | René Nussbaumer | echo "ADMIN_GROUP = '$(ADMIN_GROUP)'"; \ |
652 | 8b72b05c | René Nussbaumer | echo "MASTERD_USER = '$(MASTERD_USER)'"; \ |
653 | f12e1736 | René Nussbaumer | echo "MASTERD_GROUP = '$(MASTERD_GROUP)'"; \ |
654 | 8b72b05c | René Nussbaumer | echo "RAPI_USER = '$(RAPI_USER)'"; \ |
655 | f12e1736 | René Nussbaumer | echo "RAPI_GROUP = '$(RAPI_GROUP)'"; \ |
656 | f12e1736 | René Nussbaumer | echo "CONFD_USER = '$(CONFD_USER)'"; \ |
657 | f12e1736 | René Nussbaumer | echo "CONFD_GROUP = '$(CONFD_GROUP)'"; \ |
658 | f12e1736 | René Nussbaumer | echo "NODED_USER = '$(NODED_USER)'"; \ |
659 | 84a12e40 | Iustin Pop | echo "VCS_VERSION = '$$VCSVER'"; \ |
660 | e8230860 | Michael Hanselmann | } > $@ |
661 | e8230860 | Michael Hanselmann | |
662 | dbefcc7e | Michael Hanselmann | $(REPLACE_VARS_SED): Makefile |
663 | e8230860 | Michael Hanselmann | set -e; \ |
664 | e8230860 | Michael Hanselmann | { echo 's#@PREFIX@#$(prefix)#g'; \ |
665 | e8230860 | Michael Hanselmann | echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ |
666 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
667 | 7a2ba406 | Luca Bigliardi | echo 's#@BINDIR@#$(bindir)#g'; \ |
668 | e8230860 | Michael Hanselmann | echo 's#@SBINDIR@#$(sbindir)#g'; \ |
669 | e8230860 | Michael Hanselmann | echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \ |
670 | 2f2dbb4b | Jun Futagawa | echo 's#@CUSTOM_XEN_BOOTLOADER@#$(XEN_BOOTLOADER)#g'; \ |
671 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \ |
672 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \ |
673 | 56956bcb | Iustin Pop | echo 's#@CUSTOM_IALLOCATOR_SEARCH_PATH@#$(IALLOCATOR_SEARCH_PATH)#g'; \ |
674 | 56956bcb | Iustin Pop | echo 's#@CUSTOM_EXPORT_DIR@#$(EXPORT_DIR)#g'; \ |
675 | d3b4cf9f | Iustin Pop | echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \ |
676 | 7e1fac25 | Michael Hanselmann | echo 's#@RPL_SSH_INITD_SCRIPT@#$(SSH_INITD_SCRIPT)#g'; \ |
677 | c5159571 | Iustin Pop | echo 's#@PKGLIBDIR@#$(pkglibdir)#g'; \ |
678 | 0d150c50 | René Nussbaumer | echo 's#@GNTMASTERUSER@#$(MASTERD_USER)#g'; \ |
679 | 0d150c50 | René Nussbaumer | echo 's#@GNTRAPIUSER@#$(RAPI_USER)#g'; \ |
680 | 0d150c50 | René Nussbaumer | echo 's#@GNTCONFDUSER@#$(CONFD_USER)#g'; \ |
681 | 0d150c50 | René Nussbaumer | echo 's#@GNTNODEDUSER@#$(NODED_USER)#g'; \ |
682 | 0d150c50 | René Nussbaumer | echo 's#@GNTRAPIGROUP@#$(RAPI_GROUP)#g'; \ |
683 | 0d150c50 | René Nussbaumer | echo 's#@GNTADMINGROUP@#$(ADMIN_GROUP)#g'; \ |
684 | 0d150c50 | René Nussbaumer | echo 's#@GNTCONFDGROUP@#$(CONFD_GROUP)#g'; \ |
685 | 0d150c50 | René Nussbaumer | echo 's#@GNTMASTERDGROUP@#$(MASTERD_GROUP)#g'; \ |
686 | 46a8da3b | René Nussbaumer | echo 's#@GNTDAEMONSGROUP@#$(DAEMONS_GROUP)#g'; \ |
687 | e8230860 | Michael Hanselmann | } > $@ |
688 | e8230860 | Michael Hanselmann | |
689 | 67313146 | Michael Hanselmann | # Using deferred evaluation |
690 | 899c4d2c | Michael Hanselmann | daemons/ganeti-%: MODULE = ganeti.server.$(patsubst ganeti-%,%,$(notdir $@)) |
691 | 9f4bb951 | Michael Hanselmann | daemons/ganeti-watcher: MODULE = ganeti.watcher |
692 | 67313146 | Michael Hanselmann | scripts/%: MODULE = ganeti.client.$(subst -,_,$(notdir $@)) |
693 | 67313146 | Michael Hanselmann | |
694 | c964d962 | Michael Hanselmann | $(PYTHON_BOOTSTRAP): Makefile | $(all_dirfiles) |
695 | 67313146 | Michael Hanselmann | test -n "$(MODULE)" || { echo Missing module; exit 1; } |
696 | 2d48a3a2 | Michael Hanselmann | set -e; \ |
697 | d75e738e | Michael Hanselmann | { echo '#!/usr/bin/python'; \ |
698 | 2d48a3a2 | Michael Hanselmann | echo '# This file is automatically generated, do not edit!'; \ |
699 | 67313146 | Michael Hanselmann | echo "# Edit $(MODULE) instead."; \ |
700 | 2d48a3a2 | Michael Hanselmann | echo; \ |
701 | 67313146 | Michael Hanselmann | echo '"""Bootstrap script for L{$(MODULE)}"""'; \ |
702 | 2d48a3a2 | Michael Hanselmann | echo; \ |
703 | 2d48a3a2 | Michael Hanselmann | echo '# pylint: disable-msg=C0103'; \ |
704 | 2d48a3a2 | Michael Hanselmann | echo '# C0103: Invalid name'; \ |
705 | 2d48a3a2 | Michael Hanselmann | echo; \ |
706 | 2d48a3a2 | Michael Hanselmann | echo 'import sys'; \ |
707 | 67313146 | Michael Hanselmann | echo 'import $(MODULE) as main'; \ |
708 | 2d48a3a2 | Michael Hanselmann | echo; \ |
709 | 2d48a3a2 | Michael Hanselmann | echo '# Temporarily alias commands until bash completion'; \ |
710 | 2d48a3a2 | Michael Hanselmann | echo '# generator is changed'; \ |
711 | 67313146 | Michael Hanselmann | echo 'if hasattr(main, "commands"):'; \ |
712 | 2cc8bdd0 | Michael Hanselmann | echo ' commands = main.commands # pylint: disable-msg=E1101'; \ |
713 | 2d48a3a2 | Michael Hanselmann | echo; \ |
714 | 2d48a3a2 | Michael Hanselmann | echo 'if __name__ == "__main__":'; \ |
715 | 67313146 | Michael Hanselmann | echo ' sys.exit(main.Main())'; \ |
716 | 2d48a3a2 | Michael Hanselmann | } > $@ |
717 | 2d48a3a2 | Michael Hanselmann | chmod u+x $@ |
718 | 2d48a3a2 | Michael Hanselmann | |
719 | e8230860 | Michael Hanselmann | # We need to create symlinks because "make distcheck" will not install Python |
720 | e8230860 | Michael Hanselmann | # files when building. |
721 | c964d962 | Michael Hanselmann | stamp-srclinks: Makefile | $(all_dirfiles) |
722 | e8230860 | Michael Hanselmann | set -e; \ |
723 | 01a3a718 | Michael Hanselmann | for i in $(srclink_files); do \ |
724 | e8230860 | Michael Hanselmann | if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \ |
725 | e8230860 | Michael Hanselmann | $(LN_S) $(abs_top_srcdir)/$$i $$i; \ |
726 | e8230860 | Michael Hanselmann | fi; \ |
727 | e8230860 | Michael Hanselmann | done |
728 | dd1dfd9a | Michael Hanselmann | touch $@ |
729 | 97a37b3f | Michael Hanselmann | |
730 | 9ff7e35c | Michael Hanselmann | .PHONY: ganeti |
731 | 9ff7e35c | Michael Hanselmann | ganeti: |
732 | 01f3e7b1 | Iustin Pop | cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; } |
733 | 9ff7e35c | Michael Hanselmann | |
734 | 6b997854 | Michael Hanselmann | .PHONY: check-dirs |
735 | 6b997854 | Michael Hanselmann | check-dirs: $(BUILT_SOURCES) |
736 | 0c1103d6 | Iustin Pop | @set -e; \ |
737 | 6b997854 | Michael Hanselmann | find . -type d \( \( -name . \) -o \( \ |
738 | 6b997854 | Michael Hanselmann | -name .git -o \ |
739 | 6b997854 | Michael Hanselmann | -name autom4te.cache \ |
740 | 6b997854 | Michael Hanselmann | \) -prune -o -print \) | { \ |
741 | 6b997854 | Michael Hanselmann | error=; \ |
742 | 6b997854 | Michael Hanselmann | while read dir; do \ |
743 | 6b997854 | Michael Hanselmann | case "$$dir" in \ |
744 | 6b997854 | Michael Hanselmann | $(strip $(patsubst %,(./%) ;;,$(DIRCHECK_EXCLUDE) $(DIRS))) \ |
745 | 6b997854 | Michael Hanselmann | *) error=1; echo "Directory $$dir not listed in Makefile" >&2 ;; \ |
746 | 6b997854 | Michael Hanselmann | esac; \ |
747 | 6b997854 | Michael Hanselmann | done; \ |
748 | 6b997854 | Michael Hanselmann | for dir in $(DIRS); do \ |
749 | 6b997854 | Michael Hanselmann | if ! test -d "$$dir"; then \ |
750 | 6b997854 | Michael Hanselmann | echo "Directory $$dir listed in DIRS does not exist" >&2; \ |
751 | 6b997854 | Michael Hanselmann | error=1; \ |
752 | 6b997854 | Michael Hanselmann | fi \ |
753 | 6b997854 | Michael Hanselmann | done; \ |
754 | 6b997854 | Michael Hanselmann | if test -n "$$error"; then exit 1; else exit 0; fi; \ |
755 | 6b997854 | Michael Hanselmann | } |
756 | 6b997854 | Michael Hanselmann | |
757 | 6b997854 | Michael Hanselmann | check-local: check-dirs |
758 | eed5c5df | Michael Hanselmann | $(CHECK_PYTHON_CODE) $(check_python_code) |
759 | 35576615 | Michael Hanselmann | $(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS |
760 | eed5c5df | Michael Hanselmann | |
761 | e0098923 | Iustin Pop | .PHONY: lint |
762 | c964d962 | Michael Hanselmann | lint: $(BUILT_SOURCES) |
763 | 6d7cc5ff | Michael Hanselmann | @test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; } |
764 | 6d7cc5ff | Michael Hanselmann | $(PYLINT) $(LINT_OPTS) $(lint_python_code) |
765 | e0098923 | Iustin Pop | |
766 | 84a12e40 | Iustin Pop | # a dist hook rule for updating the vcs-version file; this is |
767 | 84a12e40 | Iustin Pop | # hardcoded due to where it needs to build the file... |
768 | 84a12e40 | Iustin Pop | dist-hook: |
769 | 84a12e40 | Iustin Pop | $(MAKE) regen-vcs-version && \ |
770 | 84a12e40 | Iustin Pop | rm -f $(top_distdir)/vcs-version && \ |
771 | 84a12e40 | Iustin Pop | cp -p $(srcdir)/vcs-version $(top_distdir) |
772 | 84a12e40 | Iustin Pop | |
773 | 84a12e40 | Iustin Pop | # a distcheck hook rule for catching revision control directories |
774 | b6f2e47f | Iustin Pop | distcheck-hook: |
775 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name .svn -or -name .git | grep .; then \ |
776 | c6aa0c42 | Michael Hanselmann | echo "Found revision control files in final archive." 1>&2; \ |
777 | c6aa0c42 | Michael Hanselmann | exit 1; \ |
778 | c6aa0c42 | Michael Hanselmann | fi |
779 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name '*.py[co]' | grep .; then \ |
780 | c6aa0c42 | Michael Hanselmann | echo "Found Python byte code in final archive." 1>&2; \ |
781 | c6aa0c42 | Michael Hanselmann | exit 1; \ |
782 | c6aa0c42 | Michael Hanselmann | fi |
783 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name '*~' | grep .; then \ |
784 | c6aa0c42 | Michael Hanselmann | echo "Found backup files in final archive." 1>&2; \ |
785 | b6f2e47f | Iustin Pop | exit 1; \ |
786 | b6f2e47f | Iustin Pop | fi |
787 | bf0b21da | Michael Hanselmann | # Empty files or directories should not be distributed. They can cause |
788 | bf0b21da | Michael Hanselmann | # unnecessary warnings for packagers. Directories used by automake during |
789 | bf0b21da | Michael Hanselmann | # distcheck must be excluded. |
790 | bf0b21da | Michael Hanselmann | if find $(top_distdir) -empty -and -not \( \ |
791 | bf0b21da | Michael Hanselmann | -path $(top_distdir)/_build -or \ |
792 | bf0b21da | Michael Hanselmann | -path $(top_distdir)/_inst \) | grep .; then \ |
793 | bf0b21da | Michael Hanselmann | echo "Found empty files or directories in final archive." 1>&2; \ |
794 | bf0b21da | Michael Hanselmann | exit 1; \ |
795 | bf0b21da | Michael Hanselmann | fi |
796 | c7b86f6c | Michael Hanselmann | if test -n "$(BUILD_RELEASE)" && \ |
797 | c7b86f6c | Michael Hanselmann | grep -n -H -E '^\*.*unreleased' $(top_distdir)/NEWS; then \ |
798 | c7b86f6c | Michael Hanselmann | echo "Found unreleased version in NEWS." >&2; \ |
799 | c7b86f6c | Michael Hanselmann | exit 1; \ |
800 | c7b86f6c | Michael Hanselmann | fi |
801 | c7b86f6c | Michael Hanselmann | |
802 | c7b86f6c | Michael Hanselmann | # When building a release, stricter checks should be used |
803 | e627fe09 | Michael Hanselmann | distcheck-release dist-release: export BUILD_RELEASE = 1 |
804 | c7b86f6c | Michael Hanselmann | distcheck-release: distcheck |
805 | b6f2e47f | Iustin Pop | |
806 | e627fe09 | Michael Hanselmann | dist-release: dist |
807 | e627fe09 | Michael Hanselmann | set -e; \ |
808 | e627fe09 | Michael Hanselmann | for i in $(DIST_ARCHIVES); do \ |
809 | e627fe09 | Michael Hanselmann | echo -n "Checking $$i ... "; \ |
810 | e627fe09 | Michael Hanselmann | autotools/check-tar < $$i; \ |
811 | e627fe09 | Michael Hanselmann | echo OK; \ |
812 | e627fe09 | Michael Hanselmann | done |
813 | e627fe09 | Michael Hanselmann | |
814 | 8925faaa | Iustin Pop | install-exec-local: |
815 | 0d93b082 | Michael Hanselmann | @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \ |
816 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/log/ganeti" \ |
817 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/run/ganeti" |
818 | e8230860 | Michael Hanselmann | |
819 | c964d962 | Michael Hanselmann | # To avoid conflicts between directory names and other targets, a file inside |
820 | c964d962 | Michael Hanselmann | # the directory is used to ensure its existence. |
821 | c964d962 | Michael Hanselmann | %.dir: |
822 | c964d962 | Michael Hanselmann | @mkdir_p@ $* && touch $@ |
823 | e8230860 | Michael Hanselmann | |
824 | d128fdb6 | Iustin Pop | .PHONY: apidoc |
825 | eb732fb5 | Michael Hanselmann | apidoc: epydoc.conf $(RUN_IN_TEMPDIR) $(BUILT_SOURCES) |
826 | b959138f | Michael Hanselmann | $(RUN_IN_TEMPDIR) epydoc -v \ |
827 | b959138f | Michael Hanselmann | --conf $(CURDIR)/epydoc.conf \ |
828 | b959138f | Michael Hanselmann | --output $(CURDIR)/doc/api |
829 | d128fdb6 | Iustin Pop | |
830 | 13e720f1 | Iustin Pop | .PHONY: TAGS |
831 | eb732fb5 | Michael Hanselmann | TAGS: $(BUILT_SOURCES) |
832 | 13e720f1 | Iustin Pop | rm -f TAGS |
833 | 74fa8200 | Iustin Pop | find . -path './lib/*.py' -o -path './scripts/gnt-*' -o \ |
834 | 74fa8200 | Iustin Pop | -path './daemons/ganeti-*' -o -path './tools/*' -o \ |
835 | 74fa8200 | Iustin Pop | -path './qa/*.py' | \ |
836 | 3bb5c580 | Iustin Pop | etags -l python - |
837 | 13e720f1 | Iustin Pop | |
838 | 27e336af | Michael Hanselmann | .PHONY: coverage |
839 | e8c8cf1a | Michael Hanselmann | coverage: $(BUILT_SOURCES) $(python_tests) |
840 | 27e336af | Michael Hanselmann | set -e; \ |
841 | 27e336af | Michael Hanselmann | COVERAGE_FILE=$(CURDIR)/doc/coverage/data \ |
842 | 27e336af | Michael Hanselmann | TEXT_COVERAGE=$(CURDIR)/doc/coverage/report.txt \ |
843 | 27e336af | Michael Hanselmann | HTML_COVERAGE=$(CURDIR)/doc/coverage \ |
844 | e8c8cf1a | Michael Hanselmann | $(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/gen-coverage \ |
845 | e8c8cf1a | Michael Hanselmann | $(python_tests) |
846 | 27e336af | Michael Hanselmann | |
847 | b341b9ca | Guido Trotter | commit-check: distcheck lint apidoc |
848 | b341b9ca | Guido Trotter | |
849 | 3baa809c | Michael Hanselmann | -include ./Makefile.local |
850 | 3baa809c | Michael Hanselmann | |
851 | e8230860 | Michael Hanselmann | # vim: set noet : |