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