root / Makefile.am @ d67e0a94
History | View | Annotate | Download (41.8 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 | 08366664 | Michael Hanselmann | # Helper values for calling builtin functions |
13 | 08366664 | Michael Hanselmann | empty := |
14 | 08366664 | Michael Hanselmann | space := $(empty) $(empty) |
15 | 08366664 | Michael Hanselmann | comma := , |
16 | 08366664 | Michael Hanselmann | |
17 | a01dd3c6 | Iustin Pop | # Use bash in order to be able to use pipefail |
18 | a01dd3c6 | Iustin Pop | SHELL=/bin/bash |
19 | a01dd3c6 | Iustin Pop | |
20 | 6e06b36c | Iustin Pop | ACLOCAL_AMFLAGS = -I autotools |
21 | 4f3d5b76 | Michael Hanselmann | BUILD_BASH_COMPLETION = $(top_srcdir)/autotools/build-bash-completion |
22 | b959138f | Michael Hanselmann | RUN_IN_TEMPDIR = $(top_srcdir)/autotools/run-in-tempdir |
23 | eed5c5df | Michael Hanselmann | CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code |
24 | 5d3c30df | Michael Hanselmann | CHECK_HEADER = $(top_srcdir)/autotools/check-header |
25 | c55cc346 | Iustin Pop | CHECK_MAN_DASHES = $(top_srcdir)/autotools/check-man-dashes |
26 | 73d0e218 | Iustin Pop | CHECK_MAN_WARNINGS = $(top_srcdir)/autotools/check-man-warnings |
27 | 96602be4 | Michael Hanselmann | CHECK_VERSION = $(top_srcdir)/autotools/check-version |
28 | 7385c51d | Michael Hanselmann | CHECK_NEWS = $(top_srcdir)/autotools/check-news |
29 | f6cbcc06 | Michael Hanselmann | CHECK_IMPORTS = $(top_srcdir)/autotools/check-imports |
30 | 95eb4188 | Michael Hanselmann | DOCPP = $(top_srcdir)/autotools/docpp |
31 | e8230860 | Michael Hanselmann | REPLACE_VARS_SED = autotools/replace_vars.sed |
32 | d99d1e36 | Iustin Pop | CONVERT_CONSTANTS = $(top_srcdir)/autotools/convert-constants |
33 | d5a2a550 | Michael Hanselmann | BUILD_RPC = $(top_srcdir)/autotools/build-rpc |
34 | e8230860 | Michael Hanselmann | |
35 | 22c5390d | Iustin Pop | # Note: these are automake-specific variables, and must be named after |
36 | 22c5390d | Iustin Pop | # the directory + 'dir' suffix |
37 | 2d48a3a2 | Michael Hanselmann | clientdir = $(pkgpythondir)/client |
38 | e8230860 | Michael Hanselmann | hypervisordir = $(pkgpythondir)/hypervisor |
39 | ff9efc03 | Michael Hanselmann | httpdir = $(pkgpythondir)/http |
40 | dc101ecc | Michael Hanselmann | masterddir = $(pkgpythondir)/masterd |
41 | 12426ae1 | Guido Trotter | confddir = $(pkgpythondir)/confd |
42 | 8c229cc7 | Oleksiy Mishchenko | rapidir = $(pkgpythondir)/rapi |
43 | 899c4d2c | Michael Hanselmann | serverdir = $(pkgpythondir)/server |
44 | 9f4bb951 | Michael Hanselmann | watcherdir = $(pkgpythondir)/watcher |
45 | bb44b1ae | Michael Hanselmann | impexpddir = $(pkgpythondir)/impexpd |
46 | c047a981 | Michael Hanselmann | utilsdir = $(pkgpythondir)/utils |
47 | e8230860 | Michael Hanselmann | toolsdir = $(pkglibdir)/tools |
48 | 7617fd6b | Iustin Pop | iallocatorsdir = $(pkglibdir)/iallocators |
49 | 0d2bf835 | René Nussbaumer | pytoolsdir = $(pkgpythondir)/tools |
50 | e8230860 | Michael Hanselmann | docdir = $(datadir)/doc/$(PACKAGE) |
51 | b8fe7ca6 | Iustin Pop | myexeclibdir = $(pkglibdir) |
52 | e8230860 | Michael Hanselmann | |
53 | a4f12da4 | Michael Hanselmann | # Delete output file if an error occurred while building it |
54 | a4f12da4 | Michael Hanselmann | .DELETE_ON_ERROR: |
55 | a4f12da4 | Michael Hanselmann | |
56 | d5506465 | Iustin Pop | HTOOLS_DIRS = \ |
57 | d5506465 | Iustin Pop | htools \ |
58 | d5506465 | Iustin Pop | htools/Ganeti \ |
59 | 358a0a8f | Iustin Pop | htools/Ganeti/Confd \ |
60 | 458a286a | Iustin Pop | htools/Ganeti/HTools \ |
61 | 458a286a | Iustin Pop | htools/Ganeti/HTools/Program |
62 | d5506465 | Iustin Pop | |
63 | e8230860 | Michael Hanselmann | DIRS = \ |
64 | e8230860 | Michael Hanselmann | autotools \ |
65 | e8230860 | Michael Hanselmann | daemons \ |
66 | e8230860 | Michael Hanselmann | devel \ |
67 | e8230860 | Michael Hanselmann | doc \ |
68 | e8230860 | Michael Hanselmann | doc/examples \ |
69 | d6d9ce45 | Guido Trotter | doc/examples/hooks \ |
70 | c51580b3 | Guido Trotter | doc/examples/gnt-debug \ |
71 | d5506465 | Iustin Pop | $(HTOOLS_DIRS) \ |
72 | e8230860 | Michael Hanselmann | lib \ |
73 | 2d48a3a2 | Michael Hanselmann | lib/client \ |
74 | f9897b6d | Michael Hanselmann | lib/build \ |
75 | 2f16ea8f | Michael Hanselmann | lib/confd \ |
76 | ff9efc03 | Michael Hanselmann | lib/http \ |
77 | e8230860 | Michael Hanselmann | lib/hypervisor \ |
78 | bb44b1ae | Michael Hanselmann | lib/impexpd \ |
79 | dc101ecc | Michael Hanselmann | lib/masterd \ |
80 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi \ |
81 | 899c4d2c | Michael Hanselmann | lib/server \ |
82 | 0d2bf835 | René Nussbaumer | lib/tools \ |
83 | c047a981 | Michael Hanselmann | lib/utils \ |
84 | 9f4bb951 | Michael Hanselmann | lib/watcher \ |
85 | e8230860 | Michael Hanselmann | man \ |
86 | e8230860 | Michael Hanselmann | qa \ |
87 | e8230860 | Michael Hanselmann | test \ |
88 | e8230860 | Michael Hanselmann | test/data \ |
89 | 6bbd76d2 | Iustin Pop | test/data/htools \ |
90 | 91e5a351 | Iustin Pop | test/data/htools/rapi \ |
91 | 1e6fab60 | Agata Murawska | test/data/ovfdata \ |
92 | d92518d3 | Agata Murawska | test/data/ovfdata/other \ |
93 | e8230860 | Michael Hanselmann | tools |
94 | e8230860 | Michael Hanselmann | |
95 | 2750b299 | Michael Hanselmann | BUILDTIME_DIR_AUTOCREATE = \ |
96 | c964d962 | Michael Hanselmann | scripts \ |
97 | 22c5390d | Iustin Pop | $(APIDOC_DIR) \ |
98 | 22c5390d | Iustin Pop | $(APIDOC_PY_DIR) \ |
99 | 22c5390d | Iustin Pop | $(APIDOC_HS_DIR) \ |
100 | 358a0a8f | Iustin Pop | $(APIDOC_HS_DIR)/Ganeti \ |
101 | 358a0a8f | Iustin Pop | $(APIDOC_HS_DIR)/Ganeti/Confd \ |
102 | 358a0a8f | Iustin Pop | $(APIDOC_HS_DIR)/Ganeti/HTools \ |
103 | 458a286a | Iustin Pop | $(APIDOC_HS_DIR)/Ganeti/HTools/Program \ |
104 | 22c5390d | Iustin Pop | $(COVERAGE_DIR) \ |
105 | 22c5390d | Iustin Pop | $(COVERAGE_PY_DIR) \ |
106 | 22c5390d | Iustin Pop | $(COVERAGE_HS_DIR) \ |
107 | b91e9518 | Iustin Pop | .hpc |
108 | 2750b299 | Michael Hanselmann | |
109 | 2750b299 | Michael Hanselmann | BUILDTIME_DIRS = \ |
110 | 2750b299 | Michael Hanselmann | $(BUILDTIME_DIR_AUTOCREATE) \ |
111 | 6b997854 | Michael Hanselmann | doc/html |
112 | 6b997854 | Michael Hanselmann | |
113 | 6b997854 | Michael Hanselmann | DIRCHECK_EXCLUDE = \ |
114 | 6b997854 | Michael Hanselmann | $(BUILDTIME_DIRS) \ |
115 | 6b997854 | Michael Hanselmann | ganeti-[0-9]*.[0-9]*.[0-9]* \ |
116 | 6b997854 | Michael Hanselmann | doc/html/_* |
117 | 6b997854 | Michael Hanselmann | |
118 | 2750b299 | Michael Hanselmann | all_dirfiles = $(addsuffix /.dir,$(DIRS) $(BUILDTIME_DIR_AUTOCREATE)) |
119 | c964d962 | Michael Hanselmann | |
120 | 22c5390d | Iustin Pop | # some helper vars |
121 | 22c5390d | Iustin Pop | COVERAGE_DIR = doc/coverage |
122 | 22c5390d | Iustin Pop | COVERAGE_PY_DIR = $(COVERAGE_DIR)/py |
123 | 22c5390d | Iustin Pop | COVERAGE_HS_DIR = $(COVERAGE_DIR)/hs |
124 | 22c5390d | Iustin Pop | APIDOC_DIR = doc/api |
125 | 22c5390d | Iustin Pop | APIDOC_PY_DIR = $(APIDOC_DIR)/py |
126 | 22c5390d | Iustin Pop | APIDOC_HS_DIR = $(APIDOC_DIR)/hs |
127 | 22c5390d | Iustin Pop | |
128 | 2ab2b9f5 | Iustin Pop | MAINTAINERCLEANFILES = \ |
129 | d17e74b4 | Iustin Pop | $(docpng) \ |
130 | b76aac08 | Michael Hanselmann | $(maninput) \ |
131 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst \ |
132 | 84a12e40 | Iustin Pop | doc/news.rst \ |
133 | 7a03d293 | Michael Hanselmann | doc/upgrade.rst \ |
134 | 84a12e40 | Iustin Pop | vcs-version |
135 | 2ab2b9f5 | Iustin Pop | |
136 | d17e74b4 | Iustin Pop | maintainer-clean-local: |
137 | 6b997854 | Michael Hanselmann | rm -rf $(BUILDTIME_DIRS) |
138 | d17e74b4 | Iustin Pop | |
139 | e8230860 | Michael Hanselmann | CLEANFILES = \ |
140 | 2f16ea8f | Michael Hanselmann | $(addsuffix /*.py[co],$(DIRS)) \ |
141 | d5506465 | Iustin Pop | $(addsuffix /*.hi,$(HTOOLS_DIRS)) \ |
142 | d5506465 | Iustin Pop | $(addsuffix /*.o,$(HTOOLS_DIRS)) \ |
143 | c964d962 | Michael Hanselmann | $(all_dirfiles) \ |
144 | 2d48a3a2 | Michael Hanselmann | $(PYTHON_BOOTSTRAP) \ |
145 | f774bd03 | Michael Hanselmann | epydoc.conf \ |
146 | e8230860 | Michael Hanselmann | autotools/replace_vars.sed \ |
147 | f154a7a3 | Michael Hanselmann | daemons/daemon-util \ |
148 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner \ |
149 | e8230860 | Michael Hanselmann | devel/upload \ |
150 | 656a7fdf | Iustin Pop | $(BUILT_EXAMPLES) \ |
151 | f72f8622 | Iustin Pop | doc/examples/bash_completion \ |
152 | d5a2a550 | Michael Hanselmann | lib/_generated_rpc.py \ |
153 | 2ab2b9f5 | Iustin Pop | $(man_MANS) \ |
154 | 2ab2b9f5 | Iustin Pop | $(manhtml) \ |
155 | 26916aad | Apollon Oikonomopoulos | tools/kvm-ifup \ |
156 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
157 | d6159933 | Iustin Pop | $(nodist_pkgpython_PYTHON) \ |
158 | c3f67183 | Iustin Pop | $(HS_ALL_PROGS) $(HS_BUILT_SRCS) \ |
159 | 3096524e | Iustin Pop | $(HS_BUILT_TEST_HELPERS) \ |
160 | 191ff68c | Iustin Pop | .hpc/*.mix htools/*.tix \ |
161 | 191ff68c | Iustin Pop | doc/hs-lint.html |
162 | e8230860 | Michael Hanselmann | |
163 | c964d962 | Michael Hanselmann | # BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise |
164 | c964d962 | Michael Hanselmann | # it'll cause the target to rebuild every time. |
165 | dc7d2c49 | Michael Hanselmann | BUILT_SOURCES = \ |
166 | 96a7481d | Michael Hanselmann | $(built_base_sources) \ |
167 | 96a7481d | Michael Hanselmann | $(BUILT_PYTHON_SOURCES) \ |
168 | 96a7481d | Michael Hanselmann | $(PYTHON_BOOTSTRAP) |
169 | 96a7481d | Michael Hanselmann | |
170 | 96a7481d | Michael Hanselmann | built_base_sources = \ |
171 | dc7d2c49 | Michael Hanselmann | ganeti \ |
172 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
173 | 96a7481d | Michael Hanselmann | $(all_dirfiles) |
174 | 2d1f248e | Michael Hanselmann | |
175 | 96a7481d | Michael Hanselmann | built_python_base_sources = \ |
176 | 13aeae6a | Iustin Pop | lib/_autoconf.py \ |
177 | 96a7481d | Michael Hanselmann | lib/_vcsversion.py |
178 | 96a7481d | Michael Hanselmann | |
179 | 96a7481d | Michael Hanselmann | BUILT_PYTHON_SOURCES = \ |
180 | 96a7481d | Michael Hanselmann | $(built_python_base_sources) \ |
181 | d5a2a550 | Michael Hanselmann | lib/_generated_rpc.py |
182 | e8230860 | Michael Hanselmann | |
183 | 96a7481d | Michael Hanselmann | # Generating the RPC wrappers depends on many things, so make sure it's built at |
184 | 96a7481d | Michael Hanselmann | # the end of the built sources |
185 | 96a7481d | Michael Hanselmann | lib/_generated_rpc.py: | $(built_base_sources) $(built_python_base_sources) |
186 | 96a7481d | Michael Hanselmann | |
187 | 656a7fdf | Iustin Pop | # these are all built from the underlying %.in sources |
188 | 656a7fdf | Iustin Pop | BUILT_EXAMPLES = \ |
189 | 656a7fdf | Iustin Pop | doc/examples/ganeti-kvm-poweroff.initd \ |
190 | 656a7fdf | Iustin Pop | doc/examples/ganeti.cron \ |
191 | 656a7fdf | Iustin Pop | doc/examples/ganeti.initd \ |
192 | 656a7fdf | Iustin Pop | doc/examples/gnt-config-backup \ |
193 | 656a7fdf | Iustin Pop | doc/examples/hooks/ipsec |
194 | 656a7fdf | Iustin Pop | |
195 | 08366664 | Michael Hanselmann | nodist_pkgpython_PYTHON = \ |
196 | 08366664 | Michael Hanselmann | $(BUILT_PYTHON_SOURCES) |
197 | 08366664 | Michael Hanselmann | |
198 | f9897b6d | Michael Hanselmann | noinst_PYTHON = \ |
199 | 5f43f393 | Michael Hanselmann | lib/build/__init__.py \ |
200 | 7142485a | Iustin Pop | lib/build/sphinx_ext.py \ |
201 | 7142485a | Iustin Pop | lib/build/shell_example_lexer.py |
202 | f9897b6d | Michael Hanselmann | |
203 | e8230860 | Michael Hanselmann | pkgpython_PYTHON = \ |
204 | e8230860 | Michael Hanselmann | lib/__init__.py \ |
205 | a8a76bc2 | Guido Trotter | lib/asyncnotifier.py \ |
206 | e8230860 | Michael Hanselmann | lib/backend.py \ |
207 | e8230860 | Michael Hanselmann | lib/bdev.py \ |
208 | e8230860 | Michael Hanselmann | lib/bootstrap.py \ |
209 | e8230860 | Michael Hanselmann | lib/cli.py \ |
210 | e8230860 | Michael Hanselmann | lib/cmdlib.py \ |
211 | cea881e5 | Michael Hanselmann | lib/compat.py \ |
212 | e8230860 | Michael Hanselmann | lib/config.py \ |
213 | e8230860 | Michael Hanselmann | lib/constants.py \ |
214 | 821d9e43 | Michael Hanselmann | lib/daemon.py \ |
215 | e8230860 | Michael Hanselmann | lib/errors.py \ |
216 | 62e0e880 | Iustin Pop | lib/ht.py \ |
217 | e8230860 | Michael Hanselmann | lib/jqueue.py \ |
218 | 8b537bb0 | Michael Hanselmann | lib/jstore.py \ |
219 | e8230860 | Michael Hanselmann | lib/locking.py \ |
220 | e8230860 | Michael Hanselmann | lib/luxi.py \ |
221 | e8230860 | Michael Hanselmann | lib/mcpu.py \ |
222 | a744b676 | Manuel Franceschini | lib/netutils.py \ |
223 | e8230860 | Michael Hanselmann | lib/objects.py \ |
224 | e8230860 | Michael Hanselmann | lib/opcodes.py \ |
225 | ced78a66 | Agata Murawska | lib/ovf.py \ |
226 | a123dc19 | Michael Hanselmann | lib/qlang.py \ |
227 | 4ca96421 | Michael Hanselmann | lib/query.py \ |
228 | e8230860 | Michael Hanselmann | lib/rpc.py \ |
229 | 6648cb36 | Michael Hanselmann | lib/rpc_defs.py \ |
230 | f12e1736 | René Nussbaumer | lib/runtime.py \ |
231 | e8230860 | Michael Hanselmann | lib/serializer.py \ |
232 | e8230860 | Michael Hanselmann | lib/ssconf.py \ |
233 | e8230860 | Michael Hanselmann | lib/ssh.py \ |
234 | ac2d0fe4 | Michael Hanselmann | lib/storage.py \ |
235 | 1338f2b4 | Balazs Lecz | lib/uidpool.py \ |
236 | 76094e37 | Michael Hanselmann | lib/workerpool.py |
237 | e8230860 | Michael Hanselmann | |
238 | 2d48a3a2 | Michael Hanselmann | client_PYTHON = \ |
239 | c2855a12 | Michael Hanselmann | lib/client/__init__.py \ |
240 | 02266fe0 | Michael Hanselmann | lib/client/gnt_backup.py \ |
241 | 7b3e7d41 | Michael Hanselmann | lib/client/gnt_cluster.py \ |
242 | 6d50f5f9 | Michael Hanselmann | lib/client/gnt_debug.py \ |
243 | 667dbd6b | Adeodato Simo | lib/client/gnt_group.py \ |
244 | e792102d | Michael Hanselmann | lib/client/gnt_instance.py \ |
245 | a09b9e3d | Michael Hanselmann | lib/client/gnt_job.py \ |
246 | 37494fa4 | Michael Hanselmann | lib/client/gnt_node.py \ |
247 | 6d50f5f9 | Michael Hanselmann | lib/client/gnt_os.py |
248 | 2d48a3a2 | Michael Hanselmann | |
249 | e8230860 | Michael Hanselmann | hypervisor_PYTHON = \ |
250 | e8230860 | Michael Hanselmann | lib/hypervisor/__init__.py \ |
251 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_base.py \ |
252 | 48297fa2 | Iustin Pop | lib/hypervisor/hv_chroot.py \ |
253 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_fake.py \ |
254 | eb58f9b1 | Guido Trotter | lib/hypervisor/hv_kvm.py \ |
255 | 4b5e40a5 | Iustin Pop | lib/hypervisor/hv_lxc.py \ |
256 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_xen.py |
257 | e8230860 | Michael Hanselmann | |
258 | 8c229cc7 | Oleksiy Mishchenko | rapi_PYTHON = \ |
259 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/__init__.py \ |
260 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/baserlib.py \ |
261 | 95ab4de9 | David Knowles | lib/rapi/client.py \ |
262 | 20b509de | Michael Hanselmann | lib/rapi/client_utils.py \ |
263 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/connector.py \ |
264 | a85f23fa | Michael Hanselmann | lib/rapi/rlib2.py \ |
265 | a85f23fa | Michael Hanselmann | lib/rapi/testutils.py |
266 | 8c229cc7 | Oleksiy Mishchenko | |
267 | ff9efc03 | Michael Hanselmann | http_PYTHON = \ |
268 | 02cab3e7 | Michael Hanselmann | lib/http/__init__.py \ |
269 | be500c29 | Michael Hanselmann | lib/http/auth.py \ |
270 | 02cab3e7 | Michael Hanselmann | lib/http/client.py \ |
271 | 02cab3e7 | Michael Hanselmann | lib/http/server.py |
272 | ff9efc03 | Michael Hanselmann | |
273 | 12426ae1 | Guido Trotter | confd_PYTHON = \ |
274 | 71f27d19 | Guido Trotter | lib/confd/__init__.py \ |
275 | e4ccf6cd | Guido Trotter | lib/confd/client.py \ |
276 | 2f16ea8f | Michael Hanselmann | lib/confd/querylib.py \ |
277 | 2f16ea8f | Michael Hanselmann | lib/confd/server.py |
278 | 8c229cc7 | Oleksiy Mishchenko | |
279 | dc101ecc | Michael Hanselmann | masterd_PYTHON = \ |
280 | 033a1d00 | Michael Hanselmann | lib/masterd/__init__.py \ |
281 | 033a1d00 | Michael Hanselmann | lib/masterd/instance.py |
282 | dc101ecc | Michael Hanselmann | |
283 | bb44b1ae | Michael Hanselmann | impexpd_PYTHON = \ |
284 | bb44b1ae | Michael Hanselmann | lib/impexpd/__init__.py |
285 | bb44b1ae | Michael Hanselmann | |
286 | 9f4bb951 | Michael Hanselmann | watcher_PYTHON = \ |
287 | 9ca87fb3 | Michael Hanselmann | lib/watcher/__init__.py \ |
288 | adf6301e | Michael Hanselmann | lib/watcher/nodemaint.py \ |
289 | adf6301e | Michael Hanselmann | lib/watcher/state.py |
290 | 9f4bb951 | Michael Hanselmann | |
291 | 899c4d2c | Michael Hanselmann | server_PYTHON = \ |
292 | 29d91329 | Michael Hanselmann | lib/server/__init__.py \ |
293 | 5c9c0e0e | Michael Hanselmann | lib/server/confd.py \ |
294 | 5119f2ec | Michael Hanselmann | lib/server/masterd.py \ |
295 | d9c82a4e | Michael Hanselmann | lib/server/noded.py \ |
296 | d9c82a4e | Michael Hanselmann | lib/server/rapi.py |
297 | 899c4d2c | Michael Hanselmann | |
298 | 0d2bf835 | René Nussbaumer | pytools_PYTHON = \ |
299 | 0d2bf835 | René Nussbaumer | lib/tools/__init__.py \ |
300 | 0d2bf835 | René Nussbaumer | lib/tools/ensure_dirs.py |
301 | 0d2bf835 | René Nussbaumer | |
302 | c047a981 | Michael Hanselmann | utils_PYTHON = \ |
303 | 4fd029cf | Michael Hanselmann | lib/utils/__init__.py \ |
304 | 79d22269 | Michael Hanselmann | lib/utils/algo.py \ |
305 | 9d1b963f | Michael Hanselmann | lib/utils/filelock.py \ |
306 | f21bb4b7 | Michael Hanselmann | lib/utils/hash.py \ |
307 | 3865ca48 | Michael Hanselmann | lib/utils/io.py \ |
308 | 1ae4c5a1 | Michael Hanselmann | lib/utils/log.py \ |
309 | 8dc76d54 | Guido Trotter | lib/utils/mlock.py \ |
310 | 17b97ab3 | Michael Hanselmann | lib/utils/nodesetup.py \ |
311 | a4ccecf6 | Michael Hanselmann | lib/utils/process.py \ |
312 | 7fcffe27 | Michael Hanselmann | lib/utils/retry.py \ |
313 | 7831fc5f | Michael Hanselmann | lib/utils/text.py \ |
314 | c50645c0 | Michael Hanselmann | lib/utils/wrapper.py \ |
315 | c50645c0 | Michael Hanselmann | lib/utils/x509.py |
316 | c047a981 | Michael Hanselmann | |
317 | f05c99f3 | Michael Hanselmann | docrst = \ |
318 | ffa6869f | Iustin Pop | doc/admin.rst \ |
319 | 5c0c1eeb | Iustin Pop | doc/design-2.0.rst \ |
320 | 4f366caf | Michael Hanselmann | doc/design-2.1.rst \ |
321 | e56bb0e8 | Guido Trotter | doc/design-2.2.rst \ |
322 | 1eb85930 | Guido Trotter | doc/design-2.3.rst \ |
323 | 92902e91 | Iustin Pop | doc/design-htools-2.3.rst \ |
324 | 78b40c5e | Michael Hanselmann | doc/design-2.4.rst \ |
325 | d774ce92 | Michael Hanselmann | doc/design-2.5.rst \ |
326 | c95c0f71 | Michael Hanselmann | doc/design-draft.rst \ |
327 | 1e86ee97 | Marc Schmitt | doc/design-oob.rst \ |
328 | ae9b5e0f | Tsachy Shacham | doc/design-cpu-pinning.rst \ |
329 | e5a246df | Michael Hanselmann | doc/design-query2.rst \ |
330 | 539f195a | Michael Hanselmann | doc/design-x509-ca.rst \ |
331 | 278ddaa9 | Michael Hanselmann | doc/design-http-server.rst \ |
332 | 1375e1d9 | Michael Hanselmann | doc/design-impexp2.rst \ |
333 | ed9fda24 | Michael Hanselmann | doc/design-lu-generated-jobs.rst \ |
334 | 4055b109 | Adeodato Simo | doc/design-multi-reloc.rst \ |
335 | eec83a95 | Apollon Oikonomopoulos | doc/design-network.rst \ |
336 | 6c3d18e0 | Michael Hanselmann | doc/design-chained-jobs.rst \ |
337 | 64ea845e | Michael Hanselmann | doc/design-ovf-support.rst \ |
338 | d85f01e7 | Iustin Pop | doc/design-resource-model.rst \ |
339 | d9bdffc3 | René Nussbaumer | doc/cluster-merge.rst \ |
340 | a997cec5 | Apollon Oikonomopoulos | doc/design-shared-storage.rst \ |
341 | 23f0b93e | René Nussbaumer | doc/design-node-state-cache.rst \ |
342 | 6b898285 | Iustin Pop | doc/design-virtual-clusters.rst \ |
343 | 62947ebb | Michael Hanselmann | doc/devnotes.rst \ |
344 | e2078d28 | Iustin Pop | doc/glossary.rst \ |
345 | 4d6443f4 | Iustin Pop | doc/hooks.rst \ |
346 | 876860a3 | Iustin Pop | doc/iallocator.rst \ |
347 | d17e74b4 | Iustin Pop | doc/index.rst \ |
348 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst \ |
349 | 28e15341 | Iustin Pop | doc/install.rst \ |
350 | 9725b53d | Michael Hanselmann | doc/locking.rst \ |
351 | 6bf273d5 | Michael Hanselmann | doc/move-instance.rst \ |
352 | c71a1a3d | Iustin Pop | doc/news.rst \ |
353 | 6d81475c | Iustin Pop | doc/rapi.rst \ |
354 | b76aac08 | Michael Hanselmann | doc/security.rst \ |
355 | 35dd762d | Michael Hanselmann | doc/upgrade.rst \ |
356 | c71a1a3d | Iustin Pop | doc/walkthrough.rst |
357 | f05c99f3 | Michael Hanselmann | |
358 | 0985325d | Iustin Pop | HS_PROGS = htools/htools |
359 | 2922d2c5 | René Nussbaumer | HS_BIN_ROLES = hbal hscan hspace hinfo |
360 | d6159933 | Iustin Pop | |
361 | 73b0fa69 | Iustin Pop | HS_ALL_PROGS = $(HS_PROGS) htools/test htools/hpc-htools htools/hconfd |
362 | c3f67183 | Iustin Pop | HS_PROG_SRCS = $(patsubst %,%.hs,$(HS_ALL_PROGS)) |
363 | 3096524e | Iustin Pop | HS_BUILT_TEST_HELPERS = $(HS_BIN_ROLES:%=test/%) test/hail |
364 | 3096524e | Iustin Pop | |
365 | 74e60746 | Iustin Pop | HFLAGS = -O -Wall -Werror -fwarn-monomorphism-restriction -fwarn-tabs -ihtools |
366 | 74e60746 | Iustin Pop | # extra flags that can be overriden on the command line (e.g. -Wwarn, etc.) |
367 | d6159933 | Iustin Pop | HEXTRA = |
368 | c7ec3025 | Iustin Pop | # internal extra flags (used for htools/test mainly) |
369 | c7ec3025 | Iustin Pop | HEXTRA_INT = |
370 | b91e9518 | Iustin Pop | # exclude options for coverage reports |
371 | 9822b1dd | Iustin Pop | HPCEXCL = --exclude Main \ |
372 | 98b33d0e | Iustin Pop | --exclude Ganeti.Constants \ |
373 | 9822b1dd | Iustin Pop | --exclude Ganeti.THH \ |
374 | 9822b1dd | Iustin Pop | --exclude Ganeti.HTools.QC \ |
375 | 9822b1dd | Iustin Pop | --exclude Ganeti.HTools.QCHelper \ |
376 | 98b33d0e | Iustin Pop | --exclude Ganeti.HTools.Version |
377 | d6159933 | Iustin Pop | |
378 | c3f67183 | Iustin Pop | HS_LIB_SRCS = \ |
379 | d6159933 | Iustin Pop | htools/Ganeti/HTools/CLI.hs \ |
380 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Cluster.hs \ |
381 | 1adec4be | Iustin Pop | htools/Ganeti/HTools/Compat.hs \ |
382 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Container.hs \ |
383 | d6159933 | Iustin Pop | htools/Ganeti/HTools/ExtLoader.hs \ |
384 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Group.hs \ |
385 | d6159933 | Iustin Pop | htools/Ganeti/HTools/IAlloc.hs \ |
386 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Instance.hs \ |
387 | f047f90f | Iustin Pop | htools/Ganeti/HTools/JSON.hs \ |
388 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Loader.hs \ |
389 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Luxi.hs \ |
390 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Node.hs \ |
391 | d6159933 | Iustin Pop | htools/Ganeti/HTools/PeerMap.hs \ |
392 | d6159933 | Iustin Pop | htools/Ganeti/HTools/QC.hs \ |
393 | 9822b1dd | Iustin Pop | htools/Ganeti/HTools/QCHelper.hs \ |
394 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Rapi.hs \ |
395 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Simu.hs \ |
396 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Text.hs \ |
397 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Types.hs \ |
398 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Utils.hs \ |
399 | 9f13be88 | Iustin Pop | htools/Ganeti/HTools/Program.hs \ |
400 | 458a286a | Iustin Pop | htools/Ganeti/HTools/Program/Hail.hs \ |
401 | 201b6c34 | Iustin Pop | htools/Ganeti/HTools/Program/Hbal.hs \ |
402 | 2922d2c5 | René Nussbaumer | htools/Ganeti/HTools/Program/Hinfo.hs \ |
403 | 7b695a0d | Iustin Pop | htools/Ganeti/HTools/Program/Hscan.hs \ |
404 | 1494a4cc | Iustin Pop | htools/Ganeti/HTools/Program/Hspace.hs \ |
405 | 0c37d1e4 | Iustin Pop | htools/Ganeti/BasicTypes.hs \ |
406 | 417cc253 | Iustin Pop | htools/Ganeti/Confd.hs \ |
407 | 358a0a8f | Iustin Pop | htools/Ganeti/Confd/Server.hs \ |
408 | eaa64cd8 | Iustin Pop | htools/Ganeti/Config.hs \ |
409 | 6ec7a50e | Iustin Pop | htools/Ganeti/Daemon.hs \ |
410 | 21dc8694 | Iustin Pop | htools/Ganeti/Hash.hs \ |
411 | d6159933 | Iustin Pop | htools/Ganeti/Jobs.hs \ |
412 | ba4e38e8 | Iustin Pop | htools/Ganeti/Logging.hs \ |
413 | d6159933 | Iustin Pop | htools/Ganeti/Luxi.hs \ |
414 | b1e81520 | Iustin Pop | htools/Ganeti/Objects.hs \ |
415 | e9aaa3c6 | Iustin Pop | htools/Ganeti/OpCodes.hs \ |
416 | 7946c25d | Iustin Pop | htools/Ganeti/Runtime.hs \ |
417 | aa3adf35 | Iustin Pop | htools/Ganeti/Ssconf.hs \ |
418 | e9aaa3c6 | Iustin Pop | htools/Ganeti/THH.hs |
419 | d6159933 | Iustin Pop | |
420 | d99d1e36 | Iustin Pop | HS_BUILT_SRCS = htools/Ganeti/HTools/Version.hs htools/Ganeti/Constants.hs |
421 | c3f67183 | Iustin Pop | HS_BUILT_SRCS_IN = $(patsubst %,%.in,$(HS_BUILT_SRCS)) |
422 | d6159933 | Iustin Pop | |
423 | c964d962 | Michael Hanselmann | $(RUN_IN_TEMPDIR): | $(all_dirfiles) |
424 | c964d962 | Michael Hanselmann | |
425 | a2d917f3 | Iustin Pop | # Note: we use here an order-only prerequisite, as the contents of |
426 | a2d917f3 | Iustin Pop | # _autoconf.py are not actually influencing the html build output: it |
427 | a2d917f3 | Iustin Pop | # has to exist in order for the sphinx module to be loaded |
428 | a2d917f3 | Iustin Pop | # successfully, but we certainly don't want the docs to be rebuilt if |
429 | a2d917f3 | Iustin Pop | # it changes |
430 | c964d962 | Michael Hanselmann | doc/html/index.html: $(docrst) $(docpng) doc/conf.py configure.ac \ |
431 | 7142485a | Iustin Pop | $(RUN_IN_TEMPDIR) lib/build/sphinx_ext.py \ |
432 | 7142485a | Iustin Pop | lib/build/shell_example_lexer.py lib/opcodes.py lib/ht.py \ |
433 | 08366664 | Michael Hanselmann | | $(BUILT_PYTHON_SOURCES) |
434 | d17e74b4 | Iustin Pop | @test -n "$(SPHINX)" || \ |
435 | d17e74b4 | Iustin Pop | { echo 'sphinx-build' not found during configure; exit 1; } |
436 | 2750b299 | Michael Hanselmann | @mkdir_p@ $(dir $@) |
437 | e7f6524c | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(SPHINX) -q -W -b html \ |
438 | 13de7d59 | Michael Hanselmann | -d . \ |
439 | d17e74b4 | Iustin Pop | -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \ |
440 | d17e74b4 | Iustin Pop | -D release="$(PACKAGE_VERSION)" \ |
441 | 13de7d59 | Michael Hanselmann | $(abs_top_srcdir)/doc $(CURDIR)/doc/html |
442 | 13de7d59 | Michael Hanselmann | rm -f doc/html/.buildinfo doc/html/objects.inv |
443 | 13de7d59 | Michael Hanselmann | touch $@ |
444 | 13de7d59 | Michael Hanselmann | |
445 | c964d962 | Michael Hanselmann | doc/html: doc/html/index.html |
446 | 2ab2b9f5 | Iustin Pop | |
447 | cbf3d64b | Michael Hanselmann | doc/install-quick.rst: INSTALL |
448 | b76aac08 | Michael Hanselmann | doc/news.rst: NEWS |
449 | 7a03d293 | Michael Hanselmann | doc/upgrade.rst: UPGRADE |
450 | b76aac08 | Michael Hanselmann | |
451 | e8deef56 | Michael Hanselmann | doc/install-quick.rst doc/news.rst doc/upgrade.rst: |
452 | cbf3d64b | Michael Hanselmann | set -e; \ |
453 | cbf3d64b | Michael Hanselmann | { echo '.. This file is automatically updated at build time from $<.'; \ |
454 | cbf3d64b | Michael Hanselmann | echo '.. Do not edit.'; \ |
455 | cbf3d64b | Michael Hanselmann | echo; \ |
456 | cbf3d64b | Michael Hanselmann | cat $<; \ |
457 | cbf3d64b | Michael Hanselmann | } > $@ |
458 | cbf3d64b | Michael Hanselmann | |
459 | b8195800 | Iustin Pop | docdot = \ |
460 | ca9ccea8 | Michael Hanselmann | doc/arch-2.0.dot \ |
461 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-acquire.dot \ |
462 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-release.dot |
463 | b8195800 | Iustin Pop | |
464 | d17e74b4 | Iustin Pop | docpng = $(patsubst %.dot,%.png,$(docdot)) |
465 | e8230860 | Michael Hanselmann | |
466 | 7e1ccbe0 | Michael Hanselmann | # Things to build but not to install (add it to EXTRA_DIST if it should be |
467 | 7e1ccbe0 | Michael Hanselmann | # distributed) |
468 | 7e1ccbe0 | Michael Hanselmann | noinst_DATA = \ |
469 | 7e1ccbe0 | Michael Hanselmann | devel/upload \ |
470 | 7e1ccbe0 | Michael Hanselmann | doc/html \ |
471 | 656a7fdf | Iustin Pop | $(BUILT_EXAMPLES) \ |
472 | 7e1ccbe0 | Michael Hanselmann | doc/examples/bash_completion \ |
473 | 7e1ccbe0 | Michael Hanselmann | $(manhtml) |
474 | f29266b4 | Iustin Pop | |
475 | 4f3d5b76 | Michael Hanselmann | gnt_scripts = \ |
476 | e8230860 | Michael Hanselmann | scripts/gnt-backup \ |
477 | e8230860 | Michael Hanselmann | scripts/gnt-cluster \ |
478 | e8230860 | Michael Hanselmann | scripts/gnt-debug \ |
479 | 667dbd6b | Adeodato Simo | scripts/gnt-group \ |
480 | e8230860 | Michael Hanselmann | scripts/gnt-instance \ |
481 | e8230860 | Michael Hanselmann | scripts/gnt-job \ |
482 | e8230860 | Michael Hanselmann | scripts/gnt-node \ |
483 | e8230860 | Michael Hanselmann | scripts/gnt-os |
484 | e8230860 | Michael Hanselmann | |
485 | 0d2bf835 | René Nussbaumer | PYTHON_BOOTSTRAP_SBIN = \ |
486 | 29d91329 | Michael Hanselmann | daemons/ganeti-masterd \ |
487 | 5119f2ec | Michael Hanselmann | daemons/ganeti-noded \ |
488 | 9f4bb951 | Michael Hanselmann | daemons/ganeti-watcher \ |
489 | d9c82a4e | Michael Hanselmann | daemons/ganeti-rapi \ |
490 | 656a7fdf | Iustin Pop | $(gnt_scripts) |
491 | 2d48a3a2 | Michael Hanselmann | |
492 | 73b0fa69 | Iustin Pop | if PY_CONFD |
493 | 73b0fa69 | Iustin Pop | PYTHON_BOOTSTRAP_SBIN += daemons/ganeti-confd |
494 | 73b0fa69 | Iustin Pop | endif |
495 | 73b0fa69 | Iustin Pop | |
496 | 0d2bf835 | René Nussbaumer | PYTHON_BOOTSTRAP = \ |
497 | 0d2bf835 | René Nussbaumer | $(PYTHON_BOOTSTRAP_SBIN) \ |
498 | 0d2bf835 | René Nussbaumer | tools/ensure-dirs |
499 | 0d2bf835 | René Nussbaumer | |
500 | a8c68e44 | Michael Hanselmann | qa_scripts = \ |
501 | a0c3e726 | Michael Hanselmann | qa/__init__.py \ |
502 | a8c68e44 | Michael Hanselmann | qa/ganeti-qa.py \ |
503 | a8c68e44 | Michael Hanselmann | qa/qa_cluster.py \ |
504 | a8c68e44 | Michael Hanselmann | qa/qa_config.py \ |
505 | a8c68e44 | Michael Hanselmann | qa/qa_daemon.py \ |
506 | a8c68e44 | Michael Hanselmann | qa/qa_env.py \ |
507 | a8c68e44 | Michael Hanselmann | qa/qa_error.py \ |
508 | 21bf2e2e | Andrea Spadaccini | qa/qa_group.py \ |
509 | a8c68e44 | Michael Hanselmann | qa/qa_instance.py \ |
510 | 09470dd8 | Michael Hanselmann | qa/qa_job.py \ |
511 | a8c68e44 | Michael Hanselmann | qa/qa_node.py \ |
512 | a8c68e44 | Michael Hanselmann | qa/qa_os.py \ |
513 | a8c68e44 | Michael Hanselmann | qa/qa_rapi.py \ |
514 | a8c68e44 | Michael Hanselmann | qa/qa_tags.py \ |
515 | a8c68e44 | Michael Hanselmann | qa/qa_utils.py |
516 | a8c68e44 | Michael Hanselmann | |
517 | d6159933 | Iustin Pop | bin_SCRIPTS = |
518 | d6159933 | Iustin Pop | if WANT_HTOOLS |
519 | c3f67183 | Iustin Pop | bin_SCRIPTS += $(filter-out htools/hail,$(HS_PROGS)) |
520 | 458a286a | Iustin Pop | install-exec-hook: |
521 | 458a286a | Iustin Pop | @mkdir_p@ $(DESTDIR)$(iallocatorsdir) |
522 | 7fa52acd | Iustin Pop | # FIXME: this is a hardcoded logic, instead of auto-resolving |
523 | 7fa52acd | Iustin Pop | $(LN_S) -f ../../../bin/htools \ |
524 | 458a286a | Iustin Pop | $(DESTDIR)$(iallocatorsdir)/hail |
525 | 201b6c34 | Iustin Pop | for role in $(HS_BIN_ROLES); do \ |
526 | 7fa52acd | Iustin Pop | $(LN_S) -f htools \ |
527 | 201b6c34 | Iustin Pop | $(DESTDIR)$(bindir)/$$role ; \ |
528 | 201b6c34 | Iustin Pop | done |
529 | 73b0fa69 | Iustin Pop | if HS_CONFD |
530 | 73b0fa69 | Iustin Pop | mv $(DESTDIR)$(sbindir)/hconfd $(DESTDIR)$(sbindir)/ganeti-confd |
531 | 73b0fa69 | Iustin Pop | endif |
532 | d6159933 | Iustin Pop | endif |
533 | d6159933 | Iustin Pop | |
534 | c3f67183 | Iustin Pop | $(HS_ALL_PROGS): %: %.hs $(HS_LIB_SRCS) $(HS_BUILT_SRCS) Makefile |
535 | 16a6192d | Iustin Pop | @if [ -z "$(HTOOLS)" ]; then \ |
536 | 16a6192d | Iustin Pop | echo "Error: htools compilation disabled at configure time" 1>&2 ;\ |
537 | 16a6192d | Iustin Pop | exit 1; \ |
538 | 16a6192d | Iustin Pop | fi |
539 | 49e11c49 | Iustin Pop | @BINARY=$(@:htools/%=%); \ |
540 | 49e11c49 | Iustin Pop | if [ "$BINARY" = "test" ] && [ -z "$(GHC_PKG_QUICKCHECK)" ]; then \ |
541 | fd0bc853 | Iustin Pop | echo "Error: cannot run unittests without the QuickCheck library (see devnotes.rst)" 1>&2; \ |
542 | fd0bc853 | Iustin Pop | exit 1; \ |
543 | 49e11c49 | Iustin Pop | fi |
544 | a593113c | Iustin Pop | rm -f $(@:htools/%=%).tix |
545 | 49e11c49 | Iustin Pop | BINARY=$(@:htools/%=%); $(GHC) --make \ |
546 | ef958f2a | Iustin Pop | $(HFLAGS) \ |
547 | 1adec4be | Iustin Pop | $(HTOOLS_NOCURL) $(HTOOLS_PARALLEL3) \ |
548 | ef958f2a | Iustin Pop | -osuf $$BINARY.o -hisuf $$BINARY.hi \ |
549 | c7ec3025 | Iustin Pop | $(HEXTRA) $(HEXTRA_INT) $@ |
550 | b91e9518 | Iustin Pop | # for the htools/test binary, we need to enable profiling/coverage |
551 | c7ec3025 | Iustin Pop | htools/test: HEXTRA_INT=-fhpc -Wwarn -fno-warn-missing-signatures \ |
552 | b91e9518 | Iustin Pop | -fno-warn-monomorphism-restriction -fno-warn-orphans \ |
553 | b91e9518 | Iustin Pop | -fno-warn-missing-methods -fno-warn-unused-imports |
554 | b91e9518 | Iustin Pop | |
555 | 896b2850 | Iustin Pop | # we compile the hpc-htools binary with the program coverage |
556 | 896b2850 | Iustin Pop | htools/hpc-htools: HEXTRA_INT=-fhpc |
557 | 25cdf177 | Iustin Pop | |
558 | 04d15e63 | Iustin Pop | # test dependency |
559 | 896b2850 | Iustin Pop | htools/offline-tests.sh: htools/hpc-htools |
560 | 04d15e63 | Iustin Pop | |
561 | c7ec3025 | Iustin Pop | # rules for building profiling-enabled versions of the haskell |
562 | c7ec3025 | Iustin Pop | # programs: hs-prof does the full two-step build, whereas |
563 | c7ec3025 | Iustin Pop | # hs-prof-quick does only the final rebuild (hs-prof must have been |
564 | c7ec3025 | Iustin Pop | # run before) |
565 | c7ec3025 | Iustin Pop | .PHONY: hs-prof hs-prof-quick |
566 | c7ec3025 | Iustin Pop | hs-prof: |
567 | c7ec3025 | Iustin Pop | $(MAKE) clean |
568 | c7ec3025 | Iustin Pop | $(MAKE) $(HS_ALL_PROGS) HEXTRA="-osuf .o" |
569 | c7ec3025 | Iustin Pop | rm -f $(HS_ALL_PROGS) |
570 | c7ec3025 | Iustin Pop | $(MAKE) hs-prof-quick |
571 | c7ec3025 | Iustin Pop | |
572 | c7ec3025 | Iustin Pop | hs-prof-quick: |
573 | c7ec3025 | Iustin Pop | $(MAKE) $(HS_ALL_PROGS) HEXTRA="-osuf .prof_o -prof -auto-all" |
574 | c7ec3025 | Iustin Pop | |
575 | da7e44ee | Michael Hanselmann | dist_sbin_SCRIPTS = \ |
576 | da7e44ee | Michael Hanselmann | tools/ganeti-listrunner |
577 | 4f3d5b76 | Michael Hanselmann | |
578 | fc3fd894 | Michael Hanselmann | nodist_sbin_SCRIPTS = \ |
579 | 0d2bf835 | René Nussbaumer | $(PYTHON_BOOTSTRAP_SBIN) \ |
580 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner |
581 | fc3fd894 | Michael Hanselmann | |
582 | 73b0fa69 | Iustin Pop | if HS_CONFD |
583 | 73b0fa69 | Iustin Pop | nodist_sbin_SCRIPTS += htools/hconfd |
584 | 73b0fa69 | Iustin Pop | endif |
585 | 73b0fa69 | Iustin Pop | |
586 | cc120286 | Bernardo Dal Seno | python_scripts = \ |
587 | e8230860 | Michael Hanselmann | tools/burnin \ |
588 | e8230860 | Michael Hanselmann | tools/cfgshell \ |
589 | e8230860 | Michael Hanselmann | tools/cfgupgrade \ |
590 | b5672ea0 | Iustin Pop | tools/cfgupgrade12 \ |
591 | 1f7d3f7d | René Nussbaumer | tools/cluster-merge \ |
592 | 4ef0399b | Iustin Pop | tools/confd-client \ |
593 | d62cbd3a | Michael Hanselmann | tools/fmtjson \ |
594 | ea5fd476 | Iustin Pop | tools/lvmstrap \ |
595 | 6bf273d5 | Michael Hanselmann | tools/move-instance \ |
596 | ced78a66 | Agata Murawska | tools/ovfconverter \ |
597 | 05cd934d | René Nussbaumer | tools/setup-ssh \ |
598 | ea5fd476 | Iustin Pop | tools/sanitize-config |
599 | e8230860 | Michael Hanselmann | |
600 | 61631293 | Stephen Shirley | dist_tools_SCRIPTS = \ |
601 | cc120286 | Bernardo Dal Seno | $(python_scripts) \ |
602 | 2f4c951e | Stephen Shirley | tools/kvm-console-wrapper \ |
603 | d9eefcfa | Andrea Spadaccini | tools/xm-console-wrapper \ |
604 | d9eefcfa | Andrea Spadaccini | tools/master-ip-setup |
605 | 61631293 | Stephen Shirley | |
606 | 2d76b580 | Michael Hanselmann | pkglib_python_scripts = \ |
607 | c6ccba7e | Michael Hanselmann | daemons/import-export \ |
608 | c6ccba7e | Michael Hanselmann | tools/check-cert-expired |
609 | 2d76b580 | Michael Hanselmann | |
610 | 0d2bf835 | René Nussbaumer | nodist_pkglib_python_scripts = \ |
611 | 0d2bf835 | René Nussbaumer | tools/ensure-dirs |
612 | 0d2bf835 | René Nussbaumer | |
613 | b8fe7ca6 | Iustin Pop | myexeclib_SCRIPTS = \ |
614 | 2d76b580 | Michael Hanselmann | daemons/daemon-util \ |
615 | 26916aad | Apollon Oikonomopoulos | tools/kvm-ifup \ |
616 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) |
617 | f154a7a3 | Michael Hanselmann | |
618 | b8fe7ca6 | Iustin Pop | nodist_myexeclib_SCRIPTS = \ |
619 | 0d2bf835 | René Nussbaumer | $(nodist_pkglib_python_scripts) |
620 | 0d2bf835 | René Nussbaumer | |
621 | e8230860 | Michael Hanselmann | EXTRA_DIST = \ |
622 | e8230860 | Michael Hanselmann | NEWS \ |
623 | 7a03d293 | Michael Hanselmann | UPGRADE \ |
624 | f774bd03 | Michael Hanselmann | epydoc.conf.in \ |
625 | 70c771f6 | Michael Hanselmann | pylintrc \ |
626 | bb46a96c | Michael Hanselmann | autotools/build-bash-completion \ |
627 | d5a2a550 | Michael Hanselmann | autotools/build-rpc \ |
628 | 5d3c30df | Michael Hanselmann | autotools/check-header \ |
629 | eed5c5df | Michael Hanselmann | autotools/check-python-code \ |
630 | f6cbcc06 | Michael Hanselmann | autotools/check-imports \ |
631 | c55cc346 | Iustin Pop | autotools/check-man-dashes \ |
632 | 73d0e218 | Iustin Pop | autotools/check-man-warnings \ |
633 | c81ed2b2 | Michael Hanselmann | autotools/check-news \ |
634 | e627fe09 | Michael Hanselmann | autotools/check-tar \ |
635 | 96602be4 | Michael Hanselmann | autotools/check-version \ |
636 | d99d1e36 | Iustin Pop | autotools/convert-constants \ |
637 | 95eb4188 | Michael Hanselmann | autotools/docpp \ |
638 | 27e336af | Michael Hanselmann | autotools/gen-coverage \ |
639 | df69e0a0 | Bernardo Dal Seno | autotools/testrunner \ |
640 | f3313af5 | Guido Trotter | $(RUN_IN_TEMPDIR) \ |
641 | f154a7a3 | Michael Hanselmann | daemons/daemon-util.in \ |
642 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner.in \ |
643 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
644 | e8230860 | Michael Hanselmann | devel/upload.in \ |
645 | 26916aad | Apollon Oikonomopoulos | tools/kvm-ifup.in \ |
646 | b8195800 | Iustin Pop | $(docdot) \ |
647 | f727d134 | Michael Hanselmann | $(docpng) \ |
648 | d17e74b4 | Iustin Pop | $(docrst) \ |
649 | d17e74b4 | Iustin Pop | doc/conf.py \ |
650 | d17e74b4 | Iustin Pop | doc/html \ |
651 | 656a7fdf | Iustin Pop | $(BUILT_EXAMPLES:%=%.in) \ |
652 | 752a8ca8 | Michael Hanselmann | doc/examples/ganeti.default \ |
653 | 752a8ca8 | Michael Hanselmann | doc/examples/ganeti.default-debug \ |
654 | d6d9ce45 | Guido Trotter | doc/examples/hooks/ethers \ |
655 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/README \ |
656 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/delay0.json \ |
657 | 89c04c2d | Guido Trotter | doc/examples/gnt-debug/delay50.json \ |
658 | e4d452b4 | Michael Hanselmann | test/lockperf.py \ |
659 | e8230860 | Michael Hanselmann | test/testutils.py \ |
660 | e8230860 | Michael Hanselmann | test/mocks.py \ |
661 | e8230860 | Michael Hanselmann | $(dist_TESTS) \ |
662 | e8230860 | Michael Hanselmann | $(TEST_FILES) \ |
663 | 6be8e2bf | Iustin Pop | man/footer.rst \ |
664 | 6be8e2bf | Iustin Pop | $(manrst) \ |
665 | f727d134 | Michael Hanselmann | $(maninput) \ |
666 | 39e0d19e | Michael Hanselmann | qa/qa-sample.json \ |
667 | d6159933 | Iustin Pop | $(qa_scripts) \ |
668 | c3f67183 | Iustin Pop | $(HS_LIB_SRCS) $(HS_BUILT_SRCS_IN) \ |
669 | 5a1e31b4 | Iustin Pop | $(HS_PROG_SRCS) \ |
670 | 04d15e63 | Iustin Pop | htools/lint-hints.hs \ |
671 | 04d15e63 | Iustin Pop | htools/cli-tests-defs.sh \ |
672 | 04d15e63 | Iustin Pop | htools/offline-test.sh |
673 | e8230860 | Michael Hanselmann | |
674 | e8230860 | Michael Hanselmann | man_MANS = \ |
675 | e8230860 | Michael Hanselmann | man/ganeti.7 \ |
676 | bae7e531 | Michael Hanselmann | man/ganeti-cleaner.8 \ |
677 | b7b7cda6 | Guido Trotter | man/ganeti-confd.8 \ |
678 | da7e44ee | Michael Hanselmann | man/ganeti-listrunner.8 \ |
679 | 320d986d | Iustin Pop | man/ganeti-masterd.8 \ |
680 | e8230860 | Michael Hanselmann | man/ganeti-noded.8 \ |
681 | e8230860 | Michael Hanselmann | man/ganeti-os-interface.7 \ |
682 | 320d986d | Iustin Pop | man/ganeti-rapi.8 \ |
683 | e8230860 | Michael Hanselmann | man/ganeti-watcher.8 \ |
684 | e8230860 | Michael Hanselmann | man/gnt-backup.8 \ |
685 | e8230860 | Michael Hanselmann | man/gnt-cluster.8 \ |
686 | d3b4cf9f | Iustin Pop | man/gnt-debug.8 \ |
687 | 667dbd6b | Adeodato Simo | man/gnt-group.8 \ |
688 | e8230860 | Michael Hanselmann | man/gnt-instance.8 \ |
689 | d3b4cf9f | Iustin Pop | man/gnt-job.8 \ |
690 | e8230860 | Michael Hanselmann | man/gnt-node.8 \ |
691 | 5a19bd35 | Iustin Pop | man/gnt-os.8 \ |
692 | 5a19bd35 | Iustin Pop | man/hail.1 \ |
693 | 5a19bd35 | Iustin Pop | man/hbal.1 \ |
694 | e2bdaf25 | René Nussbaumer | man/hinfo.1 \ |
695 | 5a19bd35 | Iustin Pop | man/hscan.1 \ |
696 | d26d808a | Iustin Pop | man/hspace.1 \ |
697 | d26d808a | Iustin Pop | man/htools.1 |
698 | e8230860 | Michael Hanselmann | |
699 | 5a19bd35 | Iustin Pop | manrst = $(patsubst %.1,%.rst,$(patsubst %.7,%.rst,$(patsubst %.8,%.rst,$(man_MANS)))) |
700 | 6be8e2bf | Iustin Pop | manhtml = $(patsubst %.rst,%.html,$(manrst)) |
701 | fcdb582d | Michael Hanselmann | mangen = $(patsubst %.rst,%.gen,$(manrst)) |
702 | 25c92bc5 | Michael Hanselmann | maninput = \ |
703 | 5a19bd35 | Iustin Pop | $(patsubst %.1,%.1.in,$(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS)))) \ |
704 | de8eea3e | Iustin Pop | $(patsubst %.html,%.html.in,$(manhtml)) \ |
705 | fcdb582d | Michael Hanselmann | man/footer.man man/footer.html $(mangen) |
706 | e8230860 | Michael Hanselmann | |
707 | e8230860 | Michael Hanselmann | TEST_FILES = \ |
708 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-8.0.txt \ |
709 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-8.3.txt \ |
710 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-disk.txt \ |
711 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-net-ip4.txt \ |
712 | 5a672c30 | Manuel Franceschini | test/data/bdev-drbd-net-ip6.txt \ |
713 | 27e46076 | Michael Hanselmann | test/data/cert1.pem \ |
714 | e5d1d1b5 | Andrea Spadaccini | test/data/ip-addr-show-dummy0.txt \ |
715 | e5d1d1b5 | Andrea Spadaccini | test/data/ip-addr-show-lo-ipv4.txt \ |
716 | e5d1d1b5 | Andrea Spadaccini | test/data/ip-addr-show-lo-ipv6.txt \ |
717 | e5d1d1b5 | Andrea Spadaccini | test/data/ip-addr-show-lo-oneline-ipv4.txt \ |
718 | e5d1d1b5 | Andrea Spadaccini | test/data/ip-addr-show-lo-oneline-ipv6.txt \ |
719 | e5d1d1b5 | Andrea Spadaccini | test/data/ip-addr-show-lo-oneline.txt \ |
720 | e5d1d1b5 | Andrea Spadaccini | test/data/ip-addr-show-lo.txt \ |
721 | d816408a | Iustin Pop | test/data/proc_drbd8.txt \ |
722 | a6ac80db | Iustin Pop | test/data/proc_drbd80-emptyline.txt \ |
723 | 2d76b580 | Michael Hanselmann | test/data/proc_drbd83.txt \ |
724 | 7a380ddf | René Nussbaumer | test/data/proc_drbd83_sync.txt \ |
725 | 7a380ddf | René Nussbaumer | test/data/proc_drbd83_sync_krnl2.6.39.txt \ |
726 | 585c8187 | Guido Trotter | test/data/kvm_1.0_help.txt \ |
727 | 585c8187 | Guido Trotter | test/data/kvm_0.15.90_help.txt \ |
728 | 585c8187 | Guido Trotter | test/data/kvm_0.12.5_help.txt \ |
729 | 585c8187 | Guido Trotter | test/data/kvm_0.9.1_help.txt \ |
730 | 549071a0 | Luca Bigliardi | test/data/sys_drbd_usermode_helper.txt \ |
731 | 6bbd76d2 | Iustin Pop | test/data/htools/hail-alloc-drbd.json \ |
732 | 6bbd76d2 | Iustin Pop | test/data/htools/hail-change-group.json \ |
733 | 3e5012c6 | Iustin Pop | test/data/htools/hail-invalid-reloc.json \ |
734 | 6bbd76d2 | Iustin Pop | test/data/htools/hail-node-evac.json \ |
735 | 6bbd76d2 | Iustin Pop | test/data/htools/hail-reloc-drbd.json \ |
736 | 9915fb20 | Iustin Pop | test/data/htools/common-suffix.data \ |
737 | 9915fb20 | Iustin Pop | test/data/htools/invalid-node.data \ |
738 | 9915fb20 | Iustin Pop | test/data/htools/missing-resources.data \ |
739 | 55ffacfa | Iustin Pop | test/data/htools/rapi/groups.json \ |
740 | 55ffacfa | Iustin Pop | test/data/htools/rapi/info.json \ |
741 | 55ffacfa | Iustin Pop | test/data/htools/rapi/instances.json \ |
742 | 55ffacfa | Iustin Pop | test/data/htools/rapi/nodes.json \ |
743 | 1e6fab60 | Agata Murawska | test/data/ovfdata/compr_disk.vmdk.gz \ |
744 | d92518d3 | Agata Murawska | test/data/ovfdata/config.ini \ |
745 | 1e6fab60 | Agata Murawska | test/data/ovfdata/corrupted_resources.ovf \ |
746 | d92518d3 | Agata Murawska | test/data/ovfdata/empty.ini \ |
747 | 1e6fab60 | Agata Murawska | test/data/ovfdata/empty.ovf \ |
748 | 1e6fab60 | Agata Murawska | test/data/ovfdata/ganeti.mf \ |
749 | 1e6fab60 | Agata Murawska | test/data/ovfdata/ganeti.ovf \ |
750 | 1e6fab60 | Agata Murawska | test/data/ovfdata/gzip_disk.ovf \ |
751 | 1e6fab60 | Agata Murawska | test/data/ovfdata/new_disk.vmdk \ |
752 | d92518d3 | Agata Murawska | test/data/ovfdata/no_disk.ini \ |
753 | 1e6fab60 | Agata Murawska | test/data/ovfdata/no_disk_in_ref.ovf \ |
754 | d92518d3 | Agata Murawska | test/data/ovfdata/no_os.ini \ |
755 | 1e6fab60 | Agata Murawska | test/data/ovfdata/no_ovf.ova \ |
756 | 1e6fab60 | Agata Murawska | test/data/ovfdata/ova.ova \ |
757 | 1e6fab60 | Agata Murawska | test/data/ovfdata/second_disk.vmdk \ |
758 | d92518d3 | Agata Murawska | test/data/ovfdata/rawdisk.raw \ |
759 | d92518d3 | Agata Murawska | test/data/ovfdata/unsafe_path.ini \ |
760 | 1e6fab60 | Agata Murawska | test/data/ovfdata/virtualbox.ovf \ |
761 | 1e6fab60 | Agata Murawska | test/data/ovfdata/wrong_extension.ovd \ |
762 | d92518d3 | Agata Murawska | test/data/ovfdata/wrong_config.ini \ |
763 | 1e6fab60 | Agata Murawska | test/data/ovfdata/wrong_manifest.mf \ |
764 | 1e6fab60 | Agata Murawska | test/data/ovfdata/wrong_manifest.ovf \ |
765 | 1e6fab60 | Agata Murawska | test/data/ovfdata/wrong_ova.ova \ |
766 | 1e6fab60 | Agata Murawska | test/data/ovfdata/wrong_xml.ovf \ |
767 | d92518d3 | Agata Murawska | test/data/ovfdata/other/rawdisk.raw \ |
768 | 1a1e7ab3 | Iustin Pop | test/data/vgreduce-removemissing-2.02.02.txt \ |
769 | 1a1e7ab3 | Iustin Pop | test/data/vgreduce-removemissing-2.02.66-fail.txt \ |
770 | 1a1e7ab3 | Iustin Pop | test/data/vgreduce-removemissing-2.02.66-ok.txt \ |
771 | 1a1e7ab3 | Iustin Pop | test/data/vgs-missing-pvs-2.02.02.txt \ |
772 | 1a1e7ab3 | Iustin Pop | test/data/vgs-missing-pvs-2.02.66.txt \ |
773 | 53d4cdf1 | Iustin Pop | test/import-export_unittest-helper \ |
774 | 30f2802f | Iustin Pop | test/gnt-cli.test \ |
775 | 30f2802f | Iustin Pop | test/ganeti-cli.test \ |
776 | 53d4cdf1 | Iustin Pop | test/htools-balancing.test \ |
777 | 53d4cdf1 | Iustin Pop | test/htools-basic.test \ |
778 | 53d4cdf1 | Iustin Pop | test/htools-dynutil.test \ |
779 | 53d4cdf1 | Iustin Pop | test/htools-excl.test \ |
780 | 53d4cdf1 | Iustin Pop | test/htools-hail.test \ |
781 | 53d4cdf1 | Iustin Pop | test/htools-hspace.test \ |
782 | 53d4cdf1 | Iustin Pop | test/htools-invalid.test \ |
783 | 53d4cdf1 | Iustin Pop | test/htools-multi-group.test \ |
784 | 53d4cdf1 | Iustin Pop | test/htools-no-backend.test \ |
785 | 53d4cdf1 | Iustin Pop | test/htools-rapi.test \ |
786 | 53d4cdf1 | Iustin Pop | test/htools-single-group.test \ |
787 | 53d4cdf1 | Iustin Pop | test/htools-text-backend.test |
788 | e8230860 | Michael Hanselmann | |
789 | e8c8cf1a | Michael Hanselmann | python_tests = \ |
790 | 3ade0e0e | Michael Hanselmann | doc/examples/rapi_testutils.py \ |
791 | 17496050 | Guido Trotter | test/ganeti.asyncnotifier_unittest.py \ |
792 | f942a838 | Michael Hanselmann | test/ganeti.backend_unittest.py \ |
793 | 6de7c41d | Iustin Pop | test/ganeti.bdev_unittest.py \ |
794 | 6de7c41d | Iustin Pop | test/ganeti.cli_unittest.py \ |
795 | 66d1f035 | René Nussbaumer | test/ganeti.client.gnt_cluster_unittest.py \ |
796 | 25ce3ec4 | Michael Hanselmann | test/ganeti.client.gnt_instance_unittest.py \ |
797 | 1118ec44 | Guido Trotter | test/ganeti.daemon_unittest.py \ |
798 | 6de7c41d | Iustin Pop | test/ganeti.cmdlib_unittest.py \ |
799 | cea881e5 | Michael Hanselmann | test/ganeti.compat_unittest.py \ |
800 | edf7d66e | Iustin Pop | test/ganeti.confd.client_unittest.py \ |
801 | e8230860 | Michael Hanselmann | test/ganeti.config_unittest.py \ |
802 | 6de7c41d | Iustin Pop | test/ganeti.constants_unittest.py \ |
803 | 3bd19c66 | Michael Hanselmann | test/ganeti.errors_unittest.py \ |
804 | e8230860 | Michael Hanselmann | test/ganeti.hooks_unittest.py \ |
805 | ecdf0398 | Michael Hanselmann | test/ganeti.ht_unittest.py \ |
806 | 6de7c41d | Iustin Pop | test/ganeti.http_unittest.py \ |
807 | b7d82e40 | Iustin Pop | test/ganeti.hypervisor_unittest.py \ |
808 | 55cc0a44 | Michael Hanselmann | test/ganeti.hypervisor.hv_chroot_unittest.py \ |
809 | 55cc0a44 | Michael Hanselmann | test/ganeti.hypervisor.hv_fake_unittest.py \ |
810 | 748e4b5a | Michael Hanselmann | test/ganeti.hypervisor.hv_kvm_unittest.py \ |
811 | 55cc0a44 | Michael Hanselmann | test/ganeti.hypervisor.hv_lxc_unittest.py \ |
812 | 55cc0a44 | Michael Hanselmann | test/ganeti.hypervisor.hv_xen_unittest.py \ |
813 | bb44b1ae | Michael Hanselmann | test/ganeti.impexpd_unittest.py \ |
814 | 989a8bee | Michael Hanselmann | test/ganeti.jqueue_unittest.py \ |
815 | e8230860 | Michael Hanselmann | test/ganeti.locking_unittest.py \ |
816 | 231db3a5 | Michael Hanselmann | test/ganeti.luxi_unittest.py \ |
817 | 033a1d00 | Michael Hanselmann | test/ganeti.masterd.instance_unittest.py \ |
818 | 407339d0 | Michael Hanselmann | test/ganeti.mcpu_unittest.py \ |
819 | a744b676 | Manuel Franceschini | test/ganeti.netutils_unittest.py \ |
820 | 4c14965f | Guido Trotter | test/ganeti.objects_unittest.py \ |
821 | c32b908e | Michael Hanselmann | test/ganeti.opcodes_unittest.py \ |
822 | 1e6fab60 | Agata Murawska | test/ganeti.ovf_unittest.py \ |
823 | a123dc19 | Michael Hanselmann | test/ganeti.qlang_unittest.py \ |
824 | 4ca96421 | Michael Hanselmann | test/ganeti.query_unittest.py \ |
825 | cfaeaaf7 | Michael Hanselmann | test/ganeti.rapi.baserlib_unittest.py \ |
826 | 95ab4de9 | David Knowles | test/ganeti.rapi.client_unittest.py \ |
827 | 4cbd4462 | Oleksiy Mishchenko | test/ganeti.rapi.resources_unittest.py \ |
828 | 6395cebb | Michael Hanselmann | test/ganeti.rapi.rlib2_unittest.py \ |
829 | a85f23fa | Michael Hanselmann | test/ganeti.rapi.testutils_unittest.py \ |
830 | 33231500 | Michael Hanselmann | test/ganeti.rpc_unittest.py \ |
831 | f12e1736 | René Nussbaumer | test/ganeti.runtime_unittest.py \ |
832 | 6de7c41d | Iustin Pop | test/ganeti.serializer_unittest.py \ |
833 | 6de7c41d | Iustin Pop | test/ganeti.ssh_unittest.py \ |
834 | 048eeb2b | Iustin Pop | test/ganeti.storage_unittest.py \ |
835 | 0d2bf835 | René Nussbaumer | test/ganeti.tools.ensure_dirs_unittest.py \ |
836 | 93be53da | Balazs Lecz | test/ganeti.uidpool_unittest.py \ |
837 | 4fd029cf | Michael Hanselmann | test/ganeti.utils.algo_unittest.py \ |
838 | 9d1b963f | Michael Hanselmann | test/ganeti.utils.filelock_unittest.py \ |
839 | f21bb4b7 | Michael Hanselmann | test/ganeti.utils.hash_unittest.py \ |
840 | 3865ca48 | Michael Hanselmann | test/ganeti.utils.io_unittest.py \ |
841 | b6fa9a44 | Michael Hanselmann | test/ganeti.utils.log_unittest.py \ |
842 | 8dc76d54 | Guido Trotter | test/ganeti.utils.mlock_unittest.py \ |
843 | 17b97ab3 | Michael Hanselmann | test/ganeti.utils.nodesetup_unittest.py \ |
844 | a4ccecf6 | Michael Hanselmann | test/ganeti.utils.process_unittest.py \ |
845 | 79d22269 | Michael Hanselmann | test/ganeti.utils.retry_unittest.py \ |
846 | 7fcffe27 | Michael Hanselmann | test/ganeti.utils.text_unittest.py \ |
847 | 7831fc5f | Michael Hanselmann | test/ganeti.utils.wrapper_unittest.py \ |
848 | c50645c0 | Michael Hanselmann | test/ganeti.utils.x509_unittest.py \ |
849 | 4fd029cf | Michael Hanselmann | test/ganeti.utils_unittest.py \ |
850 | 3f991867 | Michael Hanselmann | test/ganeti.workerpool_unittest.py \ |
851 | a0c3e726 | Michael Hanselmann | test/qa.qa_config_unittest.py \ |
852 | aefbe369 | Michael Hanselmann | test/cfgupgrade_unittest.py \ |
853 | 055f822b | Michael Hanselmann | test/docs_unittest.py \ |
854 | 4fd2660d | Michael Hanselmann | test/pycurl_reset_unittest.py \ |
855 | 055f822b | Michael Hanselmann | test/tempfile_fork_unittest.py |
856 | 0d20cc42 | Bernardo Dal Seno | if HAS_FAKEROOT |
857 | 0d20cc42 | Bernardo Dal Seno | python_tests += test/ganeti.utils.io_unittest-runasroot.py |
858 | 0d20cc42 | Bernardo Dal Seno | endif |
859 | e8230860 | Michael Hanselmann | |
860 | b91e9518 | Iustin Pop | haskell_tests = htools/test |
861 | b91e9518 | Iustin Pop | |
862 | e8c8cf1a | Michael Hanselmann | dist_TESTS = \ |
863 | 7172f605 | Michael Hanselmann | test/check-cert-expired_unittest.bash \ |
864 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash \ |
865 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash \ |
866 | 2d76b580 | Michael Hanselmann | test/import-export_unittest.bash \ |
867 | 30f2802f | Iustin Pop | test/cli-test.bash \ |
868 | e8c8cf1a | Michael Hanselmann | $(python_tests) |
869 | e8c8cf1a | Michael Hanselmann | |
870 | e8230860 | Michael Hanselmann | nodist_TESTS = |
871 | d3cd5a3f | Iustin Pop | check_SCRIPTS = |
872 | d3cd5a3f | Iustin Pop | |
873 | e5f6768c | Iustin Pop | if WANT_HTOOLSTESTS |
874 | b91e9518 | Iustin Pop | nodist_TESTS += $(haskell_tests) |
875 | 04d15e63 | Iustin Pop | dist_TESTS += htools/offline-test.sh |
876 | 3096524e | Iustin Pop | check_SCRIPTS += htools/hpc-htools $(HS_BUILT_TEST_HELPERS) |
877 | b91e9518 | Iustin Pop | endif |
878 | e8230860 | Michael Hanselmann | |
879 | e8230860 | Michael Hanselmann | TESTS = $(dist_TESTS) $(nodist_TESTS) |
880 | e8230860 | Michael Hanselmann | |
881 | 27e336af | Michael Hanselmann | # Environment for all tests |
882 | 27e336af | Michael Hanselmann | PLAIN_TESTS_ENVIRONMENT = \ |
883 | 30f2802f | Iustin Pop | PYTHONPATH=. \ |
884 | 30f2802f | Iustin Pop | TOP_SRCDIR=$(abs_top_srcdir) TOP_BUILDDIR=$(abs_top_builddir) \ |
885 | 30f2802f | Iustin Pop | PYTHON=$(PYTHON) FAKEROOT=$(FAKEROOT_PATH) \ |
886 | 30f2802f | Iustin Pop | $(RUN_IN_TEMPDIR) |
887 | 27e336af | Michael Hanselmann | |
888 | 27e336af | Michael Hanselmann | # Environment for tests run by automake |
889 | f848ac00 | Michael Hanselmann | TESTS_ENVIRONMENT = \ |
890 | e8c8cf1a | Michael Hanselmann | $(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/testrunner |
891 | 6e06b36c | Iustin Pop | |
892 | eed5c5df | Michael Hanselmann | all_python_code = \ |
893 | 01a3a718 | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
894 | cc120286 | Bernardo Dal Seno | $(python_scripts) \ |
895 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
896 | 0d2bf835 | René Nussbaumer | $(nodist_pkglib_python_scripts) \ |
897 | e8c8cf1a | Michael Hanselmann | $(python_tests) \ |
898 | 01a3a718 | Michael Hanselmann | $(pkgpython_PYTHON) \ |
899 | 2d48a3a2 | Michael Hanselmann | $(client_PYTHON) \ |
900 | 01a3a718 | Michael Hanselmann | $(hypervisor_PYTHON) \ |
901 | 01a3a718 | Michael Hanselmann | $(rapi_PYTHON) \ |
902 | 899c4d2c | Michael Hanselmann | $(server_PYTHON) \ |
903 | 0d2bf835 | René Nussbaumer | $(pytools_PYTHON) \ |
904 | 01a3a718 | Michael Hanselmann | $(http_PYTHON) \ |
905 | 01a3a718 | Michael Hanselmann | $(confd_PYTHON) \ |
906 | dc101ecc | Michael Hanselmann | $(masterd_PYTHON) \ |
907 | bb44b1ae | Michael Hanselmann | $(impexpd_PYTHON) \ |
908 | c047a981 | Michael Hanselmann | $(utils_PYTHON) \ |
909 | 9f4bb951 | Michael Hanselmann | $(watcher_PYTHON) \ |
910 | a8c68e44 | Michael Hanselmann | $(noinst_PYTHON) \ |
911 | a8c68e44 | Michael Hanselmann | $(qa_scripts) |
912 | 01a3a718 | Michael Hanselmann | |
913 | eed5c5df | Michael Hanselmann | srclink_files = \ |
914 | 6be8e2bf | Iustin Pop | man/footer.rst \ |
915 | 7172f605 | Michael Hanselmann | test/check-cert-expired_unittest.bash \ |
916 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash \ |
917 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash \ |
918 | 2d76b580 | Michael Hanselmann | test/import-export_unittest.bash \ |
919 | 30f2802f | Iustin Pop | test/cli-test.bash \ |
920 | 04d15e63 | Iustin Pop | htools/offline-test.sh \ |
921 | d3cd5a3f | Iustin Pop | htools/cli-tests-defs.sh \ |
922 | d6159933 | Iustin Pop | $(all_python_code) \ |
923 | c3f67183 | Iustin Pop | $(HS_LIB_SRCS) $(HS_PROG_SRCS) |
924 | eed5c5df | Michael Hanselmann | |
925 | eed5c5df | Michael Hanselmann | check_python_code = \ |
926 | e4e7c7df | Michael Hanselmann | $(BUILD_BASH_COMPLETION) \ |
927 | f6cbcc06 | Michael Hanselmann | $(CHECK_IMPORTS) \ |
928 | 5d3c30df | Michael Hanselmann | $(CHECK_HEADER) \ |
929 | 95eb4188 | Michael Hanselmann | $(DOCPP) \ |
930 | eed5c5df | Michael Hanselmann | $(all_python_code) |
931 | eed5c5df | Michael Hanselmann | |
932 | e4e7c7df | Michael Hanselmann | lint_python_code = \ |
933 | f60d352e | Michael Hanselmann | ganeti \ |
934 | f1763373 | Iustin Pop | ganeti/http/server.py \ |
935 | f60d352e | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
936 | cc120286 | Bernardo Dal Seno | $(python_scripts) \ |
937 | 2d76b580 | Michael Hanselmann | $(pkglib_python_scripts) \ |
938 | 2cc8bdd0 | Michael Hanselmann | $(BUILD_BASH_COMPLETION) \ |
939 | f6cbcc06 | Michael Hanselmann | $(CHECK_IMPORTS) \ |
940 | 5d3c30df | Michael Hanselmann | $(CHECK_HEADER) \ |
941 | 95eb4188 | Michael Hanselmann | $(DOCPP) \ |
942 | 2cc8bdd0 | Michael Hanselmann | $(PYTHON_BOOTSTRAP) |
943 | eed5c5df | Michael Hanselmann | |
944 | f6cbcc06 | Michael Hanselmann | standalone_python_modules = \ |
945 | f6cbcc06 | Michael Hanselmann | lib/rapi/client.py \ |
946 | f6cbcc06 | Michael Hanselmann | tools/ganeti-listrunner |
947 | f6cbcc06 | Michael Hanselmann | |
948 | 21bf2e2e | Andrea Spadaccini | pep8_python_code = \ |
949 | 21bf2e2e | Andrea Spadaccini | ganeti \ |
950 | 21bf2e2e | Andrea Spadaccini | ganeti/http/server.py \ |
951 | 21bf2e2e | Andrea Spadaccini | $(dist_sbin_SCRIPTS) \ |
952 | cc120286 | Bernardo Dal Seno | $(python_scripts) \ |
953 | 21bf2e2e | Andrea Spadaccini | $(pkglib_python_scripts) \ |
954 | 21bf2e2e | Andrea Spadaccini | $(BUILD_BASH_COMPLETION) \ |
955 | 5d3c30df | Michael Hanselmann | $(CHECK_HEADER) \ |
956 | 21bf2e2e | Andrea Spadaccini | $(DOCPP) \ |
957 | 21bf2e2e | Andrea Spadaccini | $(PYTHON_BOOTSTRAP) \ |
958 | 21bf2e2e | Andrea Spadaccini | qa |
959 | 21bf2e2e | Andrea Spadaccini | |
960 | 571b34f8 | Michael Hanselmann | test/daemon-util_unittest.bash: daemons/daemon-util |
961 | 571b34f8 | Michael Hanselmann | |
962 | 7172f605 | Michael Hanselmann | test/ganeti-cleaner_unittest.bash: daemons/ganeti-cleaner |
963 | 7172f605 | Michael Hanselmann | |
964 | 26916aad | Apollon Oikonomopoulos | tools/kvm-ifup: tools/kvm-ifup.in $(REPLACE_VARS_SED) |
965 | 26916aad | Apollon Oikonomopoulos | sed -f $(REPLACE_VARS_SED) < $< > $@ |
966 | 26916aad | Apollon Oikonomopoulos | chmod +x $@ |
967 | 26916aad | Apollon Oikonomopoulos | |
968 | dbefcc7e | Michael Hanselmann | devel/upload: devel/upload.in $(REPLACE_VARS_SED) |
969 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
970 | e8230860 | Michael Hanselmann | chmod u+x $@ |
971 | e8230860 | Michael Hanselmann | |
972 | c964d962 | Michael Hanselmann | daemons/%: daemons/%.in $(REPLACE_VARS_SED) |
973 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
974 | 5c566e17 | Michael Hanselmann | chmod +x $@ |
975 | e8230860 | Michael Hanselmann | |
976 | c964d962 | Michael Hanselmann | doc/examples/%: doc/examples/%.in $(REPLACE_VARS_SED) |
977 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
978 | e8230860 | Michael Hanselmann | |
979 | c964d962 | Michael Hanselmann | doc/examples/hooks/%: doc/examples/hooks/%.in $(REPLACE_VARS_SED) |
980 | a2442bf9 | Luca Bigliardi | sed -f $(REPLACE_VARS_SED) < $< > $@ |
981 | a2442bf9 | Luca Bigliardi | |
982 | b959138f | Michael Hanselmann | doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \ |
983 | 88a6ca6f | Michael Hanselmann | lib/cli.py $(gnt_scripts) $(client_PYTHON) tools/burnin |
984 | b959138f | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@ |
985 | 4f3d5b76 | Michael Hanselmann | |
986 | f86e82ef | Iustin Pop | doc/%.png: doc/%.dot |
987 | 2ab2b9f5 | Iustin Pop | @test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; } |
988 | f86e82ef | Iustin Pop | $(DOT) -Tpng -o $@ $< |
989 | f86e82ef | Iustin Pop | |
990 | de8eea3e | Iustin Pop | man/footer.man: man/footer.rst |
991 | de8eea3e | Iustin Pop | @test -n "$(PANDOC)" || \ |
992 | de8eea3e | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
993 | de8eea3e | Iustin Pop | $(PANDOC) -f rst -t man -o $@ $< |
994 | de8eea3e | Iustin Pop | |
995 | 6be8e2bf | Iustin Pop | man/footer.html: man/footer.rst |
996 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
997 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
998 | 6be8e2bf | Iustin Pop | $(PANDOC) -f rst -t html -o $@ $< |
999 | 6be8e2bf | Iustin Pop | |
1000 | 7142485a | Iustin Pop | man/%.gen: man/%.rst lib/query.py lib/build/sphinx_ext.py \ |
1001 | 7142485a | Iustin Pop | lib/build/shell_example_lexer.py |
1002 | fcdb582d | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(DOCPP) < $< > $@ |
1003 | fcdb582d | Michael Hanselmann | |
1004 | 5a19bd35 | Iustin Pop | man/%.7.in man/%.8.in man/%.1.in: man/%.gen man/footer.man |
1005 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
1006 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
1007 | a01dd3c6 | Iustin Pop | set -o pipefail ; \ |
1008 | 9c45babb | Iustin Pop | trap 'echo auto-removing $@; rm $@' EXIT; \ |
1009 | 6be8e2bf | Iustin Pop | $(PANDOC) -s -f rst -t man -A man/footer.man $< | \ |
1010 | 9c45babb | Iustin Pop | sed -e 's/\\@/@/g' > $@; \ |
1011 | 73d0e218 | Iustin Pop | if test -n "$(MAN_HAS_WARNINGS)"; then $(CHECK_MAN_WARNINGS) $@; fi; \ |
1012 | c55cc346 | Iustin Pop | $(CHECK_MAN_DASHES) $@; \ |
1013 | 9c45babb | Iustin Pop | trap - EXIT |
1014 | 9c45babb | Iustin Pop | |
1015 | 2ab2b9f5 | Iustin Pop | |
1016 | fcdb582d | Michael Hanselmann | man/%.html.in: man/%.gen man/footer.html |
1017 | 6be8e2bf | Iustin Pop | @test -n "$(PANDOC)" || \ |
1018 | 6be8e2bf | Iustin Pop | { echo 'pandoc' not found during configure; exit 1; } |
1019 | a01dd3c6 | Iustin Pop | set -o pipefail ; \ |
1020 | 6be8e2bf | Iustin Pop | $(PANDOC) -s -f rst -t html -A man/footer.html $< | \ |
1021 | 6be8e2bf | Iustin Pop | sed -e 's/\\@/@/g' > $@ |
1022 | 6be8e2bf | Iustin Pop | |
1023 | 5a19bd35 | Iustin Pop | man/%.1: man/%.1.in $(REPLACE_VARS_SED) |
1024 | 5a19bd35 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
1025 | 5a19bd35 | Iustin Pop | |
1026 | dbefcc7e | Michael Hanselmann | man/%.7: man/%.7.in $(REPLACE_VARS_SED) |
1027 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
1028 | e8230860 | Michael Hanselmann | |
1029 | dbefcc7e | Michael Hanselmann | man/%.8: man/%.8.in $(REPLACE_VARS_SED) |
1030 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
1031 | e8230860 | Michael Hanselmann | |
1032 | dbefcc7e | Michael Hanselmann | man/%.html: man/%.html.in $(REPLACE_VARS_SED) |
1033 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
1034 | f29266b4 | Iustin Pop | |
1035 | 75f76703 | Michael Hanselmann | epydoc.conf: epydoc.conf.in Makefile |
1036 | 75f76703 | Michael Hanselmann | sed -e 's#@MODULES@#$(strip $(lint_python_code))#g' < $< > $@ |
1037 | f774bd03 | Michael Hanselmann | |
1038 | 84a12e40 | Iustin Pop | vcs-version: |
1039 | 84a12e40 | Iustin Pop | if test -d .git; then \ |
1040 | 84a12e40 | Iustin Pop | git describe > $@; \ |
1041 | 84a12e40 | Iustin Pop | elif test ! -f $@ ; then \ |
1042 | 84a12e40 | Iustin Pop | echo "Cannot auto-generate $@ file"; exit 1; \ |
1043 | 84a12e40 | Iustin Pop | fi |
1044 | 84a12e40 | Iustin Pop | |
1045 | 84a12e40 | Iustin Pop | .PHONY: regen-vcs-version |
1046 | 84a12e40 | Iustin Pop | regen-vcs-version: |
1047 | e8230860 | Michael Hanselmann | set -e; \ |
1048 | 84a12e40 | Iustin Pop | cd $(srcdir); \ |
1049 | 84a12e40 | Iustin Pop | if test -d .git; then \ |
1050 | 84a12e40 | Iustin Pop | rm -f vcs-version; \ |
1051 | 84a12e40 | Iustin Pop | $(MAKE) vcs-version; \ |
1052 | 84a12e40 | Iustin Pop | fi |
1053 | 84a12e40 | Iustin Pop | |
1054 | d6159933 | Iustin Pop | htools/Ganeti/HTools/Version.hs: htools/Ganeti/HTools/Version.hs.in vcs-version |
1055 | d6159933 | Iustin Pop | set -e; \ |
1056 | d6159933 | Iustin Pop | VCSVER=`cat $(abs_top_srcdir)/vcs-version`; \ |
1057 | d6159933 | Iustin Pop | sed -e "s/%ver%/$$VCSVER/" < $< > $@ |
1058 | d6159933 | Iustin Pop | |
1059 | d99d1e36 | Iustin Pop | htools/Ganeti/Constants.hs: htools/Ganeti/Constants.hs.in \ |
1060 | f11e524b | Iustin Pop | lib/constants.py lib/_autoconf.py lib/luxi.py \ |
1061 | f11e524b | Iustin Pop | $(CONVERT_CONSTANTS) \ |
1062 | ef958f2a | Iustin Pop | | lib/_vcsversion.py |
1063 | 11fd5a86 | Iustin Pop | set -e; \ |
1064 | 876f6a5e | Iustin Pop | { cat $< ; PYTHONPATH=. $(CONVERT_CONSTANTS); } > $@ |
1065 | d99d1e36 | Iustin Pop | |
1066 | 13aeae6a | Iustin Pop | lib/_autoconf.py: Makefile | lib/.dir |
1067 | 84a12e40 | Iustin Pop | set -e; \ |
1068 | e8230860 | Michael Hanselmann | { echo '# This file is automatically generated, do not edit!'; \ |
1069 | e8230860 | Michael Hanselmann | echo '#'; \ |
1070 | 67047322 | Iustin Pop | echo ''; \ |
1071 | 67047322 | Iustin Pop | echo '"""Build-time configuration for Ganeti.'; \ |
1072 | 67047322 | Iustin Pop | echo '';\ |
1073 | 67047322 | Iustin Pop | echo 'This file is autogenerated by the build process.'; \ |
1074 | 67047322 | Iustin Pop | echo 'For any changes you need to re-run ./configure (and'; \ |
1075 | 67047322 | Iustin Pop | echo 'not edit by hand).'; \ |
1076 | 67047322 | Iustin Pop | echo ''; \ |
1077 | 67047322 | Iustin Pop | echo '"""'; \ |
1078 | 67047322 | Iustin Pop | echo ''; \ |
1079 | 55766d34 | Andrea Spadaccini | echo '# pylint: disable=C0301,C0324'; \ |
1080 | 0a4e7f24 | Iustin Pop | echo '# because this is autogenerated, we do not want'; \ |
1081 | 0a4e7f24 | Iustin Pop | echo '# style warnings' ; \ |
1082 | 0a4e7f24 | Iustin Pop | echo ''; \ |
1083 | e8230860 | Michael Hanselmann | echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \ |
1084 | e8230860 | Michael Hanselmann | echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \ |
1085 | e8230860 | Michael Hanselmann | echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \ |
1086 | e8230860 | Michael Hanselmann | echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \ |
1087 | e8230860 | Michael Hanselmann | echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \ |
1088 | e8230860 | Michael Hanselmann | echo "VERSION_FULL = '$(VERSION_FULL)'"; \ |
1089 | e8230860 | Michael Hanselmann | echo "LOCALSTATEDIR = '$(localstatedir)'"; \ |
1090 | e8230860 | Michael Hanselmann | echo "SYSCONFDIR = '$(sysconfdir)'"; \ |
1091 | 553bd93f | Vitaly Kuznetsov | echo "SSH_CONFIG_DIR = '$(SSH_CONFIG_DIR)'"; \ |
1092 | e8230860 | Michael Hanselmann | echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \ |
1093 | e8230860 | Michael Hanselmann | echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \ |
1094 | 2f2dbb4b | Jun Futagawa | echo "XEN_BOOTLOADER = '$(XEN_BOOTLOADER)'"; \ |
1095 | e8230860 | Michael Hanselmann | echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \ |
1096 | e8230860 | Michael Hanselmann | echo "XEN_INITRD = '$(XEN_INITRD)'"; \ |
1097 | b8203e1e | Iustin Pop | echo "KVM_KERNEL = '$(KVM_KERNEL)'"; \ |
1098 | e8230860 | Michael Hanselmann | echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \ |
1099 | cb7c0198 | Iustin Pop | echo "ENABLE_FILE_STORAGE = $(ENABLE_FILE_STORAGE)"; \ |
1100 | 4b97f902 | Apollon Oikonomopoulos | echo "SHARED_FILE_STORAGE_DIR = '$(SHARED_FILE_STORAGE_DIR)'"; \ |
1101 | 4b97f902 | Apollon Oikonomopoulos | echo "ENABLE_SHARED_FILE_STORAGE = $(ENABLE_SHARED_FILE_STORAGE)"; \ |
1102 | e8230860 | Michael Hanselmann | echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \ |
1103 | 7e2c5b9e | Guido Trotter | echo "KVM_PATH = '$(KVM_PATH)'"; \ |
1104 | c4dfb0b6 | Andrea Spadaccini | echo "IP_PATH = '$(IP_PATH)'"; \ |
1105 | fe5b0c42 | Michael Hanselmann | echo "SOCAT_PATH = '$(SOCAT)'"; \ |
1106 | fe5b0c42 | Michael Hanselmann | echo "SOCAT_USE_ESCAPE = $(SOCAT_USE_ESCAPE)"; \ |
1107 | e90739d6 | Michael Hanselmann | echo "SOCAT_USE_COMPRESS = $(SOCAT_USE_COMPRESS)"; \ |
1108 | bea60381 | Michael Hanselmann | echo "LVM_STRIPECOUNT = $(LVM_STRIPECOUNT)"; \ |
1109 | bea60381 | Michael Hanselmann | echo "TOOLSDIR = '$(toolsdir)'"; \ |
1110 | 4f3d5b76 | Michael Hanselmann | echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \ |
1111 | f154a7a3 | Michael Hanselmann | echo "PKGLIBDIR = '$(pkglibdir)'"; \ |
1112 | 8a69b3a8 | Andrea Spadaccini | echo "DRBD_BARRIERS = '$(DRBD_BARRIERS)'"; \ |
1113 | 8a69b3a8 | Andrea Spadaccini | echo "DRBD_NO_META_FLUSH = $(DRBD_NO_META_FLUSH)"; \ |
1114 | 551b6283 | Iustin Pop | echo "SYSLOG_USAGE = '$(SYSLOG_USAGE)'"; \ |
1115 | 8b72b05c | René Nussbaumer | echo "DAEMONS_GROUP = '$(DAEMONS_GROUP)'"; \ |
1116 | f12e1736 | René Nussbaumer | echo "ADMIN_GROUP = '$(ADMIN_GROUP)'"; \ |
1117 | 8b72b05c | René Nussbaumer | echo "MASTERD_USER = '$(MASTERD_USER)'"; \ |
1118 | f12e1736 | René Nussbaumer | echo "MASTERD_GROUP = '$(MASTERD_GROUP)'"; \ |
1119 | 8b72b05c | René Nussbaumer | echo "RAPI_USER = '$(RAPI_USER)'"; \ |
1120 | f12e1736 | René Nussbaumer | echo "RAPI_GROUP = '$(RAPI_GROUP)'"; \ |
1121 | f12e1736 | René Nussbaumer | echo "CONFD_USER = '$(CONFD_USER)'"; \ |
1122 | f12e1736 | René Nussbaumer | echo "CONFD_GROUP = '$(CONFD_GROUP)'"; \ |
1123 | f12e1736 | René Nussbaumer | echo "NODED_USER = '$(NODED_USER)'"; \ |
1124 | 03881cb0 | René Nussbaumer | echo "NODED_GROUP = '$(NODED_GROUP)'"; \ |
1125 | 3536c792 | Iustin Pop | echo "DISK_SEPARATOR = '$(DISK_SEPARATOR)'"; \ |
1126 | a002ed79 | Agata Murawska | echo "QEMUIMG_PATH = '$(QEMUIMG_PATH)'"; \ |
1127 | e5395072 | Iustin Pop | if [ "$(HTOOLS)" ]; then \ |
1128 | e5395072 | Iustin Pop | echo "HTOOLS = True"; \ |
1129 | e5395072 | Iustin Pop | else \ |
1130 | e5395072 | Iustin Pop | echo "HTOOLS = False"; \ |
1131 | e5395072 | Iustin Pop | fi; \ |
1132 | cd8b0072 | Iustin Pop | echo "ENABLE_CONFD = $(ENABLE_CONFD)"; \ |
1133 | 73b0fa69 | Iustin Pop | echo "PY_CONFD = $(PY_CONFD)"; \ |
1134 | 73b0fa69 | Iustin Pop | echo "HS_CONFD = $(HS_CONFD)"; \ |
1135 | e8230860 | Michael Hanselmann | } > $@ |
1136 | e8230860 | Michael Hanselmann | |
1137 | 13aeae6a | Iustin Pop | lib/_vcsversion.py: Makefile vcs-version | lib/.dir |
1138 | 13aeae6a | Iustin Pop | set -e; \ |
1139 | 13aeae6a | Iustin Pop | VCSVER=`cat $(abs_top_srcdir)/vcs-version`; \ |
1140 | 13aeae6a | Iustin Pop | { echo '# This file is automatically generated, do not edit!'; \ |
1141 | 13aeae6a | Iustin Pop | echo '#'; \ |
1142 | 13aeae6a | Iustin Pop | echo ''; \ |
1143 | 13aeae6a | Iustin Pop | echo '"""Build-time VCS version number for Ganeti.'; \ |
1144 | 13aeae6a | Iustin Pop | echo '';\ |
1145 | 13aeae6a | Iustin Pop | echo 'This file is autogenerated by the build process.'; \ |
1146 | 13aeae6a | Iustin Pop | echo 'For any changes you need to re-run ./configure (and'; \ |
1147 | 13aeae6a | Iustin Pop | echo 'not edit by hand).'; \ |
1148 | 13aeae6a | Iustin Pop | echo ''; \ |
1149 | 13aeae6a | Iustin Pop | echo '"""'; \ |
1150 | 13aeae6a | Iustin Pop | echo ''; \ |
1151 | 55766d34 | Andrea Spadaccini | echo '# pylint: disable=C0301,C0324'; \ |
1152 | 13aeae6a | Iustin Pop | echo '# because this is autogenerated, we do not want'; \ |
1153 | 13aeae6a | Iustin Pop | echo '# style warnings' ; \ |
1154 | 13aeae6a | Iustin Pop | echo ''; \ |
1155 | 13aeae6a | Iustin Pop | echo "VCS_VERSION = '$$VCSVER'"; \ |
1156 | 13aeae6a | Iustin Pop | } > $@ |
1157 | 13aeae6a | Iustin Pop | |
1158 | 96a7481d | Michael Hanselmann | lib/_generated_rpc.py: lib/rpc_defs.py $(BUILD_RPC) |
1159 | 96a7481d | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_RPC) lib/rpc_defs.py > $@ |
1160 | d5a2a550 | Michael Hanselmann | |
1161 | dbefcc7e | Michael Hanselmann | $(REPLACE_VARS_SED): Makefile |
1162 | e8230860 | Michael Hanselmann | set -e; \ |
1163 | e8230860 | Michael Hanselmann | { echo 's#@PREFIX@#$(prefix)#g'; \ |
1164 | e8230860 | Michael Hanselmann | echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ |
1165 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
1166 | 7a2ba406 | Luca Bigliardi | echo 's#@BINDIR@#$(bindir)#g'; \ |
1167 | e8230860 | Michael Hanselmann | echo 's#@SBINDIR@#$(sbindir)#g'; \ |
1168 | e8230860 | Michael Hanselmann | echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \ |
1169 | 2f2dbb4b | Jun Futagawa | echo 's#@CUSTOM_XEN_BOOTLOADER@#$(XEN_BOOTLOADER)#g'; \ |
1170 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \ |
1171 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \ |
1172 | 56956bcb | Iustin Pop | echo 's#@CUSTOM_IALLOCATOR_SEARCH_PATH@#$(IALLOCATOR_SEARCH_PATH)#g'; \ |
1173 | 56956bcb | Iustin Pop | echo 's#@CUSTOM_EXPORT_DIR@#$(EXPORT_DIR)#g'; \ |
1174 | d3b4cf9f | Iustin Pop | echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \ |
1175 | 7e1fac25 | Michael Hanselmann | echo 's#@RPL_SSH_INITD_SCRIPT@#$(SSH_INITD_SCRIPT)#g'; \ |
1176 | c5159571 | Iustin Pop | echo 's#@PKGLIBDIR@#$(pkglibdir)#g'; \ |
1177 | 0d150c50 | René Nussbaumer | echo 's#@GNTMASTERUSER@#$(MASTERD_USER)#g'; \ |
1178 | 0d150c50 | René Nussbaumer | echo 's#@GNTRAPIUSER@#$(RAPI_USER)#g'; \ |
1179 | 0d150c50 | René Nussbaumer | echo 's#@GNTCONFDUSER@#$(CONFD_USER)#g'; \ |
1180 | 0d150c50 | René Nussbaumer | echo 's#@GNTNODEDUSER@#$(NODED_USER)#g'; \ |
1181 | 0d150c50 | René Nussbaumer | echo 's#@GNTRAPIGROUP@#$(RAPI_GROUP)#g'; \ |
1182 | 0d150c50 | René Nussbaumer | echo 's#@GNTADMINGROUP@#$(ADMIN_GROUP)#g'; \ |
1183 | 0d150c50 | René Nussbaumer | echo 's#@GNTCONFDGROUP@#$(CONFD_GROUP)#g'; \ |
1184 | 0d150c50 | René Nussbaumer | echo 's#@GNTMASTERDGROUP@#$(MASTERD_GROUP)#g'; \ |
1185 | 46a8da3b | René Nussbaumer | echo 's#@GNTDAEMONSGROUP@#$(DAEMONS_GROUP)#g'; \ |
1186 | cd8b0072 | Iustin Pop | echo 's#@CUSTOM_ENABLE_CONFD@#$(ENABLE_CONFD)#g'; \ |
1187 | e8230860 | Michael Hanselmann | } > $@ |
1188 | e8230860 | Michael Hanselmann | |
1189 | 67313146 | Michael Hanselmann | # Using deferred evaluation |
1190 | 899c4d2c | Michael Hanselmann | daemons/ganeti-%: MODULE = ganeti.server.$(patsubst ganeti-%,%,$(notdir $@)) |
1191 | 9f4bb951 | Michael Hanselmann | daemons/ganeti-watcher: MODULE = ganeti.watcher |
1192 | 67313146 | Michael Hanselmann | scripts/%: MODULE = ganeti.client.$(subst -,_,$(notdir $@)) |
1193 | 0d2bf835 | René Nussbaumer | tools/ensure-dirs: MODULE = ganeti.tools.ensure_dirs |
1194 | 3096524e | Iustin Pop | $(HS_BUILT_TEST_HELPERS): TESTROLE = $(patsubst test/%,%,$@) |
1195 | 67313146 | Michael Hanselmann | |
1196 | c964d962 | Michael Hanselmann | $(PYTHON_BOOTSTRAP): Makefile | $(all_dirfiles) |
1197 | 67313146 | Michael Hanselmann | test -n "$(MODULE)" || { echo Missing module; exit 1; } |
1198 | 2d48a3a2 | Michael Hanselmann | set -e; \ |
1199 | d75e738e | Michael Hanselmann | { echo '#!/usr/bin/python'; \ |
1200 | 2d48a3a2 | Michael Hanselmann | echo '# This file is automatically generated, do not edit!'; \ |
1201 | 67313146 | Michael Hanselmann | echo "# Edit $(MODULE) instead."; \ |
1202 | 2d48a3a2 | Michael Hanselmann | echo; \ |
1203 | 67313146 | Michael Hanselmann | echo '"""Bootstrap script for L{$(MODULE)}"""'; \ |
1204 | 2d48a3a2 | Michael Hanselmann | echo; \ |
1205 | 55766d34 | Andrea Spadaccini | echo '# pylint: disable=C0103'; \ |
1206 | 2d48a3a2 | Michael Hanselmann | echo '# C0103: Invalid name'; \ |
1207 | 2d48a3a2 | Michael Hanselmann | echo; \ |
1208 | 2d48a3a2 | Michael Hanselmann | echo 'import sys'; \ |
1209 | 67313146 | Michael Hanselmann | echo 'import $(MODULE) as main'; \ |
1210 | 2d48a3a2 | Michael Hanselmann | echo; \ |
1211 | 2d48a3a2 | Michael Hanselmann | echo '# Temporarily alias commands until bash completion'; \ |
1212 | 2d48a3a2 | Michael Hanselmann | echo '# generator is changed'; \ |
1213 | 67313146 | Michael Hanselmann | echo 'if hasattr(main, "commands"):'; \ |
1214 | 55766d34 | Andrea Spadaccini | echo ' commands = main.commands # pylint: disable=E1101'; \ |
1215 | 3f42b4f6 | Michael Hanselmann | echo 'if hasattr(main, "aliases"):'; \ |
1216 | 55766d34 | Andrea Spadaccini | echo ' aliases = main.aliases # pylint: disable=E1101'; \ |
1217 | 2d48a3a2 | Michael Hanselmann | echo; \ |
1218 | 2d48a3a2 | Michael Hanselmann | echo 'if __name__ == "__main__":'; \ |
1219 | 67313146 | Michael Hanselmann | echo ' sys.exit(main.Main())'; \ |
1220 | 2d48a3a2 | Michael Hanselmann | } > $@ |
1221 | 2d48a3a2 | Michael Hanselmann | chmod u+x $@ |
1222 | 2d48a3a2 | Michael Hanselmann | |
1223 | 3096524e | Iustin Pop | $(HS_BUILT_TEST_HELPERS): Makefile |
1224 | 3096524e | Iustin Pop | @test -n "$(TESTROLE)" || { echo Missing TESTROLE; exit 1; } |
1225 | 3096524e | Iustin Pop | set -e; \ |
1226 | 3096524e | Iustin Pop | { echo '#!/bin/sh'; \ |
1227 | 3096524e | Iustin Pop | echo '# This file is automatically generated, do not edit!'; \ |
1228 | 3096524e | Iustin Pop | echo "# Edit Makefile.am instead."; \ |
1229 | 3096524e | Iustin Pop | echo; \ |
1230 | 3096524e | Iustin Pop | echo "HTOOLS=$(TESTROLE) exec ./htools/hpc-htools \"\$$@\""; \ |
1231 | 3096524e | Iustin Pop | } > $@ |
1232 | 3096524e | Iustin Pop | chmod u+x $@ |
1233 | 3096524e | Iustin Pop | |
1234 | e8230860 | Michael Hanselmann | # We need to create symlinks because "make distcheck" will not install Python |
1235 | e8230860 | Michael Hanselmann | # files when building. |
1236 | c964d962 | Michael Hanselmann | stamp-srclinks: Makefile | $(all_dirfiles) |
1237 | e8230860 | Michael Hanselmann | set -e; \ |
1238 | 01a3a718 | Michael Hanselmann | for i in $(srclink_files); do \ |
1239 | e8230860 | Michael Hanselmann | if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \ |
1240 | e8230860 | Michael Hanselmann | $(LN_S) $(abs_top_srcdir)/$$i $$i; \ |
1241 | e8230860 | Michael Hanselmann | fi; \ |
1242 | e8230860 | Michael Hanselmann | done |
1243 | dd1dfd9a | Michael Hanselmann | touch $@ |
1244 | 97a37b3f | Michael Hanselmann | |
1245 | 9ff7e35c | Michael Hanselmann | .PHONY: ganeti |
1246 | 9ff7e35c | Michael Hanselmann | ganeti: |
1247 | 01f3e7b1 | Iustin Pop | cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; } |
1248 | 9ff7e35c | Michael Hanselmann | |
1249 | 6b997854 | Michael Hanselmann | .PHONY: check-dirs |
1250 | 6b997854 | Michael Hanselmann | check-dirs: $(BUILT_SOURCES) |
1251 | 0c1103d6 | Iustin Pop | @set -e; \ |
1252 | 6b997854 | Michael Hanselmann | find . -type d \( \( -name . \) -o \( \ |
1253 | 6b997854 | Michael Hanselmann | -name .git -o \ |
1254 | 6b997854 | Michael Hanselmann | -name autom4te.cache \ |
1255 | 6b997854 | Michael Hanselmann | \) -prune -o -print \) | { \ |
1256 | 6b997854 | Michael Hanselmann | error=; \ |
1257 | 6b997854 | Michael Hanselmann | while read dir; do \ |
1258 | 6b997854 | Michael Hanselmann | case "$$dir" in \ |
1259 | 6b997854 | Michael Hanselmann | $(strip $(patsubst %,(./%) ;;,$(DIRCHECK_EXCLUDE) $(DIRS))) \ |
1260 | 6b997854 | Michael Hanselmann | *) error=1; echo "Directory $$dir not listed in Makefile" >&2 ;; \ |
1261 | 6b997854 | Michael Hanselmann | esac; \ |
1262 | 6b997854 | Michael Hanselmann | done; \ |
1263 | 6b997854 | Michael Hanselmann | for dir in $(DIRS); do \ |
1264 | 6b997854 | Michael Hanselmann | if ! test -d "$$dir"; then \ |
1265 | 6b997854 | Michael Hanselmann | echo "Directory $$dir listed in DIRS does not exist" >&2; \ |
1266 | 6b997854 | Michael Hanselmann | error=1; \ |
1267 | 6b997854 | Michael Hanselmann | fi \ |
1268 | 6b997854 | Michael Hanselmann | done; \ |
1269 | 6b997854 | Michael Hanselmann | if test -n "$$error"; then exit 1; else exit 0; fi; \ |
1270 | 6b997854 | Michael Hanselmann | } |
1271 | 6b997854 | Michael Hanselmann | |
1272 | f6cbcc06 | Michael Hanselmann | .PHONY: check-local |
1273 | f6cbcc06 | Michael Hanselmann | check-local: check-dirs $(BUILT_SOURCES) |
1274 | eed5c5df | Michael Hanselmann | $(CHECK_PYTHON_CODE) $(check_python_code) |
1275 | 5d3c30df | Michael Hanselmann | PYTHONPATH=. $(CHECK_HEADER) $(check_python_code) |
1276 | 35576615 | Michael Hanselmann | $(CHECK_VERSION) $(VERSION) $(top_srcdir)/NEWS |
1277 | 7385c51d | Michael Hanselmann | $(CHECK_NEWS) < $(top_srcdir)/NEWS |
1278 | 83ea5145 | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(CHECK_IMPORTS) . $(standalone_python_modules) |
1279 | 9488fd1d | Michael Hanselmann | expver=$(VERSION_MAJOR).$(VERSION_MINOR); \ |
1280 | 154d7ba5 | Michael Hanselmann | if test "`head -n 1 $(top_srcdir)/README`" != "Ganeti $$expver"; then \ |
1281 | 9488fd1d | Michael Hanselmann | echo "Incorrect version in README, expected $$expver"; \ |
1282 | 9488fd1d | Michael Hanselmann | exit 1; \ |
1283 | 7ecb3d0e | Michael Hanselmann | fi; \ |
1284 | d5114fa1 | Michael Hanselmann | for file in doc/iallocator.rst doc/hooks.rst; do \ |
1285 | d5114fa1 | Michael Hanselmann | if test "`sed -ne '4 p' $(top_srcdir)/$$file`" != \ |
1286 | 9822b1dd | Iustin Pop | "Documents Ganeti version $$expver"; then \ |
1287 | d5114fa1 | Michael Hanselmann | echo "Incorrect version in $$file, expected $$expver"; \ |
1288 | d5114fa1 | Michael Hanselmann | exit 1; \ |
1289 | d5114fa1 | Michael Hanselmann | fi; \ |
1290 | d5114fa1 | Michael Hanselmann | done |
1291 | eed5c5df | Michael Hanselmann | |
1292 | 49e11c49 | Iustin Pop | .PHONY: hs-check |
1293 | 3096524e | Iustin Pop | hs-check: htools/test htools/hpc-htools $(HS_BUILT_TEST_HELPERS) |
1294 | 49e11c49 | Iustin Pop | @rm -f test.tix |
1295 | 49e11c49 | Iustin Pop | ./htools/test |
1296 | 896b2850 | Iustin Pop | HBINARY="./htools/hpc-htools" ./htools/offline-test.sh |
1297 | 49e11c49 | Iustin Pop | |
1298 | 08366664 | Michael Hanselmann | # E111: indentation is not a multiple of four |
1299 | 08366664 | Michael Hanselmann | # E261: at least two spaces before inline comment |
1300 | 08366664 | Michael Hanselmann | # E501: line too long (80 characters) |
1301 | 08366664 | Michael Hanselmann | PEP8_IGNORE = E111,E261,E501 |
1302 | 08366664 | Michael Hanselmann | |
1303 | 08366664 | Michael Hanselmann | # For excluding pep8 expects filenames only, not whole paths |
1304 | 08366664 | Michael Hanselmann | PEP8_EXCLUDE = $(subst $(space),$(comma),$(strip $(notdir $(BUILT_PYTHON_SOURCES)))) |
1305 | 08366664 | Michael Hanselmann | |
1306 | e0098923 | Iustin Pop | .PHONY: lint |
1307 | c964d962 | Michael Hanselmann | lint: $(BUILT_SOURCES) |
1308 | 6d7cc5ff | Michael Hanselmann | @test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; } |
1309 | 08366664 | Michael Hanselmann | if test -z "$(PEP8)"; then \ |
1310 | 08366664 | Michael Hanselmann | echo '"pep8" not found during configure' >&2; \ |
1311 | 08366664 | Michael Hanselmann | else \ |
1312 | 08366664 | Michael Hanselmann | $(PEP8) --repeat --ignore='$(PEP8_IGNORE)' --exclude='$(PEP8_EXCLUDE)' \ |
1313 | 21bf2e2e | Andrea Spadaccini | $(pep8_python_code); \ |
1314 | 08366664 | Michael Hanselmann | fi |
1315 | 6d7cc5ff | Michael Hanselmann | $(PYLINT) $(LINT_OPTS) $(lint_python_code) |
1316 | 3582eef6 | Iustin Pop | cd $(top_srcdir)/qa && \ |
1317 | 3582eef6 | Iustin Pop | PYTHONPATH=$(abs_top_srcdir) $(PYLINT) $(LINT_OPTS) \ |
1318 | 3582eef6 | Iustin Pop | --rcfile ../pylintrc $(patsubst qa/%.py,%,$(qa_scripts)) |
1319 | e0098923 | Iustin Pop | |
1320 | 191ff68c | Iustin Pop | .PHONY: hlint |
1321 | 5a1e31b4 | Iustin Pop | hlint: $(HS_BUILT_SRCS) htools/lint-hints.hs |
1322 | 191ff68c | Iustin Pop | if tty -s; then C="-c"; else C=""; fi; \ |
1323 | 3603605a | Iustin Pop | hlint --report=doc/hs-lint.html --cross $$C \ |
1324 | 3603605a | Iustin Pop | --ignore "Use first" \ |
1325 | 3603605a | Iustin Pop | --ignore "Use comparing" \ |
1326 | 3603605a | Iustin Pop | --ignore "Use on" \ |
1327 | 3603605a | Iustin Pop | --ignore "Use Control.Exception.catch" \ |
1328 | 3603605a | Iustin Pop | --ignore "Reduce duplication" \ |
1329 | 5a1e31b4 | Iustin Pop | --hint htools/lint-hints \ |
1330 | 3603605a | Iustin Pop | $(filter-out htools/Ganeti/THH.hs,$(HS_LIB_SRCS)) |
1331 | 191ff68c | Iustin Pop | |
1332 | 84a12e40 | Iustin Pop | # a dist hook rule for updating the vcs-version file; this is |
1333 | 84a12e40 | Iustin Pop | # hardcoded due to where it needs to build the file... |
1334 | 84a12e40 | Iustin Pop | dist-hook: |
1335 | 84a12e40 | Iustin Pop | $(MAKE) regen-vcs-version && \ |
1336 | 84a12e40 | Iustin Pop | rm -f $(top_distdir)/vcs-version && \ |
1337 | 84a12e40 | Iustin Pop | cp -p $(srcdir)/vcs-version $(top_distdir) |
1338 | 84a12e40 | Iustin Pop | |
1339 | 84a12e40 | Iustin Pop | # a distcheck hook rule for catching revision control directories |
1340 | b6f2e47f | Iustin Pop | distcheck-hook: |
1341 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name .svn -or -name .git | grep .; then \ |
1342 | c6aa0c42 | Michael Hanselmann | echo "Found revision control files in final archive." 1>&2; \ |
1343 | c6aa0c42 | Michael Hanselmann | exit 1; \ |
1344 | c6aa0c42 | Michael Hanselmann | fi |
1345 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name '*.py[co]' | grep .; then \ |
1346 | c6aa0c42 | Michael Hanselmann | echo "Found Python byte code in final archive." 1>&2; \ |
1347 | c6aa0c42 | Michael Hanselmann | exit 1; \ |
1348 | c6aa0c42 | Michael Hanselmann | fi |
1349 | c6aa0c42 | Michael Hanselmann | if find $(top_distdir) -name '*~' | grep .; then \ |
1350 | c6aa0c42 | Michael Hanselmann | echo "Found backup files in final archive." 1>&2; \ |
1351 | b6f2e47f | Iustin Pop | exit 1; \ |
1352 | b6f2e47f | Iustin Pop | fi |
1353 | bf0b21da | Michael Hanselmann | # Empty files or directories should not be distributed. They can cause |
1354 | bf0b21da | Michael Hanselmann | # unnecessary warnings for packagers. Directories used by automake during |
1355 | bf0b21da | Michael Hanselmann | # distcheck must be excluded. |
1356 | bf0b21da | Michael Hanselmann | if find $(top_distdir) -empty -and -not \( \ |
1357 | bf0b21da | Michael Hanselmann | -path $(top_distdir)/_build -or \ |
1358 | bf0b21da | Michael Hanselmann | -path $(top_distdir)/_inst \) | grep .; then \ |
1359 | bf0b21da | Michael Hanselmann | echo "Found empty files or directories in final archive." 1>&2; \ |
1360 | bf0b21da | Michael Hanselmann | exit 1; \ |
1361 | bf0b21da | Michael Hanselmann | fi |
1362 | c7b86f6c | Michael Hanselmann | if test -n "$(BUILD_RELEASE)" && \ |
1363 | c7b86f6c | Michael Hanselmann | grep -n -H -E '^\*.*unreleased' $(top_distdir)/NEWS; then \ |
1364 | c7b86f6c | Michael Hanselmann | echo "Found unreleased version in NEWS." >&2; \ |
1365 | c7b86f6c | Michael Hanselmann | exit 1; \ |
1366 | c7b86f6c | Michael Hanselmann | fi |
1367 | c7b86f6c | Michael Hanselmann | |
1368 | c7b86f6c | Michael Hanselmann | # When building a release, stricter checks should be used |
1369 | e627fe09 | Michael Hanselmann | distcheck-release dist-release: export BUILD_RELEASE = 1 |
1370 | c7b86f6c | Michael Hanselmann | distcheck-release: distcheck |
1371 | b6f2e47f | Iustin Pop | |
1372 | e627fe09 | Michael Hanselmann | dist-release: dist |
1373 | e627fe09 | Michael Hanselmann | set -e; \ |
1374 | e627fe09 | Michael Hanselmann | for i in $(DIST_ARCHIVES); do \ |
1375 | e627fe09 | Michael Hanselmann | echo -n "Checking $$i ... "; \ |
1376 | e627fe09 | Michael Hanselmann | autotools/check-tar < $$i; \ |
1377 | e627fe09 | Michael Hanselmann | echo OK; \ |
1378 | e627fe09 | Michael Hanselmann | done |
1379 | e627fe09 | Michael Hanselmann | |
1380 | 8925faaa | Iustin Pop | install-exec-local: |
1381 | 0d93b082 | Michael Hanselmann | @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \ |
1382 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/log/ganeti" \ |
1383 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/run/ganeti" |
1384 | e8230860 | Michael Hanselmann | |
1385 | c964d962 | Michael Hanselmann | # To avoid conflicts between directory names and other targets, a file inside |
1386 | c964d962 | Michael Hanselmann | # the directory is used to ensure its existence. |
1387 | c964d962 | Michael Hanselmann | %.dir: |
1388 | c964d962 | Michael Hanselmann | @mkdir_p@ $* && touch $@ |
1389 | e8230860 | Michael Hanselmann | |
1390 | d128fdb6 | Iustin Pop | .PHONY: apidoc |
1391 | a38bfce5 | Iustin Pop | if WANT_HTOOLSAPIDOC |
1392 | a38bfce5 | Iustin Pop | apidoc: py-apidoc hs-apidoc |
1393 | a38bfce5 | Iustin Pop | else |
1394 | a38bfce5 | Iustin Pop | apidoc: py-apidoc |
1395 | a38bfce5 | Iustin Pop | endif |
1396 | a38bfce5 | Iustin Pop | |
1397 | a38bfce5 | Iustin Pop | .PHONY: py-apidoc |
1398 | a38bfce5 | Iustin Pop | py-apidoc: epydoc.conf $(RUN_IN_TEMPDIR) $(BUILT_SOURCES) |
1399 | b959138f | Michael Hanselmann | $(RUN_IN_TEMPDIR) epydoc -v \ |
1400 | b959138f | Michael Hanselmann | --conf $(CURDIR)/epydoc.conf \ |
1401 | 22c5390d | Iustin Pop | --output $(CURDIR)/$(APIDOC_PY_DIR) |
1402 | a38bfce5 | Iustin Pop | |
1403 | a38bfce5 | Iustin Pop | .PHONY: hs-apidoc |
1404 | c3f67183 | Iustin Pop | hs-apidoc: $(HS_BUILT_SRCS) |
1405 | a38bfce5 | Iustin Pop | @test -n "$(HSCOLOUR)" || \ |
1406 | a38bfce5 | Iustin Pop | { echo 'HsColour' not found during configure; exit 1; } |
1407 | a38bfce5 | Iustin Pop | @test -n "$(HADDOCK)" || \ |
1408 | a38bfce5 | Iustin Pop | { echo 'haddock' not found during configure; exit 1; } |
1409 | 22c5390d | Iustin Pop | rm -rf $(APIDOC_HS_DIR)/* |
1410 | 458a286a | Iustin Pop | @mkdir_p@ $(APIDOC_HS_DIR)/Ganeti/HTools/Program |
1411 | 358a0a8f | Iustin Pop | @mkdir_p@ $(APIDOC_HS_DIR)/Ganeti/Confd |
1412 | 22c5390d | Iustin Pop | $(HSCOLOUR) -print-css > $(APIDOC_HS_DIR)/Ganeti/hscolour.css |
1413 | 82888134 | Michael Hanselmann | $(LN_S) ../hscolour.css $(APIDOC_HS_DIR)/Ganeti/HTools/hscolour.css |
1414 | 358a0a8f | Iustin Pop | $(LN_S) ../hscolour.css $(APIDOC_HS_DIR)/Ganeti/Confd/hscolour.css |
1415 | a38bfce5 | Iustin Pop | set -e ; \ |
1416 | a38bfce5 | Iustin Pop | cd htools; \ |
1417 | c478f837 | Iustin Pop | if [ "$(HTOOLS_NOCURL)" ]; \ |
1418 | c478f837 | Iustin Pop | then OPTGHC="--optghc=$(HTOOLS_NOCURL)"; \ |
1419 | c478f837 | Iustin Pop | else OPTGHC=""; \ |
1420 | c478f837 | Iustin Pop | fi; \ |
1421 | 1adec4be | Iustin Pop | if [ "$(HTOOLS_PARALLEL3)" ]; \ |
1422 | 1adec4be | Iustin Pop | then OPTGHC="$$OPTGHC --optghc=$(HTOOLS_PARALLEL3)"; \ |
1423 | 1adec4be | Iustin Pop | fi; \ |
1424 | 606e71d3 | Iustin Pop | RELSRCS="$(HS_LIB_SRCS:htools/%=%) $(HS_BUILT_SRCS:htools/%=%)"; \ |
1425 | a38bfce5 | Iustin Pop | for file in $$RELSRCS; do \ |
1426 | a38bfce5 | Iustin Pop | hfile=`echo $$file|sed 's/\\.hs$$//'`.html; \ |
1427 | 22c5390d | Iustin Pop | $(HSCOLOUR) -css -anchor $$file > ../$(APIDOC_HS_DIR)/$$hfile ; \ |
1428 | a38bfce5 | Iustin Pop | done ; \ |
1429 | 22c5390d | Iustin Pop | $(HADDOCK) --odir ../$(APIDOC_HS_DIR) --html --ignore-all-exports -w \ |
1430 | a38bfce5 | Iustin Pop | -t ganeti-htools -p haddock-prologue \ |
1431 | a38bfce5 | Iustin Pop | --source-module="%{MODULE/.//}.html" \ |
1432 | a38bfce5 | Iustin Pop | --source-entity="%{MODULE/.//}.html#%{NAME}" \ |
1433 | c478f837 | Iustin Pop | $$OPTGHC \ |
1434 | c3f67183 | Iustin Pop | $(filter-out Ganeti/HTools/ExtLoader.hs,$(HS_LIB_SRCS:htools/%=%)) |
1435 | d128fdb6 | Iustin Pop | |
1436 | 13e720f1 | Iustin Pop | .PHONY: TAGS |
1437 | eb732fb5 | Michael Hanselmann | TAGS: $(BUILT_SOURCES) |
1438 | 13e720f1 | Iustin Pop | rm -f TAGS |
1439 | 74fa8200 | Iustin Pop | find . -path './lib/*.py' -o -path './scripts/gnt-*' -o \ |
1440 | 74fa8200 | Iustin Pop | -path './daemons/ganeti-*' -o -path './tools/*' -o \ |
1441 | 74fa8200 | Iustin Pop | -path './qa/*.py' | \ |
1442 | 3bb5c580 | Iustin Pop | etags -l python - |
1443 | 13e720f1 | Iustin Pop | |
1444 | 27e336af | Michael Hanselmann | .PHONY: coverage |
1445 | b91e9518 | Iustin Pop | if WANT_HTOOLS |
1446 | b91e9518 | Iustin Pop | coverage: py-coverage hs-coverage |
1447 | b91e9518 | Iustin Pop | else |
1448 | b91e9518 | Iustin Pop | coverage: py-coverage |
1449 | b91e9518 | Iustin Pop | endif |
1450 | b91e9518 | Iustin Pop | |
1451 | b91e9518 | Iustin Pop | .PHONY: py-coverage |
1452 | b91e9518 | Iustin Pop | py-coverage: $(BUILT_SOURCES) $(python_tests) |
1453 | 27e336af | Michael Hanselmann | set -e; \ |
1454 | 22c5390d | Iustin Pop | COVERAGE_FILE=$(CURDIR)/$(COVERAGE_PY_DIR)/data \ |
1455 | 22c5390d | Iustin Pop | TEXT_COVERAGE=$(CURDIR)/$(COVERAGE_PY_DIR)/report.txt \ |
1456 | 22c5390d | Iustin Pop | HTML_COVERAGE=$(CURDIR)/$(COVERAGE_PY_DIR) \ |
1457 | e8c8cf1a | Michael Hanselmann | $(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/gen-coverage \ |
1458 | e8c8cf1a | Michael Hanselmann | $(python_tests) |
1459 | 27e336af | Michael Hanselmann | |
1460 | b91e9518 | Iustin Pop | .PHONY: hs-coverage |
1461 | 896b2850 | Iustin Pop | hs-coverage: $(haskell_tests) htools/hpc-htools |
1462 | 25cdf177 | Iustin Pop | rm -f *.tix && $(MAKE) hs-check |
1463 | 48f12e73 | Iustin Pop | @mkdir_p@ $(COVERAGE_HS_DIR) |
1464 | 896b2850 | Iustin Pop | hpc combine $(HPCEXCL) test.tix hpc-htools.tix > coverage-htools.tix |
1465 | 896b2850 | Iustin Pop | hpc markup --destdir=$(COVERAGE_HS_DIR) coverage-htools.tix |
1466 | 896b2850 | Iustin Pop | hpc report coverage-htools.tix |
1467 | 82888134 | Michael Hanselmann | $(LN_S) -f hpc_index.html $(COVERAGE_HS_DIR)/index.html |
1468 | b91e9518 | Iustin Pop | |
1469 | ec8379bd | Iustin Pop | # Special "kind-of-QA" target for htools, needs special setup (all |
1470 | ec8379bd | Iustin Pop | # tools compiled with -fhpc) |
1471 | ec8379bd | Iustin Pop | .PHONY: live-test |
1472 | ec8379bd | Iustin Pop | live-test: all |
1473 | ec8379bd | Iustin Pop | set -e ; \ |
1474 | ec8379bd | Iustin Pop | cd htools; \ |
1475 | 82888134 | Michael Hanselmann | rm -f .hpc; $(LN_S) ../.hpc .hpc; \ |
1476 | ec8379bd | Iustin Pop | rm -f *.tix *.mix; \ |
1477 | ec8379bd | Iustin Pop | ./live-test.sh; \ |
1478 | c3f67183 | Iustin Pop | hpc sum --union $(HPCEXCL) $(addsuffix .tix,$(HS_PROGS:htools/%=%)) \ |
1479 | ec8379bd | Iustin Pop | --output=live-test.tix ; \ |
1480 | 22c5390d | Iustin Pop | @mkdir_p@ ../$(COVERAGE_HS_DIR) ; \ |
1481 | 22c5390d | Iustin Pop | hpc markup --destdir=../$(COVERAGE_HS_DIR) live-test \ |
1482 | ec8379bd | Iustin Pop | --srcdir=.. $(HPCEXCL) ; \ |
1483 | ec8379bd | Iustin Pop | hpc report --srcdir=.. live-test $(HPCEXCL) |
1484 | b91e9518 | Iustin Pop | |
1485 | b341b9ca | Guido Trotter | commit-check: distcheck lint apidoc |
1486 | b341b9ca | Guido Trotter | |
1487 | 3baa809c | Michael Hanselmann | -include ./Makefile.local |
1488 | 3baa809c | Michael Hanselmann | |
1489 | e8230860 | Michael Hanselmann | # vim: set noet : |