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