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