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