root / Makefile.am @ c6ccba7e
History | View | Annotate | Download (15 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 | e8230860 | Michael Hanselmann | DOCBOOK_WRAPPER = $(top_srcdir)/autotools/docbook-wrapper |
14 | 4f3d5b76 | Michael Hanselmann | BUILD_BASH_COMPLETION = $(top_srcdir)/autotools/build-bash-completion |
15 | b959138f | Michael Hanselmann | RUN_IN_TEMPDIR = $(top_srcdir)/autotools/run-in-tempdir |
16 | eed5c5df | Michael Hanselmann | CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code |
17 | a4f12da4 | Michael Hanselmann | CHECK_MAN = $(top_srcdir)/autotools/check-man |
18 | e8230860 | Michael Hanselmann | REPLACE_VARS_SED = autotools/replace_vars.sed |
19 | e8230860 | Michael Hanselmann | |
20 | e8230860 | Michael Hanselmann | hypervisordir = $(pkgpythondir)/hypervisor |
21 | ff9efc03 | Michael Hanselmann | httpdir = $(pkgpythondir)/http |
22 | dc101ecc | Michael Hanselmann | masterddir = $(pkgpythondir)/masterd |
23 | 12426ae1 | Guido Trotter | confddir = $(pkgpythondir)/confd |
24 | 8c229cc7 | Oleksiy Mishchenko | rapidir = $(pkgpythondir)/rapi |
25 | e8230860 | Michael Hanselmann | toolsdir = $(pkglibdir)/tools |
26 | e8230860 | Michael Hanselmann | docdir = $(datadir)/doc/$(PACKAGE) |
27 | e8230860 | Michael Hanselmann | |
28 | a4f12da4 | Michael Hanselmann | # Delete output file if an error occurred while building it |
29 | a4f12da4 | Michael Hanselmann | .DELETE_ON_ERROR: |
30 | a4f12da4 | Michael Hanselmann | |
31 | e8230860 | Michael Hanselmann | DIRS = \ |
32 | e8230860 | Michael Hanselmann | autotools \ |
33 | e8230860 | Michael Hanselmann | daemons \ |
34 | e8230860 | Michael Hanselmann | devel \ |
35 | e8230860 | Michael Hanselmann | doc \ |
36 | e8230860 | Michael Hanselmann | doc/examples \ |
37 | d6d9ce45 | Guido Trotter | doc/examples/hooks \ |
38 | e8230860 | Michael Hanselmann | lib \ |
39 | f9897b6d | Michael Hanselmann | lib/build \ |
40 | 2f16ea8f | Michael Hanselmann | lib/confd \ |
41 | ff9efc03 | Michael Hanselmann | lib/http \ |
42 | e8230860 | Michael Hanselmann | lib/hypervisor \ |
43 | dc101ecc | Michael Hanselmann | lib/masterd \ |
44 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi \ |
45 | e8230860 | Michael Hanselmann | man \ |
46 | e8230860 | Michael Hanselmann | qa \ |
47 | e8230860 | Michael Hanselmann | scripts \ |
48 | e8230860 | Michael Hanselmann | test \ |
49 | e8230860 | Michael Hanselmann | test/data \ |
50 | e8230860 | Michael Hanselmann | tools |
51 | e8230860 | Michael Hanselmann | |
52 | 2ab2b9f5 | Iustin Pop | MAINTAINERCLEANFILES = \ |
53 | d17e74b4 | Iustin Pop | $(docpng) \ |
54 | b76aac08 | Michael Hanselmann | $(maninput) \ |
55 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst \ |
56 | b76aac08 | Michael Hanselmann | doc/news.rst |
57 | 2ab2b9f5 | Iustin Pop | |
58 | d17e74b4 | Iustin Pop | maintainer-clean-local: |
59 | 27e336af | Michael Hanselmann | rm -rf doc/api doc/html doc/coverage |
60 | d17e74b4 | Iustin Pop | |
61 | e8230860 | Michael Hanselmann | CLEANFILES = \ |
62 | 2f16ea8f | Michael Hanselmann | $(addsuffix /*.py[co],$(DIRS)) \ |
63 | e8230860 | Michael Hanselmann | autotools/replace_vars.sed \ |
64 | f154a7a3 | Michael Hanselmann | daemons/daemon-util \ |
65 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner \ |
66 | e8230860 | Michael Hanselmann | devel/upload \ |
67 | f72f8622 | Iustin Pop | doc/examples/bash_completion \ |
68 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd \ |
69 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron \ |
70 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup \ |
71 | a2442bf9 | Luca Bigliardi | doc/examples/hooks/ipsec \ |
72 | 2ab2b9f5 | Iustin Pop | $(man_MANS) \ |
73 | 2ab2b9f5 | Iustin Pop | $(manhtml) \ |
74 | e8230860 | Michael Hanselmann | stamp-directories \ |
75 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
76 | e8230860 | Michael Hanselmann | $(nodist_pkgpython_PYTHON) |
77 | e8230860 | Michael Hanselmann | |
78 | dc7d2c49 | Michael Hanselmann | BUILT_SOURCES = \ |
79 | dc7d2c49 | Michael Hanselmann | ganeti \ |
80 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
81 | dbefcc7e | Michael Hanselmann | stamp-directories \ |
82 | dc7d2c49 | Michael Hanselmann | lib/_autoconf.py |
83 | dc7d2c49 | Michael Hanselmann | |
84 | e8230860 | Michael Hanselmann | nodist_pkgpython_PYTHON = \ |
85 | e8230860 | Michael Hanselmann | lib/_autoconf.py |
86 | e8230860 | Michael Hanselmann | |
87 | f9897b6d | Michael Hanselmann | noinst_PYTHON = \ |
88 | f9897b6d | Michael Hanselmann | lib/build/__init__.py |
89 | f9897b6d | Michael Hanselmann | |
90 | e8230860 | Michael Hanselmann | pkgpython_PYTHON = \ |
91 | e8230860 | Michael Hanselmann | lib/__init__.py \ |
92 | a8a76bc2 | Guido Trotter | lib/asyncnotifier.py \ |
93 | e8230860 | Michael Hanselmann | lib/backend.py \ |
94 | e8230860 | Michael Hanselmann | lib/bdev.py \ |
95 | e8230860 | Michael Hanselmann | lib/bootstrap.py \ |
96 | e8230860 | Michael Hanselmann | lib/cli.py \ |
97 | e8230860 | Michael Hanselmann | lib/cmdlib.py \ |
98 | cea881e5 | Michael Hanselmann | lib/compat.py \ |
99 | e8230860 | Michael Hanselmann | lib/config.py \ |
100 | e8230860 | Michael Hanselmann | lib/constants.py \ |
101 | 821d9e43 | Michael Hanselmann | lib/daemon.py \ |
102 | e8230860 | Michael Hanselmann | lib/errors.py \ |
103 | e8230860 | Michael Hanselmann | lib/jqueue.py \ |
104 | 8b537bb0 | Michael Hanselmann | lib/jstore.py \ |
105 | e8230860 | Michael Hanselmann | lib/locking.py \ |
106 | e8230860 | Michael Hanselmann | lib/luxi.py \ |
107 | e8230860 | Michael Hanselmann | lib/mcpu.py \ |
108 | e8230860 | Michael Hanselmann | lib/objects.py \ |
109 | e8230860 | Michael Hanselmann | lib/opcodes.py \ |
110 | e8230860 | Michael Hanselmann | lib/rpc.py \ |
111 | e8230860 | Michael Hanselmann | lib/serializer.py \ |
112 | e8230860 | Michael Hanselmann | lib/ssconf.py \ |
113 | e8230860 | Michael Hanselmann | lib/ssh.py \ |
114 | ac2d0fe4 | Michael Hanselmann | lib/storage.py \ |
115 | 76094e37 | Michael Hanselmann | lib/utils.py \ |
116 | 1338f2b4 | Balazs Lecz | lib/uidpool.py \ |
117 | 76094e37 | Michael Hanselmann | lib/workerpool.py |
118 | e8230860 | Michael Hanselmann | |
119 | e8230860 | Michael Hanselmann | hypervisor_PYTHON = \ |
120 | e8230860 | Michael Hanselmann | lib/hypervisor/__init__.py \ |
121 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_base.py \ |
122 | 48297fa2 | Iustin Pop | lib/hypervisor/hv_chroot.py \ |
123 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_fake.py \ |
124 | eb58f9b1 | Guido Trotter | lib/hypervisor/hv_kvm.py \ |
125 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_xen.py |
126 | e8230860 | Michael Hanselmann | |
127 | 8c229cc7 | Oleksiy Mishchenko | rapi_PYTHON = \ |
128 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/__init__.py \ |
129 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/baserlib.py \ |
130 | 95ab4de9 | David Knowles | lib/rapi/client.py \ |
131 | 20b509de | Michael Hanselmann | lib/rapi/client_utils.py \ |
132 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/connector.py \ |
133 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/rlib2.py |
134 | 8c229cc7 | Oleksiy Mishchenko | |
135 | ff9efc03 | Michael Hanselmann | http_PYTHON = \ |
136 | 02cab3e7 | Michael Hanselmann | lib/http/__init__.py \ |
137 | be500c29 | Michael Hanselmann | lib/http/auth.py \ |
138 | 02cab3e7 | Michael Hanselmann | lib/http/client.py \ |
139 | 02cab3e7 | Michael Hanselmann | lib/http/server.py |
140 | ff9efc03 | Michael Hanselmann | |
141 | 12426ae1 | Guido Trotter | confd_PYTHON = \ |
142 | 71f27d19 | Guido Trotter | lib/confd/__init__.py \ |
143 | e4ccf6cd | Guido Trotter | lib/confd/client.py \ |
144 | 2f16ea8f | Michael Hanselmann | lib/confd/querylib.py \ |
145 | 2f16ea8f | Michael Hanselmann | lib/confd/server.py |
146 | 8c229cc7 | Oleksiy Mishchenko | |
147 | dc101ecc | Michael Hanselmann | masterd_PYTHON = \ |
148 | 033a1d00 | Michael Hanselmann | lib/masterd/__init__.py \ |
149 | 033a1d00 | Michael Hanselmann | lib/masterd/instance.py |
150 | dc101ecc | Michael Hanselmann | |
151 | f05c99f3 | Michael Hanselmann | docrst = \ |
152 | ffa6869f | Iustin Pop | doc/admin.rst \ |
153 | 5c0c1eeb | Iustin Pop | doc/design-2.0.rst \ |
154 | 4f366caf | Michael Hanselmann | doc/design-2.1.rst \ |
155 | e56bb0e8 | Guido Trotter | doc/design-2.2.rst \ |
156 | 3605691e | Renรฉ Nussbaumer | doc/design-cluster-merger.rst \ |
157 | 62947ebb | Michael Hanselmann | doc/devnotes.rst \ |
158 | e2078d28 | Iustin Pop | doc/glossary.rst \ |
159 | 4d6443f4 | Iustin Pop | doc/hooks.rst \ |
160 | 876860a3 | Iustin Pop | doc/iallocator.rst \ |
161 | d17e74b4 | Iustin Pop | doc/index.rst \ |
162 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst \ |
163 | 28e15341 | Iustin Pop | doc/install.rst \ |
164 | 9725b53d | Michael Hanselmann | doc/locking.rst \ |
165 | c71a1a3d | Iustin Pop | doc/news.rst \ |
166 | 6d81475c | Iustin Pop | doc/rapi.rst \ |
167 | b76aac08 | Michael Hanselmann | doc/security.rst \ |
168 | c71a1a3d | Iustin Pop | doc/walkthrough.rst |
169 | f05c99f3 | Michael Hanselmann | |
170 | 13de7d59 | Michael Hanselmann | doc/html/.stamp: $(docrst) $(docpng) doc/conf.py configure.ac |
171 | d17e74b4 | Iustin Pop | @test -n "$(SPHINX)" || \ |
172 | d17e74b4 | Iustin Pop | { echo 'sphinx-build' not found during configure; exit 1; } |
173 | e7f6524c | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(SPHINX) -q -W -b html \ |
174 | 13de7d59 | Michael Hanselmann | -d . \ |
175 | d17e74b4 | Iustin Pop | -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \ |
176 | d17e74b4 | Iustin Pop | -D release="$(PACKAGE_VERSION)" \ |
177 | 13de7d59 | Michael Hanselmann | $(abs_top_srcdir)/doc $(CURDIR)/doc/html |
178 | 13de7d59 | Michael Hanselmann | rm -f doc/html/.buildinfo doc/html/objects.inv |
179 | 13de7d59 | Michael Hanselmann | touch $@ |
180 | 13de7d59 | Michael Hanselmann | |
181 | 13de7d59 | Michael Hanselmann | doc/html: doc/html/.stamp |
182 | 2ab2b9f5 | Iustin Pop | |
183 | b76aac08 | Michael Hanselmann | doc/news.rst: NEWS |
184 | b76aac08 | Michael Hanselmann | set -e; \ |
185 | b76aac08 | Michael Hanselmann | { echo '.. This file is automatically updated at build time from $<.'; \ |
186 | b76aac08 | Michael Hanselmann | echo '.. Do not edit.'; \ |
187 | b76aac08 | Michael Hanselmann | echo; \ |
188 | b76aac08 | Michael Hanselmann | cat $<; \ |
189 | b76aac08 | Michael Hanselmann | } > $@ |
190 | b76aac08 | Michael Hanselmann | |
191 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst: INSTALL |
192 | cbf3d64b | Michael Hanselmann | set -e; \ |
193 | cbf3d64b | Michael Hanselmann | { echo '.. This file is automatically updated at build time from $<.'; \ |
194 | cbf3d64b | Michael Hanselmann | echo '.. Do not edit.'; \ |
195 | cbf3d64b | Michael Hanselmann | echo; \ |
196 | cbf3d64b | Michael Hanselmann | cat $<; \ |
197 | cbf3d64b | Michael Hanselmann | } > $@ |
198 | cbf3d64b | Michael Hanselmann | |
199 | b8195800 | Iustin Pop | docdot = \ |
200 | ca9ccea8 | Michael Hanselmann | doc/arch-2.0.dot \ |
201 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-acquire.dot \ |
202 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-release.dot |
203 | b8195800 | Iustin Pop | |
204 | d17e74b4 | Iustin Pop | docpng = $(patsubst %.dot,%.png,$(docdot)) |
205 | e8230860 | Michael Hanselmann | |
206 | 7e1ccbe0 | Michael Hanselmann | # Things to build but not to install (add it to EXTRA_DIST if it should be |
207 | 7e1ccbe0 | Michael Hanselmann | # distributed) |
208 | 7e1ccbe0 | Michael Hanselmann | noinst_DATA = \ |
209 | 7e1ccbe0 | Michael Hanselmann | devel/upload \ |
210 | 7e1ccbe0 | Michael Hanselmann | doc/html \ |
211 | 7e1ccbe0 | Michael Hanselmann | doc/examples/bash_completion \ |
212 | 7e1ccbe0 | Michael Hanselmann | doc/examples/ganeti.cron \ |
213 | 7e1ccbe0 | Michael Hanselmann | doc/examples/ganeti.initd \ |
214 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup \ |
215 | 7e1ccbe0 | Michael Hanselmann | doc/examples/hooks/ipsec \ |
216 | 7e1ccbe0 | Michael Hanselmann | $(manhtml) |
217 | f29266b4 | Iustin Pop | |
218 | 4f3d5b76 | Michael Hanselmann | gnt_scripts = \ |
219 | e8230860 | Michael Hanselmann | scripts/gnt-backup \ |
220 | e8230860 | Michael Hanselmann | scripts/gnt-cluster \ |
221 | e8230860 | Michael Hanselmann | scripts/gnt-debug \ |
222 | e8230860 | Michael Hanselmann | scripts/gnt-instance \ |
223 | e8230860 | Michael Hanselmann | scripts/gnt-job \ |
224 | e8230860 | Michael Hanselmann | scripts/gnt-node \ |
225 | e8230860 | Michael Hanselmann | scripts/gnt-os |
226 | e8230860 | Michael Hanselmann | |
227 | 4f3d5b76 | Michael Hanselmann | dist_sbin_SCRIPTS = \ |
228 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-noded \ |
229 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-watcher \ |
230 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-masterd \ |
231 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-confd \ |
232 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-rapi \ |
233 | 4f3d5b76 | Michael Hanselmann | $(gnt_scripts) |
234 | 4f3d5b76 | Michael Hanselmann | |
235 | fc3fd894 | Michael Hanselmann | nodist_sbin_SCRIPTS = \ |
236 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner |
237 | fc3fd894 | Michael Hanselmann | |
238 | e8230860 | Michael Hanselmann | dist_tools_SCRIPTS = \ |
239 | e8230860 | Michael Hanselmann | tools/burnin \ |
240 | e8230860 | Michael Hanselmann | tools/cfgshell \ |
241 | e8230860 | Michael Hanselmann | tools/cfgupgrade \ |
242 | b5672ea0 | Iustin Pop | tools/cfgupgrade12 \ |
243 | 1f7d3f7d | Renรฉ Nussbaumer | tools/cluster-merge \ |
244 | ea5fd476 | Iustin Pop | tools/lvmstrap \ |
245 | ea5fd476 | Iustin Pop | tools/sanitize-config |
246 | e8230860 | Michael Hanselmann | |
247 | 2d76b580 | Michael Hanselmann | pkglib_python_scripts = \ |
248 | c6ccba7e | Michael Hanselmann | daemons/import-export \ |
249 | c6ccba7e | Michael Hanselmann | tools/check-cert-expired |
250 | 2d76b580 | Michael Hanselmann | |
251 | f154a7a3 | Michael Hanselmann | pkglib_SCRIPTS = \ |
252 | 2d76b580 | Michael Hanselmann | daemons/daemon-util \ |
253 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) |
254 | f154a7a3 | Michael Hanselmann | |
255 | e8230860 | Michael Hanselmann | EXTRA_DIST = \ |
256 | e8230860 | Michael Hanselmann | NEWS \ |
257 | 70c771f6 | Michael Hanselmann | pylintrc \ |
258 | bb46a96c | Michael Hanselmann | autotools/build-bash-completion \ |
259 | eed5c5df | Michael Hanselmann | autotools/check-python-code \ |
260 | a4f12da4 | Michael Hanselmann | autotools/check-man \ |
261 | e8230860 | Michael Hanselmann | autotools/docbook-wrapper \ |
262 | 27e336af | Michael Hanselmann | autotools/gen-coverage \ |
263 | e8c8cf1a | Michael Hanselmann | autotools/testrunner \ |
264 | f3313af5 | Guido Trotter | $(RUN_IN_TEMPDIR) \ |
265 | f154a7a3 | Michael Hanselmann | daemons/daemon-util.in \ |
266 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner.in \ |
267 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
268 | e8230860 | Michael Hanselmann | devel/upload.in \ |
269 | b8195800 | Iustin Pop | $(docdot) \ |
270 | f727d134 | Michael Hanselmann | $(docpng) \ |
271 | d17e74b4 | Iustin Pop | $(docrst) \ |
272 | d17e74b4 | Iustin Pop | doc/conf.py \ |
273 | d17e74b4 | Iustin Pop | doc/html \ |
274 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd.in \ |
275 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron.in \ |
276 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup.in \ |
277 | e8230860 | Michael Hanselmann | doc/examples/dumb-allocator \ |
278 | 752a8ca8 | Michael Hanselmann | doc/examples/ganeti.default \ |
279 | 752a8ca8 | Michael Hanselmann | doc/examples/ganeti.default-debug \ |
280 | d6d9ce45 | Guido Trotter | doc/examples/hooks/ethers \ |
281 | a2442bf9 | Luca Bigliardi | doc/examples/hooks/ipsec.in \ |
282 | e8230860 | Michael Hanselmann | test/testutils.py \ |
283 | e8230860 | Michael Hanselmann | test/mocks.py \ |
284 | e8230860 | Michael Hanselmann | $(dist_TESTS) \ |
285 | e8230860 | Michael Hanselmann | $(TEST_FILES) \ |
286 | e8230860 | Michael Hanselmann | man/footer.sgml \ |
287 | f727d134 | Michael Hanselmann | $(mansgml) \ |
288 | f727d134 | Michael Hanselmann | $(maninput) \ |
289 | e8230860 | Michael Hanselmann | qa/ganeti-qa.py \ |
290 | 39e0d19e | Michael Hanselmann | qa/qa-sample.json \ |
291 | e8230860 | Michael Hanselmann | qa/qa_cluster.py \ |
292 | e8230860 | Michael Hanselmann | qa/qa_config.py \ |
293 | e8230860 | Michael Hanselmann | qa/qa_daemon.py \ |
294 | e8230860 | Michael Hanselmann | qa/qa_env.py \ |
295 | e8230860 | Michael Hanselmann | qa/qa_error.py \ |
296 | e8230860 | Michael Hanselmann | qa/qa_instance.py \ |
297 | e8230860 | Michael Hanselmann | qa/qa_node.py \ |
298 | e8230860 | Michael Hanselmann | qa/qa_os.py \ |
299 | a47f574c | Oleksiy Mishchenko | qa/qa_rapi.py \ |
300 | e8230860 | Michael Hanselmann | qa/qa_tags.py \ |
301 | e8230860 | Michael Hanselmann | qa/qa_utils.py |
302 | e8230860 | Michael Hanselmann | |
303 | e8230860 | Michael Hanselmann | man_MANS = \ |
304 | e8230860 | Michael Hanselmann | man/ganeti.7 \ |
305 | bae7e531 | Michael Hanselmann | man/ganeti-cleaner.8 \ |
306 | b7b7cda6 | Guido Trotter | man/ganeti-confd.8 \ |
307 | 320d986d | Iustin Pop | man/ganeti-masterd.8 \ |
308 | e8230860 | Michael Hanselmann | man/ganeti-noded.8 \ |
309 | e8230860 | Michael Hanselmann | man/ganeti-os-interface.7 \ |
310 | 320d986d | Iustin Pop | man/ganeti-rapi.8 \ |
311 | e8230860 | Michael Hanselmann | man/ganeti-watcher.8 \ |
312 | e8230860 | Michael Hanselmann | man/gnt-backup.8 \ |
313 | e8230860 | Michael Hanselmann | man/gnt-cluster.8 \ |
314 | d3b4cf9f | Iustin Pop | man/gnt-debug.8 \ |
315 | e8230860 | Michael Hanselmann | man/gnt-instance.8 \ |
316 | d3b4cf9f | Iustin Pop | man/gnt-job.8 \ |
317 | e8230860 | Michael Hanselmann | man/gnt-node.8 \ |
318 | e8230860 | Michael Hanselmann | man/gnt-os.8 |
319 | e8230860 | Michael Hanselmann | |
320 | 2ab2b9f5 | Iustin Pop | mansgml = $(patsubst %.7,%.sgml,$(patsubst %.8,%.sgml,$(man_MANS))) |
321 | 2ab2b9f5 | Iustin Pop | manhtml = $(patsubst %.sgml,%.html,$(mansgml)) |
322 | 25c92bc5 | Michael Hanselmann | maninput = \ |
323 | 25c92bc5 | Michael Hanselmann | $(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS))) \ |
324 | 25c92bc5 | Michael Hanselmann | $(patsubst %.html,%.html.in,$(manhtml)) |
325 | e8230860 | Michael Hanselmann | |
326 | e8230860 | Michael Hanselmann | TEST_FILES = \ |
327 | e8230860 | Michael Hanselmann | test/data/bdev-both.txt \ |
328 | d816408a | Iustin Pop | test/data/bdev-8.3-both.txt \ |
329 | e8230860 | Michael Hanselmann | test/data/bdev-disk.txt \ |
330 | e8230860 | Michael Hanselmann | test/data/bdev-net.txt \ |
331 | 27e46076 | Michael Hanselmann | test/data/cert1.pem \ |
332 | d816408a | Iustin Pop | test/data/proc_drbd8.txt \ |
333 | a6ac80db | Iustin Pop | test/data/proc_drbd80-emptyline.txt \ |
334 | 2d76b580 | Michael Hanselmann | test/data/proc_drbd83.txt \ |
335 | 2d76b580 | Michael Hanselmann | test/import-export_unittest-helper |
336 | e8230860 | Michael Hanselmann | |
337 | e8c8cf1a | Michael Hanselmann | python_tests = \ |
338 | f942a838 | Michael Hanselmann | test/ganeti.backend_unittest.py \ |
339 | 6de7c41d | Iustin Pop | test/ganeti.bdev_unittest.py \ |
340 | 6de7c41d | Iustin Pop | test/ganeti.cli_unittest.py \ |
341 | 6de7c41d | Iustin Pop | test/ganeti.cmdlib_unittest.py \ |
342 | cea881e5 | Michael Hanselmann | test/ganeti.compat_unittest.py \ |
343 | edf7d66e | Iustin Pop | test/ganeti.confd.client_unittest.py \ |
344 | e8230860 | Michael Hanselmann | test/ganeti.config_unittest.py \ |
345 | 6de7c41d | Iustin Pop | test/ganeti.constants_unittest.py \ |
346 | 3bd19c66 | Michael Hanselmann | test/ganeti.errors_unittest.py \ |
347 | e8230860 | Michael Hanselmann | test/ganeti.hooks_unittest.py \ |
348 | 6de7c41d | Iustin Pop | test/ganeti.http_unittest.py \ |
349 | e8230860 | Michael Hanselmann | test/ganeti.locking_unittest.py \ |
350 | 231db3a5 | Michael Hanselmann | test/ganeti.luxi_unittest.py \ |
351 | 033a1d00 | Michael Hanselmann | test/ganeti.masterd.instance_unittest.py \ |
352 | 407339d0 | Michael Hanselmann | test/ganeti.mcpu_unittest.py \ |
353 | 4c14965f | Guido Trotter | test/ganeti.objects_unittest.py \ |
354 | c32b908e | Michael Hanselmann | test/ganeti.opcodes_unittest.py \ |
355 | 95ab4de9 | David Knowles | test/ganeti.rapi.client_unittest.py \ |
356 | 4cbd4462 | Oleksiy Mishchenko | test/ganeti.rapi.resources_unittest.py \ |
357 | 6395cebb | Michael Hanselmann | test/ganeti.rapi.rlib2_unittest.py \ |
358 | 6de7c41d | Iustin Pop | test/ganeti.serializer_unittest.py \ |
359 | 6de7c41d | Iustin Pop | test/ganeti.ssh_unittest.py \ |
360 | 93be53da | Balazs Lecz | test/ganeti.uidpool_unittest.py \ |
361 | 6de7c41d | Iustin Pop | test/ganeti.utils_unittest.py \ |
362 | 4b6fa0bf | Luca Bigliardi | test/ganeti.utils_mlockall_unittest.py \ |
363 | 3f991867 | Michael Hanselmann | test/ganeti.workerpool_unittest.py \ |
364 | 055f822b | Michael Hanselmann | test/docs_unittest.py \ |
365 | 055f822b | Michael Hanselmann | test/tempfile_fork_unittest.py |
366 | e8230860 | Michael Hanselmann | |
367 | e8c8cf1a | Michael Hanselmann | dist_TESTS = \ |
368 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash \ |
369 | 2d76b580 | Michael Hanselmann | test/import-export_unittest.bash \ |
370 | c6ccba7e | Michael Hanselmann | test/check-cert-expired_unittest.bash \ |
371 | e8c8cf1a | Michael Hanselmann | $(python_tests) |
372 | e8c8cf1a | Michael Hanselmann | |
373 | e8230860 | Michael Hanselmann | nodist_TESTS = |
374 | e8230860 | Michael Hanselmann | |
375 | e8230860 | Michael Hanselmann | TESTS = $(dist_TESTS) $(nodist_TESTS) |
376 | e8230860 | Michael Hanselmann | |
377 | 27e336af | Michael Hanselmann | # Environment for all tests |
378 | 27e336af | Michael Hanselmann | PLAIN_TESTS_ENVIRONMENT = \ |
379 | 27e336af | Michael Hanselmann | PYTHONPATH=. TOP_SRCDIR=$(abs_top_srcdir) PYTHON=$(PYTHON) $(RUN_IN_TEMPDIR) |
380 | 27e336af | Michael Hanselmann | |
381 | 27e336af | Michael Hanselmann | # Environment for tests run by automake |
382 | f848ac00 | Michael Hanselmann | TESTS_ENVIRONMENT = \ |
383 | e8c8cf1a | Michael Hanselmann | $(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/testrunner |
384 | 6e06b36c | Iustin Pop | |
385 | eed5c5df | Michael Hanselmann | all_python_code = \ |
386 | 01a3a718 | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
387 | 01a3a718 | Michael Hanselmann | $(dist_tools_SCRIPTS) \ |
388 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
389 | e8c8cf1a | Michael Hanselmann | $(python_tests) \ |
390 | 01a3a718 | Michael Hanselmann | $(pkgpython_PYTHON) \ |
391 | 01a3a718 | Michael Hanselmann | $(hypervisor_PYTHON) \ |
392 | 01a3a718 | Michael Hanselmann | $(rapi_PYTHON) \ |
393 | 01a3a718 | Michael Hanselmann | $(http_PYTHON) \ |
394 | 01a3a718 | Michael Hanselmann | $(confd_PYTHON) \ |
395 | dc101ecc | Michael Hanselmann | $(masterd_PYTHON) \ |
396 | 01a3a718 | Michael Hanselmann | $(noinst_PYTHON) |
397 | 01a3a718 | Michael Hanselmann | |
398 | eed5c5df | Michael Hanselmann | srclink_files = \ |
399 | eed5c5df | Michael Hanselmann | man/footer.sgml \ |
400 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash \ |
401 | 2d76b580 | Michael Hanselmann | test/import-export_unittest.bash \ |
402 | eed5c5df | Michael Hanselmann | $(all_python_code) |
403 | eed5c5df | Michael Hanselmann | |
404 | eed5c5df | Michael Hanselmann | check_python_code = \ |
405 | e4e7c7df | Michael Hanselmann | $(BUILD_BASH_COMPLETION) \ |
406 | eed5c5df | Michael Hanselmann | $(all_python_code) |
407 | eed5c5df | Michael Hanselmann | |
408 | e4e7c7df | Michael Hanselmann | lint_python_code = \ |
409 | f60d352e | Michael Hanselmann | ganeti \ |
410 | f60d352e | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
411 | f60d352e | Michael Hanselmann | $(dist_tools_SCRIPTS) \ |
412 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
413 | f60d352e | Michael Hanselmann | $(BUILD_BASH_COMPLETION) |
414 | eed5c5df | Michael Hanselmann | |
415 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash: daemons/daemon-util |
416 | 571b34f8 | Michael Hanselmann | |
417 | dbefcc7e | Michael Hanselmann | devel/upload: devel/upload.in $(REPLACE_VARS_SED) |
418 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
419 | e8230860 | Michael Hanselmann | chmod u+x $@ |
420 | e8230860 | Michael Hanselmann | |
421 | f154a7a3 | Michael Hanselmann | daemons/%: daemons/%.in \ |
422 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED) |
423 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
424 | 5c566e17 | Michael Hanselmann | chmod +x $@ |
425 | e8230860 | Michael Hanselmann | |
426 | dbefcc7e | Michael Hanselmann | doc/examples/%: doc/examples/%.in \ |
427 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED) |
428 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
429 | e8230860 | Michael Hanselmann | |
430 | dbefcc7e | Michael Hanselmann | doc/examples/hooks/%: doc/examples/hooks/%.in \ |
431 | a2442bf9 | Luca Bigliardi | $(REPLACE_VARS_SED) |
432 | a2442bf9 | Luca Bigliardi | sed -f $(REPLACE_VARS_SED) < $< > $@ |
433 | a2442bf9 | Luca Bigliardi | |
434 | b959138f | Michael Hanselmann | doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \ |
435 | 4f3d5b76 | Michael Hanselmann | lib/cli.py $(gnt_scripts) tools/burnin |
436 | b959138f | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@ |
437 | 4f3d5b76 | Michael Hanselmann | |
438 | f86e82ef | Iustin Pop | doc/%.png: doc/%.dot |
439 | 2ab2b9f5 | Iustin Pop | @test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; } |
440 | f86e82ef | Iustin Pop | $(DOT) -Tpng -o $@ $< |
441 | f86e82ef | Iustin Pop | |
442 | 2ab2b9f5 | Iustin Pop | man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
443 | 25c92bc5 | Michael Hanselmann | @test -n "$(DOCBOOK2MAN)" || \ |
444 | 25c92bc5 | Michael Hanselmann | { echo 'docbook2man' not found during configure; exit 1; } |
445 | 434c34a5 | Michael Hanselmann | $(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $(notdir $(@:.in=)) $@ |
446 | 5fa16422 | Iustin Pop | $(CHECK_MAN) $@ |
447 | 2ab2b9f5 | Iustin Pop | |
448 | 2ab2b9f5 | Iustin Pop | man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
449 | 25c92bc5 | Michael Hanselmann | @test -n "$(DOCBOOK2HTML)" || \ |
450 | 25c92bc5 | Michael Hanselmann | { echo 'docbook2html' not found during configure; exit 1; } |
451 | 434c34a5 | Michael Hanselmann | $(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $(notdir $(@:.in=)) $@ |
452 | 2ab2b9f5 | Iustin Pop | |
453 | dbefcc7e | Michael Hanselmann | man/%.7: man/%.7.in $(REPLACE_VARS_SED) |
454 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
455 | e8230860 | Michael Hanselmann | |
456 | dbefcc7e | Michael Hanselmann | man/%.8: man/%.8.in $(REPLACE_VARS_SED) |
457 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
458 | e8230860 | Michael Hanselmann | |
459 | dbefcc7e | Michael Hanselmann | man/%.html: man/%.html.in $(REPLACE_VARS_SED) |
460 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
461 | f29266b4 | Iustin Pop | |
462 | e8230860 | Michael Hanselmann | lib/_autoconf.py: Makefile stamp-directories |
463 | e8230860 | Michael Hanselmann | set -e; \ |
464 | e8230860 | Michael Hanselmann | { echo '# This file is automatically generated, do not edit!'; \ |
465 | e8230860 | Michael Hanselmann | echo '#'; \ |
466 | 67047322 | Iustin Pop | echo ''; \ |
467 | 67047322 | Iustin Pop | echo '"""Build-time configuration for Ganeti.'; \ |
468 | 67047322 | Iustin Pop | echo '';\ |
469 | 67047322 | Iustin Pop | echo 'This file is autogenerated by the build process.'; \ |
470 | 67047322 | Iustin Pop | echo 'For any changes you need to re-run ./configure (and'; \ |
471 | 67047322 | Iustin Pop | echo 'not edit by hand).'; \ |
472 | 67047322 | Iustin Pop | echo ''; \ |
473 | 67047322 | Iustin Pop | echo '"""'; \ |
474 | 67047322 | Iustin Pop | echo ''; \ |
475 | 0a4e7f24 | Iustin Pop | echo '# pylint: disable-msg=C0301,C0324'; \ |
476 | 0a4e7f24 | Iustin Pop | echo '# because this is autogenerated, we do not want'; \ |
477 | 0a4e7f24 | Iustin Pop | echo '# style warnings' ; \ |
478 | 0a4e7f24 | Iustin Pop | echo ''; \ |
479 | e8230860 | Michael Hanselmann | echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \ |
480 | e8230860 | Michael Hanselmann | echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \ |
481 | e8230860 | Michael Hanselmann | echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \ |
482 | e8230860 | Michael Hanselmann | echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \ |
483 | e8230860 | Michael Hanselmann | echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \ |
484 | e8230860 | Michael Hanselmann | echo "VERSION_FULL = '$(VERSION_FULL)'"; \ |
485 | e8230860 | Michael Hanselmann | echo "LOCALSTATEDIR = '$(localstatedir)'"; \ |
486 | e8230860 | Michael Hanselmann | echo "SYSCONFDIR = '$(sysconfdir)'"; \ |
487 | 553bd93f | Vitaly Kuznetsov | echo "SSH_CONFIG_DIR = '$(SSH_CONFIG_DIR)'"; \ |
488 | e8230860 | Michael Hanselmann | echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \ |
489 | e8230860 | Michael Hanselmann | echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \ |
490 | 2f2dbb4b | Jun Futagawa | echo "XEN_BOOTLOADER = '$(XEN_BOOTLOADER)'"; \ |
491 | e8230860 | Michael Hanselmann | echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \ |
492 | e8230860 | Michael Hanselmann | echo "XEN_INITRD = '$(XEN_INITRD)'"; \ |
493 | e8230860 | Michael Hanselmann | echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \ |
494 | cb7c0198 | Iustin Pop | echo "ENABLE_FILE_STORAGE = $(ENABLE_FILE_STORAGE)"; \ |
495 | e8230860 | Michael Hanselmann | echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \ |
496 | 7e2c5b9e | Guido Trotter | echo "KVM_PATH = '$(KVM_PATH)'"; \ |
497 | fe5b0c42 | Michael Hanselmann | echo "SOCAT_PATH = '$(SOCAT)'"; \ |
498 | fe5b0c42 | Michael Hanselmann | echo "SOCAT_USE_ESCAPE = $(SOCAT_USE_ESCAPE)"; \ |
499 | bea60381 | Michael Hanselmann | echo "LVM_STRIPECOUNT = $(LVM_STRIPECOUNT)"; \ |
500 | bea60381 | Michael Hanselmann | echo "TOOLSDIR = '$(toolsdir)'"; \ |
501 | 4f3d5b76 | Michael Hanselmann | echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \ |
502 | f154a7a3 | Michael Hanselmann | echo "PKGLIBDIR = '$(pkglibdir)'"; \ |
503 | 89b70f39 | Iustin Pop | echo "DRBD_BARRIERS = $(DRBD_BARRIERS)"; \ |
504 | 551b6283 | Iustin Pop | echo "SYSLOG_USAGE = '$(SYSLOG_USAGE)'"; \ |
505 | e8230860 | Michael Hanselmann | } > $@ |
506 | e8230860 | Michael Hanselmann | |
507 | dbefcc7e | Michael Hanselmann | $(REPLACE_VARS_SED): Makefile |
508 | e8230860 | Michael Hanselmann | set -e; \ |
509 | e8230860 | Michael Hanselmann | { echo 's#@PREFIX@#$(prefix)#g'; \ |
510 | e8230860 | Michael Hanselmann | echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ |
511 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
512 | 7a2ba406 | Luca Bigliardi | echo 's#@BINDIR@#$(bindir)#g'; \ |
513 | e8230860 | Michael Hanselmann | echo 's#@SBINDIR@#$(sbindir)#g'; \ |
514 | e8230860 | Michael Hanselmann | echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \ |
515 | 2f2dbb4b | Jun Futagawa | echo 's#@CUSTOM_XEN_BOOTLOADER@#$(XEN_BOOTLOADER)#g'; \ |
516 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \ |
517 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \ |
518 | d3b4cf9f | Iustin Pop | echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \ |
519 | 7e1fac25 | Michael Hanselmann | echo 's#@RPL_SSH_INITD_SCRIPT@#$(SSH_INITD_SCRIPT)#g'; \ |
520 | c5159571 | Iustin Pop | echo 's#@PKGLIBDIR@#$(pkglibdir)#g'; \ |
521 | e8230860 | Michael Hanselmann | } > $@ |
522 | e8230860 | Michael Hanselmann | |
523 | e8230860 | Michael Hanselmann | # We need to create symlinks because "make distcheck" will not install Python |
524 | e8230860 | Michael Hanselmann | # files when building. |
525 | dd1dfd9a | Michael Hanselmann | stamp-srclinks: Makefile stamp-directories |
526 | e8230860 | Michael Hanselmann | set -e; \ |
527 | 01a3a718 | Michael Hanselmann | for i in $(srclink_files); do \ |
528 | e8230860 | Michael Hanselmann | if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \ |
529 | e8230860 | Michael Hanselmann | $(LN_S) $(abs_top_srcdir)/$$i $$i; \ |
530 | e8230860 | Michael Hanselmann | fi; \ |
531 | e8230860 | Michael Hanselmann | done |
532 | dd1dfd9a | Michael Hanselmann | touch $@ |
533 | 97a37b3f | Michael Hanselmann | |
534 | 9ff7e35c | Michael Hanselmann | .PHONY: ganeti |
535 | 9ff7e35c | Michael Hanselmann | ganeti: |
536 | 01f3e7b1 | Iustin Pop | cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; } |
537 | 9ff7e35c | Michael Hanselmann | |
538 | eed5c5df | Michael Hanselmann | check-local: |
539 | eed5c5df | Michael Hanselmann | $(CHECK_PYTHON_CODE) $(check_python_code) |
540 | eed5c5df | Michael Hanselmann | |
541 | e0098923 | Iustin Pop | .PHONY: lint |
542 | eb732fb5 | Michael Hanselmann | lint: ganeti $(BUILT_SOURCES) |
543 | 6d7cc5ff | Michael Hanselmann | @test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; } |
544 | 6d7cc5ff | Michael Hanselmann | $(PYLINT) $(LINT_OPTS) $(lint_python_code) |
545 | e0098923 | Iustin Pop | |
546 | b6f2e47f | Iustin Pop | # a dist hook rule for catching revision control directories |
547 | b6f2e47f | Iustin Pop | distcheck-hook: |
548 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name .svn -or -name .git | grep .; then \ |
549 | c6aa0c42 | Michael Hanselmann | echo "Found revision control files in final archive." 1>&2; \ |
550 | c6aa0c42 | Michael Hanselmann | exit 1; \ |
551 | c6aa0c42 | Michael Hanselmann | fi |
552 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name '*.py[co]' | grep .; then \ |
553 | c6aa0c42 | Michael Hanselmann | echo "Found Python byte code in final archive." 1>&2; \ |
554 | c6aa0c42 | Michael Hanselmann | exit 1; \ |
555 | c6aa0c42 | Michael Hanselmann | fi |
556 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name '*~' | grep .; then \ |
557 | c6aa0c42 | Michael Hanselmann | echo "Found backup files in final archive." 1>&2; \ |
558 | b6f2e47f | Iustin Pop | exit 1; \ |
559 | b6f2e47f | Iustin Pop | fi |
560 | b6f2e47f | Iustin Pop | |
561 | 8925faaa | Iustin Pop | install-exec-local: |
562 | 0d93b082 | Michael Hanselmann | @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \ |
563 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/log/ganeti" \ |
564 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/run/ganeti" |
565 | e8230860 | Michael Hanselmann | |
566 | e8230860 | Michael Hanselmann | stamp-directories: Makefile |
567 | e8230860 | Michael Hanselmann | @mkdir_p@ $(DIRS) |
568 | e8230860 | Michael Hanselmann | touch $@ |
569 | e8230860 | Michael Hanselmann | |
570 | d128fdb6 | Iustin Pop | .PHONY: apidoc |
571 | eb732fb5 | Michael Hanselmann | apidoc: epydoc.conf $(RUN_IN_TEMPDIR) $(BUILT_SOURCES) |
572 | d128fdb6 | Iustin Pop | test -e doc/api || mkdir doc/api |
573 | b959138f | Michael Hanselmann | $(RUN_IN_TEMPDIR) epydoc -v \ |
574 | b959138f | Michael Hanselmann | --conf $(CURDIR)/epydoc.conf \ |
575 | b959138f | Michael Hanselmann | --output $(CURDIR)/doc/api |
576 | d128fdb6 | Iustin Pop | |
577 | 13e720f1 | Iustin Pop | .PHONY: TAGS |
578 | eb732fb5 | Michael Hanselmann | TAGS: $(BUILT_SOURCES) |
579 | 13e720f1 | Iustin Pop | rm -f TAGS |
580 | 13e720f1 | Iustin Pop | find . -path './lib/*.py' -o -path 'scripts/gnt-*' -o \ |
581 | 13e720f1 | Iustin Pop | -path 'daemons/ganeti-*' -o -path 'tools/*' | \ |
582 | 13e720f1 | Iustin Pop | etags - |
583 | 13e720f1 | Iustin Pop | |
584 | 27e336af | Michael Hanselmann | .PHONY: coverage |
585 | e8c8cf1a | Michael Hanselmann | coverage: $(BUILT_SOURCES) $(python_tests) |
586 | 27e336af | Michael Hanselmann | set -e; \ |
587 | 27e336af | Michael Hanselmann | mkdir -p doc/coverage; \ |
588 | 27e336af | Michael Hanselmann | COVERAGE_FILE=$(CURDIR)/doc/coverage/data \ |
589 | 27e336af | Michael Hanselmann | TEXT_COVERAGE=$(CURDIR)/doc/coverage/report.txt \ |
590 | 27e336af | Michael Hanselmann | HTML_COVERAGE=$(CURDIR)/doc/coverage \ |
591 | e8c8cf1a | Michael Hanselmann | $(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/gen-coverage \ |
592 | e8c8cf1a | Michael Hanselmann | $(python_tests) |
593 | 27e336af | Michael Hanselmann | |
594 | b341b9ca | Guido Trotter | commit-check: distcheck lint apidoc |
595 | b341b9ca | Guido Trotter | |
596 | e8230860 | Michael Hanselmann | # vim: set noet : |