root / Makefile.am @ 6c3d18e0
History | View | Annotate | Download (32.1 kB)
1 | e8230860 | Michael Hanselmann | # Ganeti makefile |
---|---|---|---|
2 | e8230860 | Michael Hanselmann | # - Indent with tabs only. |
3 | e8230860 | Michael Hanselmann | # - Keep files sorted; one line per file. |
4 | e8230860 | Michael Hanselmann | # - Directories in lib/ must have their own *dir variable (see hypervisor). |
5 | e8230860 | Michael Hanselmann | # - All directories must be listed DIRS. |
6 | 0a7bed64 | Michael Hanselmann | # - Use autogen.sh to generate Makefile.in and configure script. |
7 | e8230860 | Michael Hanselmann | |
8 | e8230860 | Michael Hanselmann | # Automake doesn't export these variables before version 1.10. |
9 | e8230860 | Michael Hanselmann | abs_top_builddir = @abs_top_builddir@ |
10 | e8230860 | Michael Hanselmann | abs_top_srcdir = @abs_top_srcdir@ |
11 | e8230860 | Michael Hanselmann | |
12 | 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 | 95eb4188 | Michael Hanselmann | DOCPP = $(top_srcdir)/autotools/docpp |
23 | e8230860 | Michael Hanselmann | REPLACE_VARS_SED = autotools/replace_vars.sed |
24 | d99d1e36 | Iustin Pop | CONVERT_CONSTANTS = $(top_srcdir)/autotools/convert-constants |
25 | e8230860 | Michael Hanselmann | |
26 | 22c5390d | Iustin Pop | # Note: these are automake-specific variables, and must be named after |
27 | 22c5390d | Iustin Pop | # the directory + 'dir' suffix |
28 | 2d48a3a2 | Michael Hanselmann | clientdir = $(pkgpythondir)/client |
29 | e8230860 | Michael Hanselmann | hypervisordir = $(pkgpythondir)/hypervisor |
30 | ff9efc03 | Michael Hanselmann | httpdir = $(pkgpythondir)/http |
31 | dc101ecc | Michael Hanselmann | masterddir = $(pkgpythondir)/masterd |
32 | 12426ae1 | Guido Trotter | confddir = $(pkgpythondir)/confd |
33 | 8c229cc7 | Oleksiy Mishchenko | rapidir = $(pkgpythondir)/rapi |
34 | 899c4d2c | Michael Hanselmann | serverdir = $(pkgpythondir)/server |
35 | 9f4bb951 | Michael Hanselmann | watcherdir = $(pkgpythondir)/watcher |
36 | bb44b1ae | Michael Hanselmann | impexpddir = $(pkgpythondir)/impexpd |
37 | c047a981 | Michael Hanselmann | utilsdir = $(pkgpythondir)/utils |
38 | e8230860 | Michael Hanselmann | toolsdir = $(pkglibdir)/tools |
39 | 7617fd6b | Iustin Pop | iallocatorsdir = $(pkglibdir)/iallocators |
40 | 0d2bf835 | René Nussbaumer | pytoolsdir = $(pkgpythondir)/tools |
41 | e8230860 | Michael Hanselmann | docdir = $(datadir)/doc/$(PACKAGE) |
42 | e8230860 | Michael Hanselmann | |
43 | a4f12da4 | Michael Hanselmann | # Delete output file if an error occurred while building it |
44 | a4f12da4 | Michael Hanselmann | .DELETE_ON_ERROR: |
45 | a4f12da4 | Michael Hanselmann | |
46 | d5506465 | Iustin Pop | HTOOLS_DIRS = \ |
47 | d5506465 | Iustin Pop | htools \ |
48 | d5506465 | Iustin Pop | htools/Ganeti \ |
49 | d5506465 | Iustin Pop | htools/Ganeti/HTools |
50 | d5506465 | Iustin Pop | |
51 | e8230860 | Michael Hanselmann | DIRS = \ |
52 | e8230860 | Michael Hanselmann | autotools \ |
53 | e8230860 | Michael Hanselmann | daemons \ |
54 | e8230860 | Michael Hanselmann | devel \ |
55 | e8230860 | Michael Hanselmann | doc \ |
56 | e8230860 | Michael Hanselmann | doc/examples \ |
57 | d6d9ce45 | Guido Trotter | doc/examples/hooks \ |
58 | c51580b3 | Guido Trotter | doc/examples/gnt-debug \ |
59 | d5506465 | Iustin Pop | $(HTOOLS_DIRS) \ |
60 | e8230860 | Michael Hanselmann | lib \ |
61 | 2d48a3a2 | Michael Hanselmann | lib/client \ |
62 | f9897b6d | Michael Hanselmann | lib/build \ |
63 | 2f16ea8f | Michael Hanselmann | lib/confd \ |
64 | ff9efc03 | Michael Hanselmann | lib/http \ |
65 | e8230860 | Michael Hanselmann | lib/hypervisor \ |
66 | bb44b1ae | Michael Hanselmann | lib/impexpd \ |
67 | dc101ecc | Michael Hanselmann | lib/masterd \ |
68 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi \ |
69 | 899c4d2c | Michael Hanselmann | lib/server \ |
70 | 0d2bf835 | René Nussbaumer | lib/tools \ |
71 | c047a981 | Michael Hanselmann | lib/utils \ |
72 | 9f4bb951 | Michael Hanselmann | lib/watcher \ |
73 | e8230860 | Michael Hanselmann | man \ |
74 | e8230860 | Michael Hanselmann | qa \ |
75 | e8230860 | Michael Hanselmann | test \ |
76 | e8230860 | Michael Hanselmann | test/data \ |
77 | e8230860 | Michael Hanselmann | tools |
78 | e8230860 | Michael Hanselmann | |
79 | 2750b299 | Michael Hanselmann | BUILDTIME_DIR_AUTOCREATE = \ |
80 | c964d962 | Michael Hanselmann | scripts \ |
81 | 22c5390d | Iustin Pop | $(APIDOC_DIR) \ |
82 | 22c5390d | Iustin Pop | $(APIDOC_PY_DIR) \ |
83 | 22c5390d | Iustin Pop | $(APIDOC_HS_DIR) \ |
84 | 22c5390d | Iustin Pop | $(APIDOC_HS_DIR)/Ganeti $(APIDOC_HS_DIR)/Ganeti/HTools \ |
85 | 22c5390d | Iustin Pop | $(COVERAGE_DIR) \ |
86 | 22c5390d | Iustin Pop | $(COVERAGE_PY_DIR) \ |
87 | 22c5390d | Iustin Pop | $(COVERAGE_HS_DIR) \ |
88 | b91e9518 | Iustin Pop | .hpc |
89 | 2750b299 | Michael Hanselmann | |
90 | 2750b299 | Michael Hanselmann | BUILDTIME_DIRS = \ |
91 | 2750b299 | Michael Hanselmann | $(BUILDTIME_DIR_AUTOCREATE) \ |
92 | 6b997854 | Michael Hanselmann | doc/html |
93 | 6b997854 | Michael Hanselmann | |
94 | 6b997854 | Michael Hanselmann | DIRCHECK_EXCLUDE = \ |
95 | 6b997854 | Michael Hanselmann | $(BUILDTIME_DIRS) \ |
96 | 6b997854 | Michael Hanselmann | ganeti-[0-9]*.[0-9]*.[0-9]* \ |
97 | 6b997854 | Michael Hanselmann | doc/html/_* |
98 | 6b997854 | Michael Hanselmann | |
99 | 2750b299 | Michael Hanselmann | all_dirfiles = $(addsuffix /.dir,$(DIRS) $(BUILDTIME_DIR_AUTOCREATE)) |
100 | c964d962 | Michael Hanselmann | |
101 | 22c5390d | Iustin Pop | # some helper vars |
102 | 22c5390d | Iustin Pop | COVERAGE_DIR = doc/coverage |
103 | 22c5390d | Iustin Pop | COVERAGE_PY_DIR = $(COVERAGE_DIR)/py |
104 | 22c5390d | Iustin Pop | COVERAGE_HS_DIR = $(COVERAGE_DIR)/hs |
105 | 22c5390d | Iustin Pop | APIDOC_DIR = doc/api |
106 | 22c5390d | Iustin Pop | APIDOC_PY_DIR = $(APIDOC_DIR)/py |
107 | 22c5390d | Iustin Pop | APIDOC_HS_DIR = $(APIDOC_DIR)/hs |
108 | 22c5390d | Iustin Pop | |
109 | 2ab2b9f5 | Iustin Pop | MAINTAINERCLEANFILES = \ |
110 | d17e74b4 | Iustin Pop | $(docpng) \ |
111 | b76aac08 | Michael Hanselmann | $(maninput) \ |
112 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst \ |
113 | 84a12e40 | Iustin Pop | doc/news.rst \ |
114 | 7a03d293 | Michael Hanselmann | doc/upgrade.rst \ |
115 | 84a12e40 | Iustin Pop | vcs-version |
116 | 2ab2b9f5 | Iustin Pop | |
117 | d17e74b4 | Iustin Pop | maintainer-clean-local: |
118 | 6b997854 | Michael Hanselmann | rm -rf $(BUILDTIME_DIRS) |
119 | d17e74b4 | Iustin Pop | |
120 | e8230860 | Michael Hanselmann | CLEANFILES = \ |
121 | 2f16ea8f | Michael Hanselmann | $(addsuffix /*.py[co],$(DIRS)) \ |
122 | d5506465 | Iustin Pop | $(addsuffix /*.hi,$(HTOOLS_DIRS)) \ |
123 | d5506465 | Iustin Pop | $(addsuffix /*.o,$(HTOOLS_DIRS)) \ |
124 | c964d962 | Michael Hanselmann | $(all_dirfiles) \ |
125 | 2d48a3a2 | Michael Hanselmann | $(PYTHON_BOOTSTRAP) \ |
126 | f774bd03 | Michael Hanselmann | epydoc.conf \ |
127 | e8230860 | Michael Hanselmann | autotools/replace_vars.sed \ |
128 | f154a7a3 | Michael Hanselmann | daemons/daemon-util \ |
129 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner \ |
130 | e8230860 | Michael Hanselmann | devel/upload \ |
131 | f72f8622 | Iustin Pop | doc/examples/bash_completion \ |
132 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd \ |
133 | 5d9e167a | Miguel Di Ciurcio Filho | doc/examples/ganeti-kvm-poweroff.initd \ |
134 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron \ |
135 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup \ |
136 | a2442bf9 | Luca Bigliardi | doc/examples/hooks/ipsec \ |
137 | 2ab2b9f5 | Iustin Pop | $(man_MANS) \ |
138 | 2ab2b9f5 | Iustin Pop | $(manhtml) \ |
139 | 26916aad | Apollon Oikonomopoulos | tools/kvm-ifup \ |
140 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
141 | d6159933 | Iustin Pop | $(nodist_pkgpython_PYTHON) \ |
142 | c3f67183 | Iustin Pop | $(HS_ALL_PROGS) $(HS_BUILT_SRCS) \ |
143 | 191ff68c | Iustin Pop | .hpc/*.mix htools/*.tix \ |
144 | 191ff68c | Iustin Pop | doc/hs-lint.html |
145 | e8230860 | Michael Hanselmann | |
146 | c964d962 | Michael Hanselmann | # BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise |
147 | c964d962 | Michael Hanselmann | # it'll cause the target to rebuild every time. |
148 | dc7d2c49 | Michael Hanselmann | BUILT_SOURCES = \ |
149 | dc7d2c49 | Michael Hanselmann | ganeti \ |
150 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
151 | 2d1f248e | Michael Hanselmann | lib/_autoconf.py \ |
152 | c964d962 | Michael Hanselmann | $(all_dirfiles) \ |
153 | 2d1f248e | Michael Hanselmann | $(PYTHON_BOOTSTRAP) |
154 | 2d1f248e | Michael Hanselmann | |
155 | e8230860 | Michael Hanselmann | nodist_pkgpython_PYTHON = \ |
156 | e8230860 | Michael Hanselmann | lib/_autoconf.py |
157 | e8230860 | Michael Hanselmann | |
158 | f9897b6d | Michael Hanselmann | noinst_PYTHON = \ |
159 | 5f43f393 | Michael Hanselmann | lib/build/__init__.py \ |
160 | 5f43f393 | Michael Hanselmann | lib/build/sphinx_ext.py |
161 | f9897b6d | Michael Hanselmann | |
162 | e8230860 | Michael Hanselmann | pkgpython_PYTHON = \ |
163 | e8230860 | Michael Hanselmann | lib/__init__.py \ |
164 | a8a76bc2 | Guido Trotter | lib/asyncnotifier.py \ |
165 | e8230860 | Michael Hanselmann | lib/backend.py \ |
166 | e8230860 | Michael Hanselmann | lib/bdev.py \ |
167 | e8230860 | Michael Hanselmann | lib/bootstrap.py \ |
168 | e8230860 | Michael Hanselmann | lib/cli.py \ |
169 | e8230860 | Michael Hanselmann | lib/cmdlib.py \ |
170 | cea881e5 | Michael Hanselmann | lib/compat.py \ |
171 | e8230860 | Michael Hanselmann | lib/config.py \ |
172 | e8230860 | Michael Hanselmann | lib/constants.py \ |
173 | 821d9e43 | Michael Hanselmann | lib/daemon.py \ |
174 | e8230860 | Michael Hanselmann | lib/errors.py \ |
175 | 62e0e880 | Iustin Pop | lib/ht.py \ |
176 | e8230860 | Michael Hanselmann | lib/jqueue.py \ |
177 | 8b537bb0 | Michael Hanselmann | lib/jstore.py \ |
178 | e8230860 | Michael Hanselmann | lib/locking.py \ |
179 | e8230860 | Michael Hanselmann | lib/luxi.py \ |
180 | e8230860 | Michael Hanselmann | lib/mcpu.py \ |
181 | a744b676 | Manuel Franceschini | lib/netutils.py \ |
182 | e8230860 | Michael Hanselmann | lib/objects.py \ |
183 | e8230860 | Michael Hanselmann | lib/opcodes.py \ |
184 | a123dc19 | Michael Hanselmann | lib/qlang.py \ |
185 | 4ca96421 | Michael Hanselmann | lib/query.py \ |
186 | e8230860 | Michael Hanselmann | lib/rpc.py \ |
187 | f12e1736 | René Nussbaumer | lib/runtime.py \ |
188 | e8230860 | Michael Hanselmann | lib/serializer.py \ |
189 | e8230860 | Michael Hanselmann | lib/ssconf.py \ |
190 | e8230860 | Michael Hanselmann | lib/ssh.py \ |
191 | ac2d0fe4 | Michael Hanselmann | lib/storage.py \ |
192 | 1338f2b4 | Balazs Lecz | lib/uidpool.py \ |
193 | 76094e37 | Michael Hanselmann | lib/workerpool.py |
194 | e8230860 | Michael Hanselmann | |
195 | 2d48a3a2 | Michael Hanselmann | client_PYTHON = \ |
196 | c2855a12 | Michael Hanselmann | lib/client/__init__.py \ |
197 | 02266fe0 | Michael Hanselmann | lib/client/gnt_backup.py \ |
198 | 7b3e7d41 | Michael Hanselmann | lib/client/gnt_cluster.py \ |
199 | 6d50f5f9 | Michael Hanselmann | lib/client/gnt_debug.py \ |
200 | 667dbd6b | Adeodato Simo | lib/client/gnt_group.py \ |
201 | e792102d | Michael Hanselmann | lib/client/gnt_instance.py \ |
202 | a09b9e3d | Michael Hanselmann | lib/client/gnt_job.py \ |
203 | 37494fa4 | Michael Hanselmann | lib/client/gnt_node.py \ |
204 | 6d50f5f9 | Michael Hanselmann | lib/client/gnt_os.py |
205 | 2d48a3a2 | Michael Hanselmann | |
206 | e8230860 | Michael Hanselmann | hypervisor_PYTHON = \ |
207 | e8230860 | Michael Hanselmann | lib/hypervisor/__init__.py \ |
208 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_base.py \ |
209 | 48297fa2 | Iustin Pop | lib/hypervisor/hv_chroot.py \ |
210 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_fake.py \ |
211 | eb58f9b1 | Guido Trotter | lib/hypervisor/hv_kvm.py \ |
212 | 4b5e40a5 | Iustin Pop | lib/hypervisor/hv_lxc.py \ |
213 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_xen.py |
214 | e8230860 | Michael Hanselmann | |
215 | 8c229cc7 | Oleksiy Mishchenko | rapi_PYTHON = \ |
216 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/__init__.py \ |
217 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/baserlib.py \ |
218 | 95ab4de9 | David Knowles | lib/rapi/client.py \ |
219 | 20b509de | Michael Hanselmann | lib/rapi/client_utils.py \ |
220 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/connector.py \ |
221 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/rlib2.py |
222 | 8c229cc7 | Oleksiy Mishchenko | |
223 | ff9efc03 | Michael Hanselmann | http_PYTHON = \ |
224 | 02cab3e7 | Michael Hanselmann | lib/http/__init__.py \ |
225 | be500c29 | Michael Hanselmann | lib/http/auth.py \ |
226 | 02cab3e7 | Michael Hanselmann | lib/http/client.py \ |
227 | 02cab3e7 | Michael Hanselmann | lib/http/server.py |
228 | ff9efc03 | Michael Hanselmann | |
229 | 12426ae1 | Guido Trotter | confd_PYTHON = \ |
230 | 71f27d19 | Guido Trotter | lib/confd/__init__.py \ |
231 | e4ccf6cd | Guido Trotter | lib/confd/client.py \ |
232 | 2f16ea8f | Michael Hanselmann | lib/confd/querylib.py \ |
233 | 2f16ea8f | Michael Hanselmann | lib/confd/server.py |
234 | 8c229cc7 | Oleksiy Mishchenko | |
235 | dc101ecc | Michael Hanselmann | masterd_PYTHON = \ |
236 | 033a1d00 | Michael Hanselmann | lib/masterd/__init__.py \ |
237 | 033a1d00 | Michael Hanselmann | lib/masterd/instance.py |
238 | dc101ecc | Michael Hanselmann | |
239 | bb44b1ae | Michael Hanselmann | impexpd_PYTHON = \ |
240 | bb44b1ae | Michael Hanselmann | lib/impexpd/__init__.py |
241 | bb44b1ae | Michael Hanselmann | |
242 | 9f4bb951 | Michael Hanselmann | watcher_PYTHON = \ |
243 | 9f4bb951 | Michael Hanselmann | lib/watcher/__init__.py |
244 | 9f4bb951 | Michael Hanselmann | |
245 | 899c4d2c | Michael Hanselmann | server_PYTHON = \ |
246 | 29d91329 | Michael Hanselmann | lib/server/__init__.py \ |
247 | 5c9c0e0e | Michael Hanselmann | lib/server/confd.py \ |
248 | 5119f2ec | Michael Hanselmann | lib/server/masterd.py \ |
249 | d9c82a4e | Michael Hanselmann | lib/server/noded.py \ |
250 | d9c82a4e | Michael Hanselmann | lib/server/rapi.py |
251 | 899c4d2c | Michael Hanselmann | |
252 | 0d2bf835 | René Nussbaumer | pytools_PYTHON = \ |
253 | 0d2bf835 | René Nussbaumer | lib/tools/__init__.py \ |
254 | 0d2bf835 | René Nussbaumer | lib/tools/ensure_dirs.py |
255 | 0d2bf835 | René Nussbaumer | |
256 | c047a981 | Michael Hanselmann | utils_PYTHON = \ |
257 | 4fd029cf | Michael Hanselmann | lib/utils/__init__.py \ |
258 | 79d22269 | Michael Hanselmann | lib/utils/algo.py \ |
259 | 9d1b963f | Michael Hanselmann | lib/utils/filelock.py \ |
260 | f21bb4b7 | Michael Hanselmann | lib/utils/hash.py \ |
261 | 3865ca48 | Michael Hanselmann | lib/utils/io.py \ |
262 | 1ae4c5a1 | Michael Hanselmann | lib/utils/log.py \ |
263 | 36a4acd4 | Michael Hanselmann | lib/utils/mlock.py \ |
264 | 17b97ab3 | Michael Hanselmann | lib/utils/nodesetup.py \ |
265 | a4ccecf6 | Michael Hanselmann | lib/utils/process.py \ |
266 | 7fcffe27 | Michael Hanselmann | lib/utils/retry.py \ |
267 | 7831fc5f | Michael Hanselmann | lib/utils/text.py \ |
268 | c50645c0 | Michael Hanselmann | lib/utils/wrapper.py \ |
269 | c50645c0 | Michael Hanselmann | lib/utils/x509.py |
270 | c047a981 | Michael Hanselmann | |
271 | f05c99f3 | Michael Hanselmann | docrst = \ |
272 | ffa6869f | Iustin Pop | doc/admin.rst \ |
273 | 5c0c1eeb | Iustin Pop | doc/design-2.0.rst \ |
274 | 4f366caf | Michael Hanselmann | doc/design-2.1.rst \ |
275 | e56bb0e8 | Guido Trotter | doc/design-2.2.rst \ |
276 | 1eb85930 | Guido Trotter | doc/design-2.3.rst \ |
277 | 92902e91 | Iustin Pop | doc/design-htools-2.3.rst \ |
278 | 78b40c5e | Michael Hanselmann | doc/design-2.4.rst \ |
279 | c95c0f71 | Michael Hanselmann | doc/design-draft.rst \ |
280 | 1e86ee97 | Marc Schmitt | doc/design-oob.rst \ |
281 | ae9b5e0f | Tsachy Shacham | doc/design-cpu-pinning.rst \ |
282 | e5a246df | Michael Hanselmann | doc/design-query2.rst \ |
283 | 539f195a | Michael Hanselmann | doc/design-x509-ca.rst \ |
284 | 278ddaa9 | Michael Hanselmann | doc/design-http-server.rst \ |
285 | 1375e1d9 | Michael Hanselmann | doc/design-impexp2.rst \ |
286 | ed9fda24 | Michael Hanselmann | doc/design-lu-generated-jobs.rst \ |
287 | 4055b109 | Adeodato Simo | doc/design-multi-reloc.rst \ |
288 | eec83a95 | Apollon Oikonomopoulos | doc/design-network.rst \ |
289 | 6c3d18e0 | Michael Hanselmann | doc/design-chained-jobs.rst \ |
290 | d9bdffc3 | René Nussbaumer | doc/cluster-merge.rst \ |
291 | a997cec5 | Apollon Oikonomopoulos | doc/design-shared-storage.rst \ |
292 | 62947ebb | Michael Hanselmann | doc/devnotes.rst \ |
293 | e2078d28 | Iustin Pop | doc/glossary.rst \ |
294 | 4d6443f4 | Iustin Pop | doc/hooks.rst \ |
295 | 876860a3 | Iustin Pop | doc/iallocator.rst \ |
296 | d17e74b4 | Iustin Pop | doc/index.rst \ |
297 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst \ |
298 | 28e15341 | Iustin Pop | doc/install.rst \ |
299 | 9725b53d | Michael Hanselmann | doc/locking.rst \ |
300 | 6bf273d5 | Michael Hanselmann | doc/move-instance.rst \ |
301 | c71a1a3d | Iustin Pop | doc/news.rst \ |
302 | 6d81475c | Iustin Pop | doc/rapi.rst \ |
303 | b76aac08 | Michael Hanselmann | doc/security.rst \ |
304 | 35dd762d | Michael Hanselmann | doc/upgrade.rst \ |
305 | c71a1a3d | Iustin Pop | doc/walkthrough.rst |
306 | f05c99f3 | Michael Hanselmann | |
307 | c3f67183 | Iustin Pop | HS_PROGS = \ |
308 | d6159933 | Iustin Pop | htools/hbal \ |
309 | d6159933 | Iustin Pop | htools/hscan \ |
310 | d6159933 | Iustin Pop | htools/hail \ |
311 | d6159933 | Iustin Pop | htools/hspace |
312 | d6159933 | Iustin Pop | |
313 | c3f67183 | Iustin Pop | HS_ALL_PROGS = $(HS_PROGS) htools/test |
314 | c3f67183 | Iustin Pop | HS_PROG_SRCS = $(patsubst %,%.hs,$(HS_ALL_PROGS)) |
315 | d6159933 | Iustin Pop | # we don't add -Werror by default |
316 | d5506465 | Iustin Pop | HFLAGS = -O -Wall -fwarn-monomorphism-restriction -fwarn-tabs -ihtools |
317 | b91e9518 | Iustin Pop | # extra flags that can be overriden on the command line |
318 | d6159933 | Iustin Pop | HEXTRA = |
319 | b91e9518 | Iustin Pop | # exclude options for coverage reports |
320 | 98b33d0e | Iustin Pop | HPCEXCL = --exclude Main --exclude Ganeti.HTools.QC \ |
321 | 98b33d0e | Iustin Pop | --exclude Ganeti.Constants \ |
322 | 98b33d0e | Iustin Pop | --exclude Ganeti.HTools.Version |
323 | d6159933 | Iustin Pop | |
324 | c3f67183 | Iustin Pop | HS_LIB_SRCS = \ |
325 | d6159933 | Iustin Pop | htools/Ganeti/HTools/CLI.hs \ |
326 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Cluster.hs \ |
327 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Container.hs \ |
328 | d6159933 | Iustin Pop | htools/Ganeti/HTools/ExtLoader.hs \ |
329 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Group.hs \ |
330 | d6159933 | Iustin Pop | htools/Ganeti/HTools/IAlloc.hs \ |
331 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Instance.hs \ |
332 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Loader.hs \ |
333 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Luxi.hs \ |
334 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Node.hs \ |
335 | d6159933 | Iustin Pop | htools/Ganeti/HTools/PeerMap.hs \ |
336 | d6159933 | Iustin Pop | htools/Ganeti/HTools/QC.hs \ |
337 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Rapi.hs \ |
338 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Simu.hs \ |
339 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Text.hs \ |
340 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Types.hs \ |
341 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Utils.hs \ |
342 | d6159933 | Iustin Pop | htools/Ganeti/Jobs.hs \ |
343 | d6159933 | Iustin Pop | htools/Ganeti/Luxi.hs \ |
344 | d6159933 | Iustin Pop | htools/Ganeti/OpCodes.hs |
345 | d6159933 | Iustin Pop | |
346 | d99d1e36 | Iustin Pop | HS_BUILT_SRCS = htools/Ganeti/HTools/Version.hs htools/Ganeti/Constants.hs |
347 | c3f67183 | Iustin Pop | HS_BUILT_SRCS_IN = $(patsubst %,%.in,$(HS_BUILT_SRCS)) |
348 | d6159933 | Iustin Pop | |
349 | c964d962 | Michael Hanselmann | $(RUN_IN_TEMPDIR): | $(all_dirfiles) |
350 | c964d962 | Michael Hanselmann | |
351 | a2d917f3 | Iustin Pop | # Note: we use here an order-only prerequisite, as the contents of |
352 | a2d917f3 | Iustin Pop | # _autoconf.py are not actually influencing the html build output: it |
353 | a2d917f3 | Iustin Pop | # has to exist in order for the sphinx module to be loaded |
354 | a2d917f3 | Iustin Pop | # successfully, but we certainly don't want the docs to be rebuilt if |
355 | a2d917f3 | Iustin Pop | # it changes |
356 | c964d962 | Michael Hanselmann | doc/html/index.html: $(docrst) $(docpng) doc/conf.py configure.ac \ |
357 | a2d917f3 | Iustin Pop | $(RUN_IN_TEMPDIR) lib/build/sphinx_ext.py lib/opcodes.py lib/ht.py \ |
358 | a2d917f3 | Iustin Pop | | lib/_autoconf.py |
359 | d17e74b4 | Iustin Pop | @test -n "$(SPHINX)" || \ |
360 | d17e74b4 | Iustin Pop | { echo 'sphinx-build' not found during configure; exit 1; } |
361 | 2750b299 | Michael Hanselmann | @mkdir_p@ $(dir $@) |
362 | e7f6524c | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(SPHINX) -q -W -b html \ |
363 | 13de7d59 | Michael Hanselmann | -d . \ |
364 | d17e74b4 | Iustin Pop | -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \ |
365 | d17e74b4 | Iustin Pop | -D release="$(PACKAGE_VERSION)" \ |
366 | 13de7d59 | Michael Hanselmann | $(abs_top_srcdir)/doc $(CURDIR)/doc/html |
367 | 13de7d59 | Michael Hanselmann | rm -f doc/html/.buildinfo doc/html/objects.inv |
368 | 13de7d59 | Michael Hanselmann | touch $@ |
369 | 13de7d59 | Michael Hanselmann | |
370 | c964d962 | Michael Hanselmann | doc/html: doc/html/index.html |
371 | 2ab2b9f5 | Iustin Pop | |
372 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst: INSTALL |
373 | b76aac08 | Michael Hanselmann | doc/news.rst: NEWS |
374 | 7a03d293 | Michael Hanselmann | doc/upgrade.rst: UPGRADE |
375 | b76aac08 | Michael Hanselmann | |
376 | e8deef56 | Michael Hanselmann | doc/install-quick.rst doc/news.rst doc/upgrade.rst: |
377 | cbf3d64b | Michael Hanselmann | set -e; \ |
378 | cbf3d64b | Michael Hanselmann | { echo '.. This file is automatically updated at build time from $<.'; \ |
379 | cbf3d64b | Michael Hanselmann | echo '.. Do not edit.'; \ |
380 | cbf3d64b | Michael Hanselmann | echo; \ |
381 | cbf3d64b | Michael Hanselmann | cat $<; \ |
382 | cbf3d64b | Michael Hanselmann | } > $@ |
383 | cbf3d64b | Michael Hanselmann | |
384 | b8195800 | Iustin Pop | docdot = \ |
385 | ca9ccea8 | Michael Hanselmann | doc/arch-2.0.dot \ |
386 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-acquire.dot \ |
387 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-release.dot |
388 | b8195800 | Iustin Pop | |
389 | d17e74b4 | Iustin Pop | docpng = $(patsubst %.dot,%.png,$(docdot)) |
390 | e8230860 | Michael Hanselmann | |
391 | 7e1ccbe0 | Michael Hanselmann | # Things to build but not to install (add it to EXTRA_DIST if it should be |
392 | 7e1ccbe0 | Michael Hanselmann | # distributed) |
393 | 7e1ccbe0 | Michael Hanselmann | noinst_DATA = \ |
394 | 7e1ccbe0 | Michael Hanselmann | devel/upload \ |
395 | 7e1ccbe0 | Michael Hanselmann | doc/html \ |
396 | 7e1ccbe0 | Michael Hanselmann | doc/examples/bash_completion \ |
397 | 7e1ccbe0 | Michael Hanselmann | doc/examples/ganeti.cron \ |
398 | 7e1ccbe0 | Michael Hanselmann | doc/examples/ganeti.initd \ |
399 | 5d9e167a | Miguel Di Ciurcio Filho | doc/examples/ganeti-kvm-poweroff.initd \ |
400 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup \ |
401 | 7e1ccbe0 | Michael Hanselmann | doc/examples/hooks/ipsec \ |
402 | 7e1ccbe0 | Michael Hanselmann | $(manhtml) |
403 | f29266b4 | Iustin Pop | |
404 | 4f3d5b76 | Michael Hanselmann | gnt_scripts = \ |
405 | e8230860 | Michael Hanselmann | scripts/gnt-backup \ |
406 | e8230860 | Michael Hanselmann | scripts/gnt-cluster \ |
407 | e8230860 | Michael Hanselmann | scripts/gnt-debug \ |
408 | 667dbd6b | Adeodato Simo | scripts/gnt-group \ |
409 | e8230860 | Michael Hanselmann | scripts/gnt-instance \ |
410 | e8230860 | Michael Hanselmann | scripts/gnt-job \ |
411 | e8230860 | Michael Hanselmann | scripts/gnt-node \ |
412 | e8230860 | Michael Hanselmann | scripts/gnt-os |
413 | e8230860 | Michael Hanselmann | |
414 | 0d2bf835 | René Nussbaumer | PYTHON_BOOTSTRAP_SBIN = \ |
415 | 5c9c0e0e | Michael Hanselmann | daemons/ganeti-confd \ |
416 | 29d91329 | Michael Hanselmann | daemons/ganeti-masterd \ |
417 | 5119f2ec | Michael Hanselmann | daemons/ganeti-noded \ |
418 | 9f4bb951 | Michael Hanselmann | daemons/ganeti-watcher \ |
419 | d9c82a4e | Michael Hanselmann | daemons/ganeti-rapi \ |
420 | 02266fe0 | Michael Hanselmann | scripts/gnt-backup \ |
421 | 7b3e7d41 | Michael Hanselmann | scripts/gnt-cluster \ |
422 | 6d50f5f9 | Michael Hanselmann | scripts/gnt-debug \ |
423 | 667dbd6b | Adeodato Simo | scripts/gnt-group \ |
424 | e792102d | Michael Hanselmann | scripts/gnt-instance \ |
425 | a09b9e3d | Michael Hanselmann | scripts/gnt-job \ |
426 | 37494fa4 | Michael Hanselmann | scripts/gnt-node \ |
427 | 6d50f5f9 | Michael Hanselmann | scripts/gnt-os |
428 | 2d48a3a2 | Michael Hanselmann | |
429 | 0d2bf835 | René Nussbaumer | PYTHON_BOOTSTRAP = \ |
430 | 0d2bf835 | René Nussbaumer | $(PYTHON_BOOTSTRAP_SBIN) \ |
431 | 0d2bf835 | René Nussbaumer | tools/ensure-dirs |
432 | 0d2bf835 | René Nussbaumer | |
433 | a8c68e44 | Michael Hanselmann | qa_scripts = \ |
434 | a8c68e44 | Michael Hanselmann | qa/ganeti-qa.py \ |
435 | a8c68e44 | Michael Hanselmann | qa/qa_cluster.py \ |
436 | a8c68e44 | Michael Hanselmann | qa/qa_config.py \ |
437 | a8c68e44 | Michael Hanselmann | qa/qa_daemon.py \ |
438 | a8c68e44 | Michael Hanselmann | qa/qa_env.py \ |
439 | a8c68e44 | Michael Hanselmann | qa/qa_error.py \ |
440 | a8c68e44 | Michael Hanselmann | qa/qa_instance.py \ |
441 | a8c68e44 | Michael Hanselmann | qa/qa_node.py \ |
442 | a8c68e44 | Michael Hanselmann | qa/qa_os.py \ |
443 | a8c68e44 | Michael Hanselmann | qa/qa_rapi.py \ |
444 | a8c68e44 | Michael Hanselmann | qa/qa_tags.py \ |
445 | a8c68e44 | Michael Hanselmann | qa/qa_utils.py |
446 | a8c68e44 | Michael Hanselmann | |
447 | d6159933 | Iustin Pop | bin_SCRIPTS = |
448 | 7617fd6b | Iustin Pop | iallocators_SCRIPTS = |
449 | d6159933 | Iustin Pop | if WANT_HTOOLS |
450 | c3f67183 | Iustin Pop | bin_SCRIPTS += $(filter-out htools/hail,$(HS_PROGS)) |
451 | c3f67183 | Iustin Pop | iallocators_SCRIPTS += $(filter htools/hail,$(HS_PROGS)) |
452 | d6159933 | Iustin Pop | endif |
453 | d6159933 | Iustin Pop | |
454 | c3f67183 | Iustin Pop | $(HS_ALL_PROGS): %: %.hs $(HS_LIB_SRCS) $(HS_BUILT_SRCS) Makefile |
455 | 16a6192d | Iustin Pop | @if [ -z "$(HTOOLS)" ]; then \ |
456 | 16a6192d | Iustin Pop | echo "Error: htools compilation disabled at configure time" 1>&2 ;\ |
457 | 16a6192d | Iustin Pop | exit 1; \ |
458 | 16a6192d | Iustin Pop | fi |
459 | 49e11c49 | Iustin Pop | @BINARY=$(@:htools/%=%); \ |
460 | 49e11c49 | Iustin Pop | if [ "$BINARY" = "test" ] && [ -z "$(GHC_PKG_QUICKCHECK)" ]; then \ |
461 | fd0bc853 | Iustin Pop | echo "Error: cannot run unittests without the QuickCheck library (see devnotes.rst)" 1>&2; \ |
462 | fd0bc853 | Iustin Pop | exit 1; \ |
463 | 49e11c49 | Iustin Pop | fi |
464 | 49e11c49 | Iustin Pop | BINARY=$(@:htools/%=%); $(GHC) --make \ |
465 | d5506465 | Iustin Pop | $(HFLAGS) $(HEXTRA) $(HTOOLS_NOCURL) \ |
466 | 49e11c49 | Iustin Pop | -osuf $$BINARY.o -hisuf $$BINARY.hi $@ |
467 | d6159933 | Iustin Pop | |
468 | b91e9518 | Iustin Pop | # for the htools/test binary, we need to enable profiling/coverage |
469 | b91e9518 | Iustin Pop | htools/test: HEXTRA=-fhpc -Wwarn -fno-warn-missing-signatures \ |
470 | b91e9518 | Iustin Pop | -fno-warn-monomorphism-restriction -fno-warn-orphans \ |
471 | b91e9518 | Iustin Pop | -fno-warn-missing-methods -fno-warn-unused-imports |
472 | b91e9518 | Iustin Pop | |
473 | da7e44ee | Michael Hanselmann | dist_sbin_SCRIPTS = \ |
474 | da7e44ee | Michael Hanselmann | tools/ganeti-listrunner |
475 | 4f3d5b76 | Michael Hanselmann | |
476 | fc3fd894 | Michael Hanselmann | nodist_sbin_SCRIPTS = \ |
477 | 0d2bf835 | René Nussbaumer | $(PYTHON_BOOTSTRAP_SBIN) \ |
478 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner |
479 | fc3fd894 | Michael Hanselmann | |
480 | e8230860 | Michael Hanselmann | dist_tools_SCRIPTS = \ |
481 | e8230860 | Michael Hanselmann | tools/burnin \ |
482 | e8230860 | Michael Hanselmann | tools/cfgshell \ |
483 | e8230860 | Michael Hanselmann | tools/cfgupgrade \ |
484 | b5672ea0 | Iustin Pop | tools/cfgupgrade12 \ |
485 | 1f7d3f7d | René Nussbaumer | tools/cluster-merge \ |
486 | ea5fd476 | Iustin Pop | tools/lvmstrap \ |
487 | 6bf273d5 | Michael Hanselmann | tools/move-instance \ |
488 | 05cd934d | René Nussbaumer | tools/setup-ssh \ |
489 | ea5fd476 | Iustin Pop | tools/sanitize-config |
490 | e8230860 | Michael Hanselmann | |
491 | 2d76b580 | Michael Hanselmann | pkglib_python_scripts = \ |
492 | c6ccba7e | Michael Hanselmann | daemons/import-export \ |
493 | c6ccba7e | Michael Hanselmann | tools/check-cert-expired |
494 | 2d76b580 | Michael Hanselmann | |
495 | 0d2bf835 | René Nussbaumer | nodist_pkglib_python_scripts = \ |
496 | 0d2bf835 | René Nussbaumer | tools/ensure-dirs |
497 | 0d2bf835 | René Nussbaumer | |
498 | f154a7a3 | Michael Hanselmann | pkglib_SCRIPTS = \ |
499 | 2d76b580 | Michael Hanselmann | daemons/daemon-util \ |
500 | 26916aad | Apollon Oikonomopoulos | tools/kvm-ifup \ |
501 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) |
502 | f154a7a3 | Michael Hanselmann | |
503 | 0d2bf835 | René Nussbaumer | nodist_pkglib_SCRIPTS = \ |
504 | 0d2bf835 | René Nussbaumer | $(nodist_pkglib_python_scripts) |
505 | 0d2bf835 | René Nussbaumer | |
506 | e8230860 | Michael Hanselmann | EXTRA_DIST = \ |
507 | e8230860 | Michael Hanselmann | NEWS \ |
508 | 7a03d293 | Michael Hanselmann | UPGRADE \ |
509 | f774bd03 | Michael Hanselmann | epydoc.conf.in \ |
510 | 70c771f6 | Michael Hanselmann | pylintrc \ |
511 | bb46a96c | Michael Hanselmann | autotools/build-bash-completion \ |
512 | eed5c5df | Michael Hanselmann | autotools/check-python-code \ |
513 | a4f12da4 | Michael Hanselmann | autotools/check-man \ |
514 | c81ed2b2 | Michael Hanselmann | autotools/check-news \ |
515 | e627fe09 | Michael Hanselmann | autotools/check-tar \ |
516 | 96602be4 | Michael Hanselmann | autotools/check-version \ |
517 | d99d1e36 | Iustin Pop | autotools/convert-constants \ |
518 | 95eb4188 | Michael Hanselmann | autotools/docpp \ |
519 | 27e336af | Michael Hanselmann | autotools/gen-coverage \ |
520 | e8c8cf1a | Michael Hanselmann | autotools/testrunner \ |
521 | f3313af5 | Guido Trotter | $(RUN_IN_TEMPDIR) \ |
522 | f154a7a3 | Michael Hanselmann | daemons/daemon-util.in \ |
523 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner.in \ |
524 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
525 | e8230860 | Michael Hanselmann | devel/upload.in \ |
526 | 26916aad | Apollon Oikonomopoulos | tools/kvm-ifup.in \ |
527 | b8195800 | Iustin Pop | $(docdot) \ |
528 | f727d134 | Michael Hanselmann | $(docpng) \ |
529 | d17e74b4 | Iustin Pop | $(docrst) \ |
530 | d17e74b4 | Iustin Pop | doc/conf.py \ |
531 | d17e74b4 | Iustin Pop | doc/html \ |
532 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd.in \ |
533 | 5d9e167a | Miguel Di Ciurcio Filho | doc/examples/ganeti-kvm-poweroff.initd.in \ |
534 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron.in \ |
535 | 679008e7 | Iustin Pop | doc/examples/gnt-config-backup.in \ |
536 | 752a8ca8 | Michael Hanselmann | doc/examples/ganeti.default \ |
537 | 752a8ca8 | Michael Hanselmann | doc/examples/ganeti.default-debug \ |
538 | d6d9ce45 | Guido Trotter | doc/examples/hooks/ethers \ |
539 | a2442bf9 | Luca Bigliardi | doc/examples/hooks/ipsec.in \ |
540 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/README \ |
541 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/delay0.json \ |
542 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/delay50.json \ |
543 | e8230860 | Michael Hanselmann | test/testutils.py \ |
544 | e8230860 | Michael Hanselmann | test/mocks.py \ |
545 | e8230860 | Michael Hanselmann | $(dist_TESTS) \ |
546 | e8230860 | Michael Hanselmann | $(TEST_FILES) \ |
547 | 6be8e2bf | Iustin Pop | man/footer.rst \ |
548 | 6be8e2bf | Iustin Pop | $(manrst) \ |
549 | f727d134 | Michael Hanselmann | $(maninput) \ |
550 | 39e0d19e | Michael Hanselmann | qa/qa-sample.json \ |
551 | d6159933 | Iustin Pop | $(qa_scripts) \ |
552 | c3f67183 | Iustin Pop | $(HS_LIB_SRCS) $(HS_BUILT_SRCS_IN) \ |
553 | c3f67183 | Iustin Pop | $(HS_PROG_SRCS) |
554 | e8230860 | Michael Hanselmann | |
555 | e8230860 | Michael Hanselmann | man_MANS = \ |
556 | e8230860 | Michael Hanselmann | man/ganeti.7 \ |
557 | bae7e531 | Michael Hanselmann | man/ganeti-cleaner.8 \ |
558 | b7b7cda6 | Guido Trotter | man/ganeti-confd.8 \ |
559 | da7e44ee | Michael Hanselmann | man/ganeti-listrunner.8 \ |
560 | 320d986d | Iustin Pop | man/ganeti-masterd.8 \ |
561 | e8230860 | Michael Hanselmann | man/ganeti-noded.8 \ |
562 | e8230860 | Michael Hanselmann | man/ganeti-os-interface.7 \ |
563 | 320d986d | Iustin Pop | man/ganeti-rapi.8 \ |
564 | e8230860 | Michael Hanselmann | man/ganeti-watcher.8 \ |
565 | e8230860 | Michael Hanselmann | man/gnt-backup.8 \ |
566 | e8230860 | Michael Hanselmann | man/gnt-cluster.8 \ |
567 | d3b4cf9f | Iustin Pop | man/gnt-debug.8 \ |
568 | 667dbd6b | Adeodato Simo | man/gnt-group.8 \ |
569 | e8230860 | Michael Hanselmann | man/gnt-instance.8 \ |
570 | d3b4cf9f | Iustin Pop | man/gnt-job.8 \ |
571 | e8230860 | Michael Hanselmann | man/gnt-node.8 \ |
572 | 5a19bd35 | Iustin Pop | man/gnt-os.8 \ |
573 | 5a19bd35 | Iustin Pop | man/hail.1 \ |
574 | 5a19bd35 | Iustin Pop | man/hbal.1 \ |
575 | 5a19bd35 | Iustin Pop | man/hscan.1 \ |
576 | 5a19bd35 | Iustin Pop | man/hspace.1 |
577 | e8230860 | Michael Hanselmann | |
578 | 5a19bd35 | Iustin Pop | manrst = $(patsubst %.1,%.rst,$(patsubst %.7,%.rst,$(patsubst %.8,%.rst,$(man_MANS)))) |
579 | 6be8e2bf | Iustin Pop | manhtml = $(patsubst %.rst,%.html,$(manrst)) |
580 | fcdb582d | Michael Hanselmann | mangen = $(patsubst %.rst,%.gen,$(manrst)) |
581 | 25c92bc5 | Michael Hanselmann | maninput = \ |
582 | 5a19bd35 | Iustin Pop | $(patsubst %.1,%.1.in,$(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS)))) \ |
583 | de8eea3e | Iustin Pop | $(patsubst %.html,%.html.in,$(manhtml)) \ |
584 | fcdb582d | Michael Hanselmann | man/footer.man man/footer.html $(mangen) |
585 | e8230860 | Michael Hanselmann | |
586 | e8230860 | Michael Hanselmann | TEST_FILES = \ |
587 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-8.0.txt \ |
588 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-8.3.txt \ |
589 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-disk.txt \ |
590 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-net-ip4.txt \ |
591 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-net-ip6.txt \ |
592 | 27e46076 | Michael Hanselmann | test/data/cert1.pem \ |
593 | d816408a | Iustin Pop | test/data/proc_drbd8.txt \ |
594 | a6ac80db | Iustin Pop | test/data/proc_drbd80-emptyline.txt \ |
595 | 2d76b580 | Michael Hanselmann | test/data/proc_drbd83.txt \ |
596 | 549071a0 | Luca Bigliardi | test/data/sys_drbd_usermode_helper.txt \ |
597 | 2d76b580 | Michael Hanselmann | test/import-export_unittest-helper |
598 | e8230860 | Michael Hanselmann | |
599 | e8c8cf1a | Michael Hanselmann | python_tests = \ |
600 | 17496050 | Guido Trotter | test/ganeti.asyncnotifier_unittest.py \ |
601 | f942a838 | Michael Hanselmann | test/ganeti.backend_unittest.py \ |
602 | 6de7c41d | Iustin Pop | test/ganeti.bdev_unittest.py \ |
603 | 6de7c41d | Iustin Pop | test/ganeti.cli_unittest.py \ |
604 | 66d1f035 | René Nussbaumer | test/ganeti.client.gnt_cluster_unittest.py \ |
605 | 25ce3ec4 | Michael Hanselmann | test/ganeti.client.gnt_instance_unittest.py \ |
606 | 1118ec44 | Guido Trotter | test/ganeti.daemon_unittest.py \ |
607 | 6de7c41d | Iustin Pop | test/ganeti.cmdlib_unittest.py \ |
608 | cea881e5 | Michael Hanselmann | test/ganeti.compat_unittest.py \ |
609 | edf7d66e | Iustin Pop | test/ganeti.confd.client_unittest.py \ |
610 | e8230860 | Michael Hanselmann | test/ganeti.config_unittest.py \ |
611 | 6de7c41d | Iustin Pop | test/ganeti.constants_unittest.py \ |
612 | 3bd19c66 | Michael Hanselmann | test/ganeti.errors_unittest.py \ |
613 | e8230860 | Michael Hanselmann | test/ganeti.hooks_unittest.py \ |
614 | ecdf0398 | Michael Hanselmann | test/ganeti.ht_unittest.py \ |
615 | 6de7c41d | Iustin Pop | test/ganeti.http_unittest.py \ |
616 | b7d82e40 | Iustin Pop | test/ganeti.hypervisor_unittest.py \ |
617 | 55cc0a44 | Michael Hanselmann | test/ganeti.hypervisor.hv_chroot_unittest.py \ |
618 | 55cc0a44 | Michael Hanselmann | test/ganeti.hypervisor.hv_fake_unittest.py \ |
619 | 748e4b5a | Michael Hanselmann | test/ganeti.hypervisor.hv_kvm_unittest.py \ |
620 | 55cc0a44 | Michael Hanselmann | test/ganeti.hypervisor.hv_lxc_unittest.py \ |
621 | 55cc0a44 | Michael Hanselmann | test/ganeti.hypervisor.hv_xen_unittest.py \ |
622 | bb44b1ae | Michael Hanselmann | test/ganeti.impexpd_unittest.py \ |
623 | 989a8bee | Michael Hanselmann | test/ganeti.jqueue_unittest.py \ |
624 | e8230860 | Michael Hanselmann | test/ganeti.locking_unittest.py \ |
625 | 231db3a5 | Michael Hanselmann | test/ganeti.luxi_unittest.py \ |
626 | 033a1d00 | Michael Hanselmann | test/ganeti.masterd.instance_unittest.py \ |
627 | 407339d0 | Michael Hanselmann | test/ganeti.mcpu_unittest.py \ |
628 | a744b676 | Manuel Franceschini | test/ganeti.netutils_unittest.py \ |
629 | 4c14965f | Guido Trotter | test/ganeti.objects_unittest.py \ |
630 | c32b908e | Michael Hanselmann | test/ganeti.opcodes_unittest.py \ |
631 | a123dc19 | Michael Hanselmann | test/ganeti.qlang_unittest.py \ |
632 | 4ca96421 | Michael Hanselmann | test/ganeti.query_unittest.py \ |
633 | cfaeaaf7 | Michael Hanselmann | test/ganeti.rapi.baserlib_unittest.py \ |
634 | 95ab4de9 | David Knowles | test/ganeti.rapi.client_unittest.py \ |
635 | 4cbd4462 | Oleksiy Mishchenko | test/ganeti.rapi.resources_unittest.py \ |
636 | 6395cebb | Michael Hanselmann | test/ganeti.rapi.rlib2_unittest.py \ |
637 | 33231500 | Michael Hanselmann | test/ganeti.rpc_unittest.py \ |
638 | f12e1736 | René Nussbaumer | test/ganeti.runtime_unittest.py \ |
639 | 6de7c41d | Iustin Pop | test/ganeti.serializer_unittest.py \ |
640 | 6de7c41d | Iustin Pop | test/ganeti.ssh_unittest.py \ |
641 | 0d2bf835 | René Nussbaumer | test/ganeti.tools.ensure_dirs_unittest.py \ |
642 | 93be53da | Balazs Lecz | test/ganeti.uidpool_unittest.py \ |
643 | 4fd029cf | Michael Hanselmann | test/ganeti.utils.algo_unittest.py \ |
644 | 9d1b963f | Michael Hanselmann | test/ganeti.utils.filelock_unittest.py \ |
645 | f21bb4b7 | Michael Hanselmann | test/ganeti.utils.hash_unittest.py \ |
646 | 3865ca48 | Michael Hanselmann | test/ganeti.utils.io_unittest.py \ |
647 | b6fa9a44 | Michael Hanselmann | test/ganeti.utils.log_unittest.py \ |
648 | 36a4acd4 | Michael Hanselmann | test/ganeti.utils.mlock_unittest.py \ |
649 | 17b97ab3 | Michael Hanselmann | test/ganeti.utils.nodesetup_unittest.py \ |
650 | a4ccecf6 | Michael Hanselmann | test/ganeti.utils.process_unittest.py \ |
651 | 79d22269 | Michael Hanselmann | test/ganeti.utils.retry_unittest.py \ |
652 | 7fcffe27 | Michael Hanselmann | test/ganeti.utils.text_unittest.py \ |
653 | 7831fc5f | Michael Hanselmann | test/ganeti.utils.wrapper_unittest.py \ |
654 | c50645c0 | Michael Hanselmann | test/ganeti.utils.x509_unittest.py \ |
655 | 4fd029cf | Michael Hanselmann | test/ganeti.utils_unittest.py \ |
656 | 3f991867 | Michael Hanselmann | test/ganeti.workerpool_unittest.py \ |
657 | aefbe369 | Michael Hanselmann | test/cfgupgrade_unittest.py \ |
658 | 055f822b | Michael Hanselmann | test/docs_unittest.py \ |
659 | 055f822b | Michael Hanselmann | test/tempfile_fork_unittest.py |
660 | e8230860 | Michael Hanselmann | |
661 | b91e9518 | Iustin Pop | haskell_tests = htools/test |
662 | b91e9518 | Iustin Pop | |
663 | e8c8cf1a | Michael Hanselmann | dist_TESTS = \ |
664 | 7172f605 | Michael Hanselmann | test/check-cert-expired_unittest.bash \ |
665 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash \ |
666 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash \ |
667 | 2d76b580 | Michael Hanselmann | test/import-export_unittest.bash \ |
668 | e8c8cf1a | Michael Hanselmann | $(python_tests) |
669 | e8c8cf1a | Michael Hanselmann | |
670 | e8230860 | Michael Hanselmann | nodist_TESTS = |
671 | e5f6768c | Iustin Pop | if WANT_HTOOLSTESTS |
672 | b91e9518 | Iustin Pop | nodist_TESTS += $(haskell_tests) |
673 | b91e9518 | Iustin Pop | endif |
674 | e8230860 | Michael Hanselmann | |
675 | e8230860 | Michael Hanselmann | TESTS = $(dist_TESTS) $(nodist_TESTS) |
676 | e8230860 | Michael Hanselmann | |
677 | 27e336af | Michael Hanselmann | # Environment for all tests |
678 | 27e336af | Michael Hanselmann | PLAIN_TESTS_ENVIRONMENT = \ |
679 | 27e336af | Michael Hanselmann | PYTHONPATH=. TOP_SRCDIR=$(abs_top_srcdir) PYTHON=$(PYTHON) $(RUN_IN_TEMPDIR) |
680 | 27e336af | Michael Hanselmann | |
681 | 27e336af | Michael Hanselmann | # Environment for tests run by automake |
682 | f848ac00 | Michael Hanselmann | TESTS_ENVIRONMENT = \ |
683 | e8c8cf1a | Michael Hanselmann | $(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/testrunner |
684 | 6e06b36c | Iustin Pop | |
685 | eed5c5df | Michael Hanselmann | all_python_code = \ |
686 | 01a3a718 | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
687 | 01a3a718 | Michael Hanselmann | $(dist_tools_SCRIPTS) \ |
688 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
689 | 0d2bf835 | René Nussbaumer | $(nodist_pkglib_python_scripts) \ |
690 | e8c8cf1a | Michael Hanselmann | $(python_tests) \ |
691 | 01a3a718 | Michael Hanselmann | $(pkgpython_PYTHON) \ |
692 | 2d48a3a2 | Michael Hanselmann | $(client_PYTHON) \ |
693 | 01a3a718 | Michael Hanselmann | $(hypervisor_PYTHON) \ |
694 | 01a3a718 | Michael Hanselmann | $(rapi_PYTHON) \ |
695 | 899c4d2c | Michael Hanselmann | $(server_PYTHON) \ |
696 | 0d2bf835 | René Nussbaumer | $(pytools_PYTHON) \ |
697 | 01a3a718 | Michael Hanselmann | $(http_PYTHON) \ |
698 | 01a3a718 | Michael Hanselmann | $(confd_PYTHON) \ |
699 | dc101ecc | Michael Hanselmann | $(masterd_PYTHON) \ |
700 | bb44b1ae | Michael Hanselmann | $(impexpd_PYTHON) \ |
701 | c047a981 | Michael Hanselmann | $(utils_PYTHON) \ |
702 | 9f4bb951 | Michael Hanselmann | $(watcher_PYTHON) \ |
703 | a8c68e44 | Michael Hanselmann | $(noinst_PYTHON) \ |
704 | a8c68e44 | Michael Hanselmann | $(qa_scripts) |
705 | 01a3a718 | Michael Hanselmann | |
706 | eed5c5df | Michael Hanselmann | srclink_files = \ |
707 | 6be8e2bf | Iustin Pop | man/footer.rst \ |
708 | 7172f605 | Michael Hanselmann | test/check-cert-expired_unittest.bash \ |
709 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash \ |
710 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash \ |
711 | 2d76b580 | Michael Hanselmann | test/import-export_unittest.bash \ |
712 | d6159933 | Iustin Pop | $(all_python_code) \ |
713 | c3f67183 | Iustin Pop | $(HS_LIB_SRCS) $(HS_PROG_SRCS) |
714 | eed5c5df | Michael Hanselmann | |
715 | eed5c5df | Michael Hanselmann | check_python_code = \ |
716 | e4e7c7df | Michael Hanselmann | $(BUILD_BASH_COMPLETION) \ |
717 | 95eb4188 | Michael Hanselmann | $(DOCPP) \ |
718 | eed5c5df | Michael Hanselmann | $(all_python_code) |
719 | eed5c5df | Michael Hanselmann | |
720 | e4e7c7df | Michael Hanselmann | lint_python_code = \ |
721 | f60d352e | Michael Hanselmann | ganeti \ |
722 | f1763373 | Iustin Pop | ganeti/http/server.py \ |
723 | f60d352e | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
724 | f60d352e | Michael Hanselmann | $(dist_tools_SCRIPTS) \ |
725 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
726 | 2cc8bdd0 | Michael Hanselmann | $(BUILD_BASH_COMPLETION) \ |
727 | 95eb4188 | Michael Hanselmann | $(DOCPP) \ |
728 | 2cc8bdd0 | Michael Hanselmann | $(PYTHON_BOOTSTRAP) |
729 | eed5c5df | Michael Hanselmann | |
730 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash: daemons/daemon-util |
731 | 571b34f8 | Michael Hanselmann | |
732 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash: daemons/ganeti-cleaner |
733 | 7172f605 | Michael Hanselmann | |
734 | 26916aad | Apollon Oikonomopoulos | tools/kvm-ifup: tools/kvm-ifup.in $(REPLACE_VARS_SED) |
735 | 26916aad | Apollon Oikonomopoulos | sed -f $(REPLACE_VARS_SED) < $< > $@ |
736 | 26916aad | Apollon Oikonomopoulos | chmod +x $@ |
737 | 26916aad | Apollon Oikonomopoulos | |
738 | dbefcc7e | Michael Hanselmann | devel/upload: devel/upload.in $(REPLACE_VARS_SED) |
739 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
740 | e8230860 | Michael Hanselmann | chmod u+x $@ |
741 | e8230860 | Michael Hanselmann | |
742 | c964d962 | Michael Hanselmann | daemons/%: daemons/%.in $(REPLACE_VARS_SED) |
743 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
744 | 5c566e17 | Michael Hanselmann | chmod +x $@ |
745 | e8230860 | Michael Hanselmann | |
746 | c964d962 | Michael Hanselmann | doc/examples/%: doc/examples/%.in $(REPLACE_VARS_SED) |
747 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
748 | e8230860 | Michael Hanselmann | |
749 | c964d962 | Michael Hanselmann | doc/examples/hooks/%: doc/examples/hooks/%.in $(REPLACE_VARS_SED) |
750 | a2442bf9 | Luca Bigliardi | sed -f $(REPLACE_VARS_SED) < $< > $@ |
751 | a2442bf9 | Luca Bigliardi | |
752 | b959138f | Michael Hanselmann | doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \ |
753 | 88a6ca6f | Michael Hanselmann | lib/cli.py $(gnt_scripts) $(client_PYTHON) tools/burnin |
754 | b959138f | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@ |
755 | 4f3d5b76 | Michael Hanselmann | |
756 | f86e82ef | Iustin Pop | doc/%.png: doc/%.dot |
757 | 2ab2b9f5 | Iustin Pop | @test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; } |
758 | f86e82ef | Iustin Pop | $(DOT) -Tpng -o $@ $< |
759 | f86e82ef | Iustin Pop | |
760 | de8eea3e | Iustin Pop | man/footer.man: man/footer.rst |
761 | de8eea3e | Iustin Pop | @test -n "$(PANDOC)" || \ |
762 | de8eea3e | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
763 | de8eea3e | Iustin Pop | $(PANDOC) -f rst -t man -o $@ $< |
764 | de8eea3e | Iustin Pop | |
765 | 6be8e2bf | Iustin Pop | man/footer.html: man/footer.rst |
766 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
767 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
768 | 6be8e2bf | Iustin Pop | $(PANDOC) -f rst -t html -o $@ $< |
769 | 6be8e2bf | Iustin Pop | |
770 | fcdb582d | Michael Hanselmann | man/%.gen: man/%.rst lib/query.py lib/build/sphinx_ext.py |
771 | fcdb582d | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(DOCPP) < $< > $@ |
772 | fcdb582d | Michael Hanselmann | |
773 | 5a19bd35 | Iustin Pop | man/%.7.in man/%.8.in man/%.1.in: man/%.gen man/footer.man |
774 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
775 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
776 | a01dd3c6 | Iustin Pop | set -o pipefail ; \ |
777 | 6be8e2bf | Iustin Pop | $(PANDOC) -s -f rst -t man -A man/footer.man $< | \ |
778 | 6be8e2bf | Iustin Pop | sed -e 's/\\@/@/g' > $@ |
779 | 5f55173b | Iustin Pop | if test -n "$(MAN_HAS_WARNINGS)"; then $(CHECK_MAN) $@; fi |
780 | 2ab2b9f5 | Iustin Pop | |
781 | fcdb582d | Michael Hanselmann | man/%.html.in: man/%.gen man/footer.html |
782 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
783 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
784 | a01dd3c6 | Iustin Pop | set -o pipefail ; \ |
785 | 6be8e2bf | Iustin Pop | $(PANDOC) -s -f rst -t html -A man/footer.html $< | \ |
786 | 6be8e2bf | Iustin Pop | sed -e 's/\\@/@/g' > $@ |
787 | 6be8e2bf | Iustin Pop | |
788 | 5a19bd35 | Iustin Pop | man/%.1: man/%.1.in $(REPLACE_VARS_SED) |
789 | 5a19bd35 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
790 | 5a19bd35 | Iustin Pop | |
791 | dbefcc7e | Michael Hanselmann | man/%.7: man/%.7.in $(REPLACE_VARS_SED) |
792 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
793 | e8230860 | Michael Hanselmann | |
794 | dbefcc7e | Michael Hanselmann | man/%.8: man/%.8.in $(REPLACE_VARS_SED) |
795 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
796 | e8230860 | Michael Hanselmann | |
797 | dbefcc7e | Michael Hanselmann | man/%.html: man/%.html.in $(REPLACE_VARS_SED) |
798 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
799 | f29266b4 | Iustin Pop | |
800 | 75f76703 | Michael Hanselmann | epydoc.conf: epydoc.conf.in Makefile |
801 | 75f76703 | Michael Hanselmann | sed -e 's#@MODULES@#$(strip $(lint_python_code))#g' < $< > $@ |
802 | f774bd03 | Michael Hanselmann | |
803 | 84a12e40 | Iustin Pop | vcs-version: |
804 | 84a12e40 | Iustin Pop | if test -d .git; then \ |
805 | 84a12e40 | Iustin Pop | git describe > $@; \ |
806 | 84a12e40 | Iustin Pop | elif test ! -f $@ ; then \ |
807 | 84a12e40 | Iustin Pop | echo "Cannot auto-generate $@ file"; exit 1; \ |
808 | 84a12e40 | Iustin Pop | fi |
809 | 84a12e40 | Iustin Pop | |
810 | 84a12e40 | Iustin Pop | .PHONY: regen-vcs-version |
811 | 84a12e40 | Iustin Pop | regen-vcs-version: |
812 | e8230860 | Michael Hanselmann | set -e; \ |
813 | 84a12e40 | Iustin Pop | cd $(srcdir); \ |
814 | 84a12e40 | Iustin Pop | if test -d .git; then \ |
815 | 84a12e40 | Iustin Pop | rm -f vcs-version; \ |
816 | 84a12e40 | Iustin Pop | $(MAKE) vcs-version; \ |
817 | 84a12e40 | Iustin Pop | fi |
818 | 84a12e40 | Iustin Pop | |
819 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Version.hs: htools/Ganeti/HTools/Version.hs.in vcs-version |
820 | d6159933 | Iustin Pop | set -e; \ |
821 | d6159933 | Iustin Pop | VCSVER=`cat $(abs_top_srcdir)/vcs-version`; \ |
822 | d6159933 | Iustin Pop | sed -e "s/%ver%/$$VCSVER/" < $< > $@ |
823 | d6159933 | Iustin Pop | |
824 | d99d1e36 | Iustin Pop | htools/Ganeti/Constants.hs: htools/Ganeti/Constants.hs.in \ |
825 | d99d1e36 | Iustin Pop | lib/constants.py lib/_autoconf.py $(CONVERT_CONSTANTS) |
826 | 11fd5a86 | Iustin Pop | set -e; \ |
827 | 876f6a5e | Iustin Pop | { cat $< ; PYTHONPATH=. $(CONVERT_CONSTANTS); } > $@ |
828 | d99d1e36 | Iustin Pop | |
829 | c964d962 | Michael Hanselmann | lib/_autoconf.py: Makefile vcs-version | lib/.dir |
830 | 84a12e40 | Iustin Pop | set -e; \ |
831 | 84a12e40 | Iustin Pop | VCSVER=`cat $(abs_top_srcdir)/vcs-version`; \ |
832 | e8230860 | Michael Hanselmann | { echo '# This file is automatically generated, do not edit!'; \ |
833 | e8230860 | Michael Hanselmann | echo '#'; \ |
834 | 67047322 | Iustin Pop | echo ''; \ |
835 | 67047322 | Iustin Pop | echo '"""Build-time configuration for Ganeti.'; \ |
836 | 67047322 | Iustin Pop | echo '';\ |
837 | 67047322 | Iustin Pop | echo 'This file is autogenerated by the build process.'; \ |
838 | 67047322 | Iustin Pop | echo 'For any changes you need to re-run ./configure (and'; \ |
839 | 67047322 | Iustin Pop | echo 'not edit by hand).'; \ |
840 | 67047322 | Iustin Pop | echo ''; \ |
841 | 67047322 | Iustin Pop | echo '"""'; \ |
842 | 67047322 | Iustin Pop | echo ''; \ |
843 | 0a4e7f24 | Iustin Pop | echo '# pylint: disable-msg=C0301,C0324'; \ |
844 | 0a4e7f24 | Iustin Pop | echo '# because this is autogenerated, we do not want'; \ |
845 | 0a4e7f24 | Iustin Pop | echo '# style warnings' ; \ |
846 | 0a4e7f24 | Iustin Pop | echo ''; \ |
847 | e8230860 | Michael Hanselmann | echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \ |
848 | e8230860 | Michael Hanselmann | echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \ |
849 | e8230860 | Michael Hanselmann | echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \ |
850 | e8230860 | Michael Hanselmann | echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \ |
851 | e8230860 | Michael Hanselmann | echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \ |
852 | e8230860 | Michael Hanselmann | echo "VERSION_FULL = '$(VERSION_FULL)'"; \ |
853 | e8230860 | Michael Hanselmann | echo "LOCALSTATEDIR = '$(localstatedir)'"; \ |
854 | e8230860 | Michael Hanselmann | echo "SYSCONFDIR = '$(sysconfdir)'"; \ |
855 | 553bd93f | Vitaly Kuznetsov | echo "SSH_CONFIG_DIR = '$(SSH_CONFIG_DIR)'"; \ |
856 | e8230860 | Michael Hanselmann | echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \ |
857 | e8230860 | Michael Hanselmann | echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \ |
858 | 2f2dbb4b | Jun Futagawa | echo "XEN_BOOTLOADER = '$(XEN_BOOTLOADER)'"; \ |
859 | e8230860 | Michael Hanselmann | echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \ |
860 | e8230860 | Michael Hanselmann | echo "XEN_INITRD = '$(XEN_INITRD)'"; \ |
861 | e8230860 | Michael Hanselmann | echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \ |
862 | cb7c0198 | Iustin Pop | echo "ENABLE_FILE_STORAGE = $(ENABLE_FILE_STORAGE)"; \ |
863 | 4b97f902 | Apollon Oikonomopoulos | echo "SHARED_FILE_STORAGE_DIR = '$(SHARED_FILE_STORAGE_DIR)'"; \ |
864 | 4b97f902 | Apollon Oikonomopoulos | echo "ENABLE_SHARED_FILE_STORAGE = $(ENABLE_SHARED_FILE_STORAGE)"; \ |
865 | e8230860 | Michael Hanselmann | echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \ |
866 | 7e2c5b9e | Guido Trotter | echo "KVM_PATH = '$(KVM_PATH)'"; \ |
867 | fe5b0c42 | Michael Hanselmann | echo "SOCAT_PATH = '$(SOCAT)'"; \ |
868 | fe5b0c42 | Michael Hanselmann | echo "SOCAT_USE_ESCAPE = $(SOCAT_USE_ESCAPE)"; \ |
869 | e90739d6 | Michael Hanselmann | echo "SOCAT_USE_COMPRESS = $(SOCAT_USE_COMPRESS)"; \ |
870 | bea60381 | Michael Hanselmann | echo "LVM_STRIPECOUNT = $(LVM_STRIPECOUNT)"; \ |
871 | bea60381 | Michael Hanselmann | echo "TOOLSDIR = '$(toolsdir)'"; \ |
872 | 4f3d5b76 | Michael Hanselmann | echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \ |
873 | f154a7a3 | Michael Hanselmann | echo "PKGLIBDIR = '$(pkglibdir)'"; \ |
874 | 89b70f39 | Iustin Pop | echo "DRBD_BARRIERS = $(DRBD_BARRIERS)"; \ |
875 | 551b6283 | Iustin Pop | echo "SYSLOG_USAGE = '$(SYSLOG_USAGE)'"; \ |
876 | 8b72b05c | René Nussbaumer | echo "DAEMONS_GROUP = '$(DAEMONS_GROUP)'"; \ |
877 | f12e1736 | René Nussbaumer | echo "ADMIN_GROUP = '$(ADMIN_GROUP)'"; \ |
878 | 8b72b05c | René Nussbaumer | echo "MASTERD_USER = '$(MASTERD_USER)'"; \ |
879 | f12e1736 | René Nussbaumer | echo "MASTERD_GROUP = '$(MASTERD_GROUP)'"; \ |
880 | 8b72b05c | René Nussbaumer | echo "RAPI_USER = '$(RAPI_USER)'"; \ |
881 | f12e1736 | René Nussbaumer | echo "RAPI_GROUP = '$(RAPI_GROUP)'"; \ |
882 | f12e1736 | René Nussbaumer | echo "CONFD_USER = '$(CONFD_USER)'"; \ |
883 | f12e1736 | René Nussbaumer | echo "CONFD_GROUP = '$(CONFD_GROUP)'"; \ |
884 | f12e1736 | René Nussbaumer | echo "NODED_USER = '$(NODED_USER)'"; \ |
885 | 03881cb0 | René Nussbaumer | echo "NODED_GROUP = '$(NODED_GROUP)'"; \ |
886 | 84a12e40 | Iustin Pop | echo "VCS_VERSION = '$$VCSVER'"; \ |
887 | 3536c792 | Iustin Pop | echo "DISK_SEPARATOR = '$(DISK_SEPARATOR)'"; \ |
888 | e5395072 | Iustin Pop | if [ "$(HTOOLS)" ]; then \ |
889 | e5395072 | Iustin Pop | echo "HTOOLS = True"; \ |
890 | e5395072 | Iustin Pop | else \ |
891 | e5395072 | Iustin Pop | echo "HTOOLS = False"; \ |
892 | e5395072 | Iustin Pop | fi; \ |
893 | e8230860 | Michael Hanselmann | } > $@ |
894 | e8230860 | Michael Hanselmann | |
895 | dbefcc7e | Michael Hanselmann | $(REPLACE_VARS_SED): Makefile |
896 | e8230860 | Michael Hanselmann | set -e; \ |
897 | e8230860 | Michael Hanselmann | { echo 's#@PREFIX@#$(prefix)#g'; \ |
898 | e8230860 | Michael Hanselmann | echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ |
899 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
900 | 7a2ba406 | Luca Bigliardi | echo 's#@BINDIR@#$(bindir)#g'; \ |
901 | e8230860 | Michael Hanselmann | echo 's#@SBINDIR@#$(sbindir)#g'; \ |
902 | e8230860 | Michael Hanselmann | echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \ |
903 | 2f2dbb4b | Jun Futagawa | echo 's#@CUSTOM_XEN_BOOTLOADER@#$(XEN_BOOTLOADER)#g'; \ |
904 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \ |
905 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \ |
906 | 56956bcb | Iustin Pop | echo 's#@CUSTOM_IALLOCATOR_SEARCH_PATH@#$(IALLOCATOR_SEARCH_PATH)#g'; \ |
907 | 56956bcb | Iustin Pop | echo 's#@CUSTOM_EXPORT_DIR@#$(EXPORT_DIR)#g'; \ |
908 | d3b4cf9f | Iustin Pop | echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \ |
909 | 7e1fac25 | Michael Hanselmann | echo 's#@RPL_SSH_INITD_SCRIPT@#$(SSH_INITD_SCRIPT)#g'; \ |
910 | c5159571 | Iustin Pop | echo 's#@PKGLIBDIR@#$(pkglibdir)#g'; \ |
911 | 0d150c50 | René Nussbaumer | echo 's#@GNTMASTERUSER@#$(MASTERD_USER)#g'; \ |
912 | 0d150c50 | René Nussbaumer | echo 's#@GNTRAPIUSER@#$(RAPI_USER)#g'; \ |
913 | 0d150c50 | René Nussbaumer | echo 's#@GNTCONFDUSER@#$(CONFD_USER)#g'; \ |
914 | 0d150c50 | René Nussbaumer | echo 's#@GNTNODEDUSER@#$(NODED_USER)#g'; \ |
915 | 0d150c50 | René Nussbaumer | echo 's#@GNTRAPIGROUP@#$(RAPI_GROUP)#g'; \ |
916 | 0d150c50 | René Nussbaumer | echo 's#@GNTADMINGROUP@#$(ADMIN_GROUP)#g'; \ |
917 | 0d150c50 | René Nussbaumer | echo 's#@GNTCONFDGROUP@#$(CONFD_GROUP)#g'; \ |
918 | 0d150c50 | René Nussbaumer | echo 's#@GNTMASTERDGROUP@#$(MASTERD_GROUP)#g'; \ |
919 | 46a8da3b | René Nussbaumer | echo 's#@GNTDAEMONSGROUP@#$(DAEMONS_GROUP)#g'; \ |
920 | e8230860 | Michael Hanselmann | } > $@ |
921 | e8230860 | Michael Hanselmann | |
922 | 67313146 | Michael Hanselmann | # Using deferred evaluation |
923 | 899c4d2c | Michael Hanselmann | daemons/ganeti-%: MODULE = ganeti.server.$(patsubst ganeti-%,%,$(notdir $@)) |
924 | 9f4bb951 | Michael Hanselmann | daemons/ganeti-watcher: MODULE = ganeti.watcher |
925 | 67313146 | Michael Hanselmann | scripts/%: MODULE = ganeti.client.$(subst -,_,$(notdir $@)) |
926 | 0d2bf835 | René Nussbaumer | tools/ensure-dirs: MODULE = ganeti.tools.ensure_dirs |
927 | 67313146 | Michael Hanselmann | |
928 | c964d962 | Michael Hanselmann | $(PYTHON_BOOTSTRAP): Makefile | $(all_dirfiles) |
929 | 67313146 | Michael Hanselmann | test -n "$(MODULE)" || { echo Missing module; exit 1; } |
930 | 2d48a3a2 | Michael Hanselmann | set -e; \ |
931 | d75e738e | Michael Hanselmann | { echo '#!/usr/bin/python'; \ |
932 | 2d48a3a2 | Michael Hanselmann | echo '# This file is automatically generated, do not edit!'; \ |
933 | 67313146 | Michael Hanselmann | echo "# Edit $(MODULE) instead."; \ |
934 | 2d48a3a2 | Michael Hanselmann | echo; \ |
935 | 67313146 | Michael Hanselmann | echo '"""Bootstrap script for L{$(MODULE)}"""'; \ |
936 | 2d48a3a2 | Michael Hanselmann | echo; \ |
937 | 2d48a3a2 | Michael Hanselmann | echo '# pylint: disable-msg=C0103'; \ |
938 | 2d48a3a2 | Michael Hanselmann | echo '# C0103: Invalid name'; \ |
939 | 2d48a3a2 | Michael Hanselmann | echo; \ |
940 | 2d48a3a2 | Michael Hanselmann | echo 'import sys'; \ |
941 | 67313146 | Michael Hanselmann | echo 'import $(MODULE) as main'; \ |
942 | 2d48a3a2 | Michael Hanselmann | echo; \ |
943 | 2d48a3a2 | Michael Hanselmann | echo '# Temporarily alias commands until bash completion'; \ |
944 | 2d48a3a2 | Michael Hanselmann | echo '# generator is changed'; \ |
945 | 67313146 | Michael Hanselmann | echo 'if hasattr(main, "commands"):'; \ |
946 | 2cc8bdd0 | Michael Hanselmann | echo ' commands = main.commands # pylint: disable-msg=E1101'; \ |
947 | 2d48a3a2 | Michael Hanselmann | echo; \ |
948 | 2d48a3a2 | Michael Hanselmann | echo 'if __name__ == "__main__":'; \ |
949 | 67313146 | Michael Hanselmann | echo ' sys.exit(main.Main())'; \ |
950 | 2d48a3a2 | Michael Hanselmann | } > $@ |
951 | 2d48a3a2 | Michael Hanselmann | chmod u+x $@ |
952 | 2d48a3a2 | Michael Hanselmann | |
953 | e8230860 | Michael Hanselmann | # We need to create symlinks because "make distcheck" will not install Python |
954 | e8230860 | Michael Hanselmann | # files when building. |
955 | c964d962 | Michael Hanselmann | stamp-srclinks: Makefile | $(all_dirfiles) |
956 | e8230860 | Michael Hanselmann | set -e; \ |
957 | 01a3a718 | Michael Hanselmann | for i in $(srclink_files); do \ |
958 | e8230860 | Michael Hanselmann | if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \ |
959 | e8230860 | Michael Hanselmann | $(LN_S) $(abs_top_srcdir)/$$i $$i; \ |
960 | e8230860 | Michael Hanselmann | fi; \ |
961 | e8230860 | Michael Hanselmann | done |
962 | dd1dfd9a | Michael Hanselmann | touch $@ |
963 | 97a37b3f | Michael Hanselmann | |
964 | 9ff7e35c | Michael Hanselmann | .PHONY: ganeti |
965 | 9ff7e35c | Michael Hanselmann | ganeti: |
966 | 01f3e7b1 | Iustin Pop | cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; } |
967 | 9ff7e35c | Michael Hanselmann | |
968 | 6b997854 | Michael Hanselmann | .PHONY: check-dirs |
969 | 6b997854 | Michael Hanselmann | check-dirs: $(BUILT_SOURCES) |
970 | 0c1103d6 | Iustin Pop | @set -e; \ |
971 | 6b997854 | Michael Hanselmann | find . -type d \( \( -name . \) -o \( \ |
972 | 6b997854 | Michael Hanselmann | -name .git -o \ |
973 | 6b997854 | Michael Hanselmann | -name autom4te.cache \ |
974 | 6b997854 | Michael Hanselmann | \) -prune -o -print \) | { \ |
975 | 6b997854 | Michael Hanselmann | error=; \ |
976 | 6b997854 | Michael Hanselmann | while read dir; do \ |
977 | 6b997854 | Michael Hanselmann | case "$$dir" in \ |
978 | 6b997854 | Michael Hanselmann | $(strip $(patsubst %,(./%) ;;,$(DIRCHECK_EXCLUDE) $(DIRS))) \ |
979 | 6b997854 | Michael Hanselmann | *) error=1; echo "Directory $$dir not listed in Makefile" >&2 ;; \ |
980 | 6b997854 | Michael Hanselmann | esac; \ |
981 | 6b997854 | Michael Hanselmann | done; \ |
982 | 6b997854 | Michael Hanselmann | for dir in $(DIRS); do \ |
983 | 6b997854 | Michael Hanselmann | if ! test -d "$$dir"; then \ |
984 | 6b997854 | Michael Hanselmann | echo "Directory $$dir listed in DIRS does not exist" >&2; \ |
985 | 6b997854 | Michael Hanselmann | error=1; \ |
986 | 6b997854 | Michael Hanselmann | fi \ |
987 | 6b997854 | Michael Hanselmann | done; \ |
988 | 6b997854 | Michael Hanselmann | if test -n "$$error"; then exit 1; else exit 0; fi; \ |
989 | 6b997854 | Michael Hanselmann | } |
990 | 6b997854 | Michael Hanselmann | |
991 | 6b997854 | Michael Hanselmann | check-local: check-dirs |
992 | eed5c5df | Michael Hanselmann | $(CHECK_PYTHON_CODE) $(check_python_code) |
993 | 35576615 | Michael Hanselmann | $(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS |
994 | 7385c51d | Michael Hanselmann | $(CHECK_NEWS) < $(top_srcdir)/NEWS |
995 | 9488fd1d | Michael Hanselmann | expver=$(VERSION_MAJOR).$(VERSION_MINOR); \ |
996 | 154d7ba5 | Michael Hanselmann | if test "`head -n 1 $(top_srcdir)/README`" != "Ganeti $$expver"; then \ |
997 | 9488fd1d | Michael Hanselmann | echo "Incorrect version in README, expected $$expver"; \ |
998 | 9488fd1d | Michael Hanselmann | exit 1; \ |
999 | 7ecb3d0e | Michael Hanselmann | fi; \ |
1000 | 7ecb3d0e | Michael Hanselmann | if test "`sed -ne '4 p' $(top_srcdir)/doc/iallocator.rst`" != \ |
1001 | 7ecb3d0e | Michael Hanselmann | "Documents Ganeti version $$expver"; then \ |
1002 | 7ecb3d0e | Michael Hanselmann | echo "Incorrect version in iallocator.rst, expected $$expver"; \ |
1003 | 7ecb3d0e | Michael Hanselmann | exit 1; \ |
1004 | 9488fd1d | Michael Hanselmann | fi |
1005 | eed5c5df | Michael Hanselmann | |
1006 | 49e11c49 | Iustin Pop | .PHONY: hs-check |
1007 | 49e11c49 | Iustin Pop | hs-check: htools/test |
1008 | 49e11c49 | Iustin Pop | @rm -f test.tix |
1009 | 49e11c49 | Iustin Pop | ./htools/test |
1010 | 49e11c49 | Iustin Pop | |
1011 | e0098923 | Iustin Pop | .PHONY: lint |
1012 | c964d962 | Michael Hanselmann | lint: $(BUILT_SOURCES) |
1013 | 6d7cc5ff | Michael Hanselmann | @test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; } |
1014 | 6d7cc5ff | Michael Hanselmann | $(PYLINT) $(LINT_OPTS) $(lint_python_code) |
1015 | 3582eef6 | Iustin Pop | cd $(top_srcdir)/qa && \ |
1016 | 3582eef6 | Iustin Pop | PYTHONPATH=$(abs_top_srcdir) $(PYLINT) $(LINT_OPTS) \ |
1017 | 3582eef6 | Iustin Pop | --rcfile ../pylintrc $(patsubst qa/%.py,%,$(qa_scripts)) |
1018 | e0098923 | Iustin Pop | |
1019 | 191ff68c | Iustin Pop | .PHONY: hlint |
1020 | c3f67183 | Iustin Pop | hlint: $(HS_BUILT_SRCS) |
1021 | 191ff68c | Iustin Pop | if tty -s; then C="-c"; else C=""; fi; \ |
1022 | 191ff68c | Iustin Pop | hlint --report=doc/hs-lint.html $$C htools |
1023 | 191ff68c | Iustin Pop | |
1024 | 84a12e40 | Iustin Pop | # a dist hook rule for updating the vcs-version file; this is |
1025 | 84a12e40 | Iustin Pop | # hardcoded due to where it needs to build the file... |
1026 | 84a12e40 | Iustin Pop | dist-hook: |
1027 | 84a12e40 | Iustin Pop | $(MAKE) regen-vcs-version && \ |
1028 | 84a12e40 | Iustin Pop | rm -f $(top_distdir)/vcs-version && \ |
1029 | 84a12e40 | Iustin Pop | cp -p $(srcdir)/vcs-version $(top_distdir) |
1030 | 84a12e40 | Iustin Pop | |
1031 | 84a12e40 | Iustin Pop | # a distcheck hook rule for catching revision control directories |
1032 | b6f2e47f | Iustin Pop | distcheck-hook: |
1033 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name .svn -or -name .git | grep .; then \ |
1034 | c6aa0c42 | Michael Hanselmann | echo "Found revision control files in final archive." 1>&2; \ |
1035 | c6aa0c42 | Michael Hanselmann | exit 1; \ |
1036 | c6aa0c42 | Michael Hanselmann | fi |
1037 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name '*.py[co]' | grep .; then \ |
1038 | c6aa0c42 | Michael Hanselmann | echo "Found Python byte code in final archive." 1>&2; \ |
1039 | c6aa0c42 | Michael Hanselmann | exit 1; \ |
1040 | c6aa0c42 | Michael Hanselmann | fi |
1041 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name '*~' | grep .; then \ |
1042 | c6aa0c42 | Michael Hanselmann | echo "Found backup files in final archive." 1>&2; \ |
1043 | b6f2e47f | Iustin Pop | exit 1; \ |
1044 | b6f2e47f | Iustin Pop | fi |
1045 | bf0b21da | Michael Hanselmann | # Empty files or directories should not be distributed. They can cause |
1046 | bf0b21da | Michael Hanselmann | # unnecessary warnings for packagers. Directories used by automake during |
1047 | bf0b21da | Michael Hanselmann | # distcheck must be excluded. |
1048 | bf0b21da | Michael Hanselmann | if find $(top_distdir) -empty -and -not \( \ |
1049 | bf0b21da | Michael Hanselmann | -path $(top_distdir)/_build -or \ |
1050 | bf0b21da | Michael Hanselmann | -path $(top_distdir)/_inst \) | grep .; then \ |
1051 | bf0b21da | Michael Hanselmann | echo "Found empty files or directories in final archive." 1>&2; \ |
1052 | bf0b21da | Michael Hanselmann | exit 1; \ |
1053 | bf0b21da | Michael Hanselmann | fi |
1054 | c7b86f6c | Michael Hanselmann | if test -n "$(BUILD_RELEASE)" && \ |
1055 | c7b86f6c | Michael Hanselmann | grep -n -H -E '^\*.*unreleased' $(top_distdir)/NEWS; then \ |
1056 | c7b86f6c | Michael Hanselmann | echo "Found unreleased version in NEWS." >&2; \ |
1057 | c7b86f6c | Michael Hanselmann | exit 1; \ |
1058 | c7b86f6c | Michael Hanselmann | fi |
1059 | c7b86f6c | Michael Hanselmann | |
1060 | c7b86f6c | Michael Hanselmann | # When building a release, stricter checks should be used |
1061 | e627fe09 | Michael Hanselmann | distcheck-release dist-release: export BUILD_RELEASE = 1 |
1062 | c7b86f6c | Michael Hanselmann | distcheck-release: distcheck |
1063 | b6f2e47f | Iustin Pop | |
1064 | e627fe09 | Michael Hanselmann | dist-release: dist |
1065 | e627fe09 | Michael Hanselmann | set -e; \ |
1066 | e627fe09 | Michael Hanselmann | for i in $(DIST_ARCHIVES); do \ |
1067 | e627fe09 | Michael Hanselmann | echo -n "Checking $$i ... "; \ |
1068 | e627fe09 | Michael Hanselmann | autotools/check-tar < $$i; \ |
1069 | e627fe09 | Michael Hanselmann | echo OK; \ |
1070 | e627fe09 | Michael Hanselmann | done |
1071 | e627fe09 | Michael Hanselmann | |
1072 | 8925faaa | Iustin Pop | install-exec-local: |
1073 | 0d93b082 | Michael Hanselmann | @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \ |
1074 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/log/ganeti" \ |
1075 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/run/ganeti" |
1076 | e8230860 | Michael Hanselmann | |
1077 | c964d962 | Michael Hanselmann | # To avoid conflicts between directory names and other targets, a file inside |
1078 | c964d962 | Michael Hanselmann | # the directory is used to ensure its existence. |
1079 | c964d962 | Michael Hanselmann | %.dir: |
1080 | c964d962 | Michael Hanselmann | @mkdir_p@ $* && touch $@ |
1081 | e8230860 | Michael Hanselmann | |
1082 | d128fdb6 | Iustin Pop | .PHONY: apidoc |
1083 | a38bfce5 | Iustin Pop | if WANT_HTOOLSAPIDOC |
1084 | a38bfce5 | Iustin Pop | apidoc: py-apidoc hs-apidoc |
1085 | a38bfce5 | Iustin Pop | else |
1086 | a38bfce5 | Iustin Pop | apidoc: py-apidoc |
1087 | a38bfce5 | Iustin Pop | endif |
1088 | a38bfce5 | Iustin Pop | |
1089 | a38bfce5 | Iustin Pop | .PHONY: py-apidoc |
1090 | a38bfce5 | Iustin Pop | py-apidoc: epydoc.conf $(RUN_IN_TEMPDIR) $(BUILT_SOURCES) |
1091 | b959138f | Michael Hanselmann | $(RUN_IN_TEMPDIR) epydoc -v \ |
1092 | b959138f | Michael Hanselmann | --conf $(CURDIR)/epydoc.conf \ |
1093 | 22c5390d | Iustin Pop | --output $(CURDIR)/$(APIDOC_PY_DIR) |
1094 | a38bfce5 | Iustin Pop | |
1095 | a38bfce5 | Iustin Pop | .PHONY: hs-apidoc |
1096 | c3f67183 | Iustin Pop | hs-apidoc: $(HS_BUILT_SRCS) |
1097 | a38bfce5 | Iustin Pop | @test -n "$(HSCOLOUR)" || \ |
1098 | a38bfce5 | Iustin Pop | { echo 'HsColour' not found during configure; exit 1; } |
1099 | a38bfce5 | Iustin Pop | @test -n "$(HADDOCK)" || \ |
1100 | a38bfce5 | Iustin Pop | { echo 'haddock' not found during configure; exit 1; } |
1101 | 22c5390d | Iustin Pop | rm -rf $(APIDOC_HS_DIR)/* |
1102 | 22c5390d | Iustin Pop | @mkdir_p@ $(APIDOC_HS_DIR)/Ganeti/HTools |
1103 | 22c5390d | Iustin Pop | $(HSCOLOUR) -print-css > $(APIDOC_HS_DIR)/Ganeti/hscolour.css |
1104 | 22c5390d | Iustin Pop | ln -s ../hscolour.css $(APIDOC_HS_DIR)/Ganeti/HTools/hscolour.css |
1105 | a38bfce5 | Iustin Pop | set -e ; \ |
1106 | a38bfce5 | Iustin Pop | cd htools; \ |
1107 | c478f837 | Iustin Pop | if [ "$(HTOOLS_NOCURL)" ]; \ |
1108 | c478f837 | Iustin Pop | then OPTGHC="--optghc=$(HTOOLS_NOCURL)"; \ |
1109 | c478f837 | Iustin Pop | else OPTGHC=""; \ |
1110 | c478f837 | Iustin Pop | fi; \ |
1111 | 606e71d3 | Iustin Pop | RELSRCS="$(HS_LIB_SRCS:htools/%=%) $(HS_BUILT_SRCS:htools/%=%)"; \ |
1112 | a38bfce5 | Iustin Pop | for file in $$RELSRCS; do \ |
1113 | a38bfce5 | Iustin Pop | hfile=`echo $$file|sed 's/\\.hs$$//'`.html; \ |
1114 | 22c5390d | Iustin Pop | $(HSCOLOUR) -css -anchor $$file > ../$(APIDOC_HS_DIR)/$$hfile ; \ |
1115 | a38bfce5 | Iustin Pop | done ; \ |
1116 | 22c5390d | Iustin Pop | $(HADDOCK) --odir ../$(APIDOC_HS_DIR) --html --ignore-all-exports -w \ |
1117 | a38bfce5 | Iustin Pop | -t ganeti-htools -p haddock-prologue \ |
1118 | a38bfce5 | Iustin Pop | --source-module="%{MODULE/.//}.html" \ |
1119 | a38bfce5 | Iustin Pop | --source-entity="%{MODULE/.//}.html#%{NAME}" \ |
1120 | c478f837 | Iustin Pop | $$OPTGHC \ |
1121 | c3f67183 | Iustin Pop | $(filter-out Ganeti/HTools/ExtLoader.hs,$(HS_LIB_SRCS:htools/%=%)) |
1122 | d128fdb6 | Iustin Pop | |
1123 | 13e720f1 | Iustin Pop | .PHONY: TAGS |
1124 | eb732fb5 | Michael Hanselmann | TAGS: $(BUILT_SOURCES) |
1125 | 13e720f1 | Iustin Pop | rm -f TAGS |
1126 | 74fa8200 | Iustin Pop | find . -path './lib/*.py' -o -path './scripts/gnt-*' -o \ |
1127 | 74fa8200 | Iustin Pop | -path './daemons/ganeti-*' -o -path './tools/*' -o \ |
1128 | 74fa8200 | Iustin Pop | -path './qa/*.py' | \ |
1129 | 3bb5c580 | Iustin Pop | etags -l python - |
1130 | 13e720f1 | Iustin Pop | |
1131 | 27e336af | Michael Hanselmann | .PHONY: coverage |
1132 | b91e9518 | Iustin Pop | if WANT_HTOOLS |
1133 | b91e9518 | Iustin Pop | coverage: py-coverage hs-coverage |
1134 | b91e9518 | Iustin Pop | else |
1135 | b91e9518 | Iustin Pop | coverage: py-coverage |
1136 | b91e9518 | Iustin Pop | endif |
1137 | b91e9518 | Iustin Pop | |
1138 | b91e9518 | Iustin Pop | .PHONY: py-coverage |
1139 | b91e9518 | Iustin Pop | py-coverage: $(BUILT_SOURCES) $(python_tests) |
1140 | 27e336af | Michael Hanselmann | set -e; \ |
1141 | 22c5390d | Iustin Pop | COVERAGE_FILE=$(CURDIR)/$(COVERAGE_PY_DIR)/data \ |
1142 | 22c5390d | Iustin Pop | TEXT_COVERAGE=$(CURDIR)/$(COVERAGE_PY_DIR)/report.txt \ |
1143 | 22c5390d | Iustin Pop | HTML_COVERAGE=$(CURDIR)/$(COVERAGE_PY_DIR) \ |
1144 | e8c8cf1a | Michael Hanselmann | $(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/gen-coverage \ |
1145 | e8c8cf1a | Michael Hanselmann | $(python_tests) |
1146 | 27e336af | Michael Hanselmann | |
1147 | b91e9518 | Iustin Pop | .PHONY: hs-coverage |
1148 | b91e9518 | Iustin Pop | hs-coverage: $(haskell_tests) |
1149 | b91e9518 | Iustin Pop | cd htools && rm -f *.tix *.mix && ./test |
1150 | 48f12e73 | Iustin Pop | @mkdir_p@ $(COVERAGE_HS_DIR) |
1151 | 22c5390d | Iustin Pop | hpc markup --destdir=$(COVERAGE_HS_DIR) htools/test $(HPCEXCL) |
1152 | b91e9518 | Iustin Pop | hpc report htools/test $(HPCEXCL) |
1153 | 16a6192d | Iustin Pop | ln -sf hpc_index.html $(COVERAGE_HS_DIR)/index.html |
1154 | b91e9518 | Iustin Pop | |
1155 | ec8379bd | Iustin Pop | # Special "kind-of-QA" target for htools, needs special setup (all |
1156 | ec8379bd | Iustin Pop | # tools compiled with -fhpc) |
1157 | ec8379bd | Iustin Pop | .PHONY: live-test |
1158 | ec8379bd | Iustin Pop | live-test: all |
1159 | ec8379bd | Iustin Pop | set -e ; \ |
1160 | ec8379bd | Iustin Pop | cd htools; \ |
1161 | ec8379bd | Iustin Pop | rm -f .hpc; ln -s ../.hpc .hpc; \ |
1162 | ec8379bd | Iustin Pop | rm -f *.tix *.mix; \ |
1163 | ec8379bd | Iustin Pop | ./live-test.sh; \ |
1164 | c3f67183 | Iustin Pop | hpc sum --union $(HPCEXCL) $(addsuffix .tix,$(HS_PROGS:htools/%=%)) \ |
1165 | ec8379bd | Iustin Pop | --output=live-test.tix ; \ |
1166 | 22c5390d | Iustin Pop | @mkdir_p@ ../$(COVERAGE_HS_DIR) ; \ |
1167 | 22c5390d | Iustin Pop | hpc markup --destdir=../$(COVERAGE_HS_DIR) live-test \ |
1168 | ec8379bd | Iustin Pop | --srcdir=.. $(HPCEXCL) ; \ |
1169 | ec8379bd | Iustin Pop | hpc report --srcdir=.. live-test $(HPCEXCL) |
1170 | b91e9518 | Iustin Pop | |
1171 | b341b9ca | Guido Trotter | commit-check: distcheck lint apidoc |
1172 | b341b9ca | Guido Trotter | |
1173 | 3baa809c | Michael Hanselmann | -include ./Makefile.local |
1174 | 3baa809c | Michael Hanselmann | |
1175 | e8230860 | Michael Hanselmann | # vim: set noet : |