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