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