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