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