root / Makefile.am @ 9b94905f
History | View | Annotate | Download (11.7 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 | 6e06b36c | Iustin Pop | ACLOCAL_AMFLAGS = -I autotools |
13 | e8230860 | Michael Hanselmann | DOCBOOK_WRAPPER = $(top_srcdir)/autotools/docbook-wrapper |
14 | 4f3d5b76 | Michael Hanselmann | BUILD_BASH_COMPLETION = $(top_srcdir)/autotools/build-bash-completion |
15 | b959138f | Michael Hanselmann | RUN_IN_TEMPDIR = $(top_srcdir)/autotools/run-in-tempdir |
16 | eed5c5df | Michael Hanselmann | CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code |
17 | e8230860 | Michael Hanselmann | REPLACE_VARS_SED = autotools/replace_vars.sed |
18 | e8230860 | Michael Hanselmann | |
19 | e8230860 | Michael Hanselmann | hypervisordir = $(pkgpythondir)/hypervisor |
20 | ff9efc03 | Michael Hanselmann | httpdir = $(pkgpythondir)/http |
21 | 12426ae1 | Guido Trotter | confddir = $(pkgpythondir)/confd |
22 | 8c229cc7 | Oleksiy Mishchenko | rapidir = $(pkgpythondir)/rapi |
23 | e8230860 | Michael Hanselmann | toolsdir = $(pkglibdir)/tools |
24 | e8230860 | Michael Hanselmann | docdir = $(datadir)/doc/$(PACKAGE) |
25 | e8230860 | Michael Hanselmann | |
26 | e8230860 | Michael Hanselmann | DIRS = \ |
27 | e8230860 | Michael Hanselmann | autotools \ |
28 | e8230860 | Michael Hanselmann | daemons \ |
29 | e8230860 | Michael Hanselmann | devel \ |
30 | e8230860 | Michael Hanselmann | doc \ |
31 | e8230860 | Michael Hanselmann | doc/examples \ |
32 | d6d9ce45 | Guido Trotter | doc/examples/hooks \ |
33 | e8230860 | Michael Hanselmann | lib \ |
34 | f9897b6d | Michael Hanselmann | lib/build \ |
35 | ff9efc03 | Michael Hanselmann | lib/http \ |
36 | e8230860 | Michael Hanselmann | lib/hypervisor \ |
37 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi \ |
38 | 12426ae1 | Guido Trotter | lib/confd \ |
39 | e8230860 | Michael Hanselmann | man \ |
40 | e8230860 | Michael Hanselmann | qa \ |
41 | e8230860 | Michael Hanselmann | scripts \ |
42 | e8230860 | Michael Hanselmann | test \ |
43 | e8230860 | Michael Hanselmann | test/data \ |
44 | e8230860 | Michael Hanselmann | tools |
45 | e8230860 | Michael Hanselmann | |
46 | 2ab2b9f5 | Iustin Pop | MAINTAINERCLEANFILES = \ |
47 | d17e74b4 | Iustin Pop | $(docpng) \ |
48 | b76aac08 | Michael Hanselmann | $(maninput) \ |
49 | b76aac08 | Michael Hanselmann | doc/news.rst |
50 | 2ab2b9f5 | Iustin Pop | |
51 | d17e74b4 | Iustin Pop | maintainer-clean-local: |
52 | 13de7d59 | Michael Hanselmann | rm -rf doc/api doc/html |
53 | d17e74b4 | Iustin Pop | |
54 | e8230860 | Michael Hanselmann | CLEANFILES = \ |
55 | e8230860 | Michael Hanselmann | autotools/replace_vars.sed \ |
56 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner \ |
57 | e8230860 | Michael Hanselmann | devel/upload \ |
58 | f72f8622 | Iustin Pop | doc/examples/bash_completion \ |
59 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd \ |
60 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron \ |
61 | a2442bf9 | Luca Bigliardi | doc/examples/hooks/ipsec \ |
62 | e8230860 | Michael Hanselmann | lib/*.py[co] \ |
63 | f9897b6d | Michael Hanselmann | lib/build/*.py[co] \ |
64 | ff9efc03 | Michael Hanselmann | lib/http/*.py[co] \ |
65 | e8230860 | Michael Hanselmann | lib/hypervisor/*.py[co] \ |
66 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/*.py[co] \ |
67 | 2ab2b9f5 | Iustin Pop | $(man_MANS) \ |
68 | 2ab2b9f5 | Iustin Pop | $(manhtml) \ |
69 | e8230860 | Michael Hanselmann | qa/*.py[co] \ |
70 | e8230860 | Michael Hanselmann | test/*.py[co] \ |
71 | e8230860 | Michael Hanselmann | stamp-directories \ |
72 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
73 | e8230860 | Michael Hanselmann | $(nodist_pkgpython_PYTHON) |
74 | e8230860 | Michael Hanselmann | |
75 | dc7d2c49 | Michael Hanselmann | BUILT_SOURCES = \ |
76 | dc7d2c49 | Michael Hanselmann | ganeti \ |
77 | dd1dfd9a | Michael Hanselmann | stamp-srclinks \ |
78 | dbefcc7e | Michael Hanselmann | stamp-directories \ |
79 | dc7d2c49 | Michael Hanselmann | lib/_autoconf.py |
80 | dc7d2c49 | Michael Hanselmann | |
81 | e8230860 | Michael Hanselmann | nodist_pkgpython_PYTHON = \ |
82 | e8230860 | Michael Hanselmann | lib/_autoconf.py |
83 | e8230860 | Michael Hanselmann | |
84 | f9897b6d | Michael Hanselmann | noinst_PYTHON = \ |
85 | f9897b6d | Michael Hanselmann | lib/build/__init__.py |
86 | f9897b6d | Michael Hanselmann | |
87 | e8230860 | Michael Hanselmann | pkgpython_PYTHON = \ |
88 | e8230860 | Michael Hanselmann | lib/__init__.py \ |
89 | a8a76bc2 | Guido Trotter | lib/asyncnotifier.py \ |
90 | e8230860 | Michael Hanselmann | lib/backend.py \ |
91 | e8230860 | Michael Hanselmann | lib/bdev.py \ |
92 | e8230860 | Michael Hanselmann | lib/bootstrap.py \ |
93 | e8230860 | Michael Hanselmann | lib/cli.py \ |
94 | e8230860 | Michael Hanselmann | lib/cmdlib.py \ |
95 | e8230860 | Michael Hanselmann | lib/config.py \ |
96 | e8230860 | Michael Hanselmann | lib/constants.py \ |
97 | 821d9e43 | Michael Hanselmann | lib/daemon.py \ |
98 | e8230860 | Michael Hanselmann | lib/errors.py \ |
99 | e8230860 | Michael Hanselmann | lib/jqueue.py \ |
100 | 8b537bb0 | Michael Hanselmann | lib/jstore.py \ |
101 | e8230860 | Michael Hanselmann | lib/locking.py \ |
102 | e8230860 | Michael Hanselmann | lib/luxi.py \ |
103 | e8230860 | Michael Hanselmann | lib/mcpu.py \ |
104 | e8230860 | Michael Hanselmann | lib/objects.py \ |
105 | e8230860 | Michael Hanselmann | lib/opcodes.py \ |
106 | e8230860 | Michael Hanselmann | lib/rpc.py \ |
107 | e8230860 | Michael Hanselmann | lib/serializer.py \ |
108 | e8230860 | Michael Hanselmann | lib/ssconf.py \ |
109 | e8230860 | Michael Hanselmann | lib/ssh.py \ |
110 | ac2d0fe4 | Michael Hanselmann | lib/storage.py \ |
111 | 76094e37 | Michael Hanselmann | lib/utils.py \ |
112 | 76094e37 | Michael Hanselmann | lib/workerpool.py |
113 | e8230860 | Michael Hanselmann | |
114 | e8230860 | Michael Hanselmann | hypervisor_PYTHON = \ |
115 | e8230860 | Michael Hanselmann | lib/hypervisor/__init__.py \ |
116 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_base.py \ |
117 | 48297fa2 | Iustin Pop | lib/hypervisor/hv_chroot.py \ |
118 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_fake.py \ |
119 | eb58f9b1 | Guido Trotter | lib/hypervisor/hv_kvm.py \ |
120 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_xen.py |
121 | e8230860 | Michael Hanselmann | |
122 | 8c229cc7 | Oleksiy Mishchenko | rapi_PYTHON = \ |
123 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/__init__.py \ |
124 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/baserlib.py \ |
125 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/connector.py \ |
126 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/rlib2.py |
127 | 8c229cc7 | Oleksiy Mishchenko | |
128 | ff9efc03 | Michael Hanselmann | http_PYTHON = \ |
129 | 02cab3e7 | Michael Hanselmann | lib/http/__init__.py \ |
130 | be500c29 | Michael Hanselmann | lib/http/auth.py \ |
131 | 02cab3e7 | Michael Hanselmann | lib/http/client.py \ |
132 | 02cab3e7 | Michael Hanselmann | lib/http/server.py |
133 | ff9efc03 | Michael Hanselmann | |
134 | 12426ae1 | Guido Trotter | confd_PYTHON = \ |
135 | 71f27d19 | Guido Trotter | lib/confd/__init__.py \ |
136 | e4ccf6cd | Guido Trotter | lib/confd/client.py \ |
137 | e16e4824 | Guido Trotter | lib/confd/server.py \ |
138 | e16e4824 | Guido Trotter | lib/confd/querylib.py |
139 | 8c229cc7 | Oleksiy Mishchenko | |
140 | f05c99f3 | Michael Hanselmann | docrst = \ |
141 | ffa6869f | Iustin Pop | doc/admin.rst \ |
142 | 5c0c1eeb | Iustin Pop | doc/design-2.0.rst \ |
143 | 4f366caf | Michael Hanselmann | doc/design-2.1.rst \ |
144 | 62947ebb | Michael Hanselmann | doc/devnotes.rst \ |
145 | e2078d28 | Iustin Pop | doc/glossary.rst \ |
146 | 4d6443f4 | Iustin Pop | doc/hooks.rst \ |
147 | 876860a3 | Iustin Pop | doc/iallocator.rst \ |
148 | d17e74b4 | Iustin Pop | doc/index.rst \ |
149 | 28e15341 | Iustin Pop | doc/install.rst \ |
150 | 9725b53d | Michael Hanselmann | doc/locking.rst \ |
151 | 6d81475c | Iustin Pop | doc/rapi.rst \ |
152 | b76aac08 | Michael Hanselmann | doc/security.rst \ |
153 | b76aac08 | Michael Hanselmann | doc/news.rst |
154 | f05c99f3 | Michael Hanselmann | |
155 | 13de7d59 | Michael Hanselmann | doc/html/.stamp: $(docrst) $(docpng) doc/conf.py configure.ac |
156 | d17e74b4 | Iustin Pop | @test -n "$(SPHINX)" || \ |
157 | d17e74b4 | Iustin Pop | { echo 'sphinx-build' not found during configure; exit 1; } |
158 | 13de7d59 | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(SPHINX) -q -b html \ |
159 | 13de7d59 | Michael Hanselmann | -d . \ |
160 | d17e74b4 | Iustin Pop | -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \ |
161 | d17e74b4 | Iustin Pop | -D release="$(PACKAGE_VERSION)" \ |
162 | 13de7d59 | Michael Hanselmann | $(abs_top_srcdir)/doc $(CURDIR)/doc/html |
163 | 13de7d59 | Michael Hanselmann | rm -f doc/html/.buildinfo doc/html/objects.inv |
164 | 13de7d59 | Michael Hanselmann | touch $@ |
165 | 13de7d59 | Michael Hanselmann | |
166 | 13de7d59 | Michael Hanselmann | doc/html: doc/html/.stamp |
167 | 2ab2b9f5 | Iustin Pop | |
168 | b76aac08 | Michael Hanselmann | doc/news.rst: NEWS |
169 | b76aac08 | Michael Hanselmann | set -e; \ |
170 | b76aac08 | Michael Hanselmann | { echo '.. This file is automatically updated at build time from $<.'; \ |
171 | b76aac08 | Michael Hanselmann | echo '.. Do not edit.'; \ |
172 | b76aac08 | Michael Hanselmann | echo; \ |
173 | b76aac08 | Michael Hanselmann | cat $<; \ |
174 | b76aac08 | Michael Hanselmann | } > $@ |
175 | b76aac08 | Michael Hanselmann | |
176 | b8195800 | Iustin Pop | docdot = \ |
177 | ca9ccea8 | Michael Hanselmann | doc/arch-2.0.dot \ |
178 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-acquire.dot \ |
179 | ca9ccea8 | Michael Hanselmann | doc/design-2.1-lock-release.dot |
180 | b8195800 | Iustin Pop | |
181 | d17e74b4 | Iustin Pop | docpng = $(patsubst %.dot,%.png,$(docdot)) |
182 | e8230860 | Michael Hanselmann | |
183 | 7e1ccbe0 | Michael Hanselmann | # Things to build but not to install (add it to EXTRA_DIST if it should be |
184 | 7e1ccbe0 | Michael Hanselmann | # distributed) |
185 | 7e1ccbe0 | Michael Hanselmann | noinst_DATA = \ |
186 | 7e1ccbe0 | Michael Hanselmann | devel/upload \ |
187 | 7e1ccbe0 | Michael Hanselmann | doc/html \ |
188 | 7e1ccbe0 | Michael Hanselmann | doc/examples/bash_completion \ |
189 | 7e1ccbe0 | Michael Hanselmann | doc/examples/ganeti.cron \ |
190 | 7e1ccbe0 | Michael Hanselmann | doc/examples/ganeti.initd \ |
191 | 7e1ccbe0 | Michael Hanselmann | doc/examples/hooks/ipsec \ |
192 | 7e1ccbe0 | Michael Hanselmann | $(manhtml) |
193 | f29266b4 | Iustin Pop | |
194 | 4f3d5b76 | Michael Hanselmann | gnt_scripts = \ |
195 | e8230860 | Michael Hanselmann | scripts/gnt-backup \ |
196 | e8230860 | Michael Hanselmann | scripts/gnt-cluster \ |
197 | e8230860 | Michael Hanselmann | scripts/gnt-debug \ |
198 | e8230860 | Michael Hanselmann | scripts/gnt-instance \ |
199 | e8230860 | Michael Hanselmann | scripts/gnt-job \ |
200 | e8230860 | Michael Hanselmann | scripts/gnt-node \ |
201 | e8230860 | Michael Hanselmann | scripts/gnt-os |
202 | e8230860 | Michael Hanselmann | |
203 | 4f3d5b76 | Michael Hanselmann | dist_sbin_SCRIPTS = \ |
204 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-noded \ |
205 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-watcher \ |
206 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-masterd \ |
207 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-confd \ |
208 | 4f3d5b76 | Michael Hanselmann | daemons/ganeti-rapi \ |
209 | 4f3d5b76 | Michael Hanselmann | $(gnt_scripts) |
210 | 4f3d5b76 | Michael Hanselmann | |
211 | fc3fd894 | Michael Hanselmann | nodist_sbin_SCRIPTS = \ |
212 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner |
213 | fc3fd894 | Michael Hanselmann | |
214 | e8230860 | Michael Hanselmann | dist_tools_SCRIPTS = \ |
215 | e8230860 | Michael Hanselmann | tools/burnin \ |
216 | e8230860 | Michael Hanselmann | tools/cfgshell \ |
217 | e8230860 | Michael Hanselmann | tools/cfgupgrade \ |
218 | e8230860 | Michael Hanselmann | tools/lvmstrap |
219 | e8230860 | Michael Hanselmann | |
220 | e8230860 | Michael Hanselmann | EXTRA_DIST = \ |
221 | e8230860 | Michael Hanselmann | NEWS \ |
222 | 70c771f6 | Michael Hanselmann | pylintrc \ |
223 | bb46a96c | Michael Hanselmann | autotools/build-bash-completion \ |
224 | eed5c5df | Michael Hanselmann | autotools/check-python-code \ |
225 | e8230860 | Michael Hanselmann | autotools/docbook-wrapper \ |
226 | f3313af5 | Guido Trotter | $(RUN_IN_TEMPDIR) \ |
227 | fc3fd894 | Michael Hanselmann | daemons/ganeti-cleaner.in \ |
228 | e8230860 | Michael Hanselmann | devel/upload.in \ |
229 | b8195800 | Iustin Pop | $(docdot) \ |
230 | f727d134 | Michael Hanselmann | $(docpng) \ |
231 | d17e74b4 | Iustin Pop | $(docrst) \ |
232 | d17e74b4 | Iustin Pop | doc/conf.py \ |
233 | d17e74b4 | Iustin Pop | doc/html \ |
234 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd.in \ |
235 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron.in \ |
236 | e8230860 | Michael Hanselmann | doc/examples/dumb-allocator \ |
237 | d6d9ce45 | Guido Trotter | doc/examples/hooks/ethers \ |
238 | a2442bf9 | Luca Bigliardi | doc/examples/hooks/ipsec.in \ |
239 | e8230860 | Michael Hanselmann | test/testutils.py \ |
240 | e8230860 | Michael Hanselmann | test/mocks.py \ |
241 | e8230860 | Michael Hanselmann | $(dist_TESTS) \ |
242 | e8230860 | Michael Hanselmann | $(TEST_FILES) \ |
243 | e8230860 | Michael Hanselmann | man/footer.sgml \ |
244 | f727d134 | Michael Hanselmann | $(mansgml) \ |
245 | f727d134 | Michael Hanselmann | $(maninput) \ |
246 | e8230860 | Michael Hanselmann | qa/ganeti-qa.py \ |
247 | 39e0d19e | Michael Hanselmann | qa/qa-sample.json \ |
248 | e8230860 | Michael Hanselmann | qa/qa_cluster.py \ |
249 | e8230860 | Michael Hanselmann | qa/qa_config.py \ |
250 | e8230860 | Michael Hanselmann | qa/qa_daemon.py \ |
251 | e8230860 | Michael Hanselmann | qa/qa_env.py \ |
252 | e8230860 | Michael Hanselmann | qa/qa_error.py \ |
253 | e8230860 | Michael Hanselmann | qa/qa_instance.py \ |
254 | e8230860 | Michael Hanselmann | qa/qa_node.py \ |
255 | e8230860 | Michael Hanselmann | qa/qa_os.py \ |
256 | a47f574c | Oleksiy Mishchenko | qa/qa_rapi.py \ |
257 | e8230860 | Michael Hanselmann | qa/qa_tags.py \ |
258 | e8230860 | Michael Hanselmann | qa/qa_utils.py |
259 | e8230860 | Michael Hanselmann | |
260 | e8230860 | Michael Hanselmann | man_MANS = \ |
261 | e8230860 | Michael Hanselmann | man/ganeti.7 \ |
262 | bae7e531 | Michael Hanselmann | man/ganeti-cleaner.8 \ |
263 | b7b7cda6 | Guido Trotter | man/ganeti-confd.8 \ |
264 | 320d986d | Iustin Pop | man/ganeti-masterd.8 \ |
265 | e8230860 | Michael Hanselmann | man/ganeti-noded.8 \ |
266 | e8230860 | Michael Hanselmann | man/ganeti-os-interface.7 \ |
267 | 320d986d | Iustin Pop | man/ganeti-rapi.8 \ |
268 | e8230860 | Michael Hanselmann | man/ganeti-watcher.8 \ |
269 | e8230860 | Michael Hanselmann | man/gnt-backup.8 \ |
270 | e8230860 | Michael Hanselmann | man/gnt-cluster.8 \ |
271 | d3b4cf9f | Iustin Pop | man/gnt-debug.8 \ |
272 | e8230860 | Michael Hanselmann | man/gnt-instance.8 \ |
273 | d3b4cf9f | Iustin Pop | man/gnt-job.8 \ |
274 | e8230860 | Michael Hanselmann | man/gnt-node.8 \ |
275 | e8230860 | Michael Hanselmann | man/gnt-os.8 |
276 | e8230860 | Michael Hanselmann | |
277 | 2ab2b9f5 | Iustin Pop | mansgml = $(patsubst %.7,%.sgml,$(patsubst %.8,%.sgml,$(man_MANS))) |
278 | 2ab2b9f5 | Iustin Pop | manhtml = $(patsubst %.sgml,%.html,$(mansgml)) |
279 | 25c92bc5 | Michael Hanselmann | maninput = \ |
280 | 25c92bc5 | Michael Hanselmann | $(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS))) \ |
281 | 25c92bc5 | Michael Hanselmann | $(patsubst %.html,%.html.in,$(manhtml)) |
282 | e8230860 | Michael Hanselmann | |
283 | e8230860 | Michael Hanselmann | TEST_FILES = \ |
284 | e8230860 | Michael Hanselmann | test/data/bdev-both.txt \ |
285 | d816408a | Iustin Pop | test/data/bdev-8.3-both.txt \ |
286 | e8230860 | Michael Hanselmann | test/data/bdev-disk.txt \ |
287 | e8230860 | Michael Hanselmann | test/data/bdev-net.txt \ |
288 | d816408a | Iustin Pop | test/data/proc_drbd8.txt \ |
289 | a6ac80db | Iustin Pop | test/data/proc_drbd80-emptyline.txt \ |
290 | d816408a | Iustin Pop | test/data/proc_drbd83.txt |
291 | e8230860 | Michael Hanselmann | |
292 | e8230860 | Michael Hanselmann | dist_TESTS = \ |
293 | 6de7c41d | Iustin Pop | test/ganeti.bdev_unittest.py \ |
294 | 6de7c41d | Iustin Pop | test/ganeti.cli_unittest.py \ |
295 | 6de7c41d | Iustin Pop | test/ganeti.cmdlib_unittest.py \ |
296 | 74554d66 | Guido Trotter | test/ganeti.confd_client_unittest.py \ |
297 | e8230860 | Michael Hanselmann | test/ganeti.config_unittest.py \ |
298 | 6de7c41d | Iustin Pop | test/ganeti.constants_unittest.py \ |
299 | e8230860 | Michael Hanselmann | test/ganeti.hooks_unittest.py \ |
300 | 6de7c41d | Iustin Pop | test/ganeti.http_unittest.py \ |
301 | e8230860 | Michael Hanselmann | test/ganeti.locking_unittest.py \ |
302 | 407339d0 | Michael Hanselmann | test/ganeti.mcpu_unittest.py \ |
303 | 4c14965f | Guido Trotter | test/ganeti.objects_unittest.py \ |
304 | 4cbd4462 | Oleksiy Mishchenko | test/ganeti.rapi.resources_unittest.py \ |
305 | 6de7c41d | Iustin Pop | test/ganeti.serializer_unittest.py \ |
306 | 6de7c41d | Iustin Pop | test/ganeti.ssh_unittest.py \ |
307 | 6de7c41d | Iustin Pop | test/ganeti.utils_unittest.py \ |
308 | 3f991867 | Michael Hanselmann | test/ganeti.workerpool_unittest.py \ |
309 | 3f991867 | Michael Hanselmann | test/docs_unittest.py |
310 | e8230860 | Michael Hanselmann | |
311 | e8230860 | Michael Hanselmann | nodist_TESTS = |
312 | e8230860 | Michael Hanselmann | |
313 | e8230860 | Michael Hanselmann | TESTS = $(dist_TESTS) $(nodist_TESTS) |
314 | e8230860 | Michael Hanselmann | |
315 | f848ac00 | Michael Hanselmann | TESTS_ENVIRONMENT = \ |
316 | f848ac00 | Michael Hanselmann | PYTHONPATH=. TOP_SRCDIR=$(abs_top_srcdir) \ |
317 | f848ac00 | Michael Hanselmann | $(RUN_IN_TEMPDIR) $(PYTHON) |
318 | 6e06b36c | Iustin Pop | |
319 | eed5c5df | Michael Hanselmann | all_python_code = \ |
320 | 01a3a718 | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
321 | 01a3a718 | Michael Hanselmann | $(dist_tools_SCRIPTS) \ |
322 | 01a3a718 | Michael Hanselmann | $(dist_TESTS) \ |
323 | 01a3a718 | Michael Hanselmann | $(pkgpython_PYTHON) \ |
324 | 01a3a718 | Michael Hanselmann | $(hypervisor_PYTHON) \ |
325 | 01a3a718 | Michael Hanselmann | $(rapi_PYTHON) \ |
326 | 01a3a718 | Michael Hanselmann | $(http_PYTHON) \ |
327 | 01a3a718 | Michael Hanselmann | $(confd_PYTHON) \ |
328 | 01a3a718 | Michael Hanselmann | $(noinst_PYTHON) |
329 | 01a3a718 | Michael Hanselmann | |
330 | eed5c5df | Michael Hanselmann | srclink_files = \ |
331 | eed5c5df | Michael Hanselmann | man/footer.sgml \ |
332 | eed5c5df | Michael Hanselmann | $(all_python_code) |
333 | eed5c5df | Michael Hanselmann | |
334 | eed5c5df | Michael Hanselmann | check_python_code = \ |
335 | eed5c5df | Michael Hanselmann | $(all_python_code) |
336 | eed5c5df | Michael Hanselmann | |
337 | dbefcc7e | Michael Hanselmann | devel/upload: devel/upload.in $(REPLACE_VARS_SED) |
338 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
339 | e8230860 | Michael Hanselmann | chmod u+x $@ |
340 | e8230860 | Michael Hanselmann | |
341 | dbefcc7e | Michael Hanselmann | daemons/ganeti-cleaner: daemons/ganeti-cleaner.in \ |
342 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED) |
343 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
344 | 5c566e17 | Michael Hanselmann | chmod +x $@ |
345 | e8230860 | Michael Hanselmann | |
346 | dbefcc7e | Michael Hanselmann | doc/examples/%: doc/examples/%.in \ |
347 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED) |
348 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
349 | e8230860 | Michael Hanselmann | |
350 | dbefcc7e | Michael Hanselmann | doc/examples/hooks/%: doc/examples/hooks/%.in \ |
351 | a2442bf9 | Luca Bigliardi | $(REPLACE_VARS_SED) |
352 | a2442bf9 | Luca Bigliardi | sed -f $(REPLACE_VARS_SED) < $< > $@ |
353 | a2442bf9 | Luca Bigliardi | |
354 | b959138f | Michael Hanselmann | doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \ |
355 | 4f3d5b76 | Michael Hanselmann | lib/cli.py $(gnt_scripts) tools/burnin |
356 | b959138f | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@ |
357 | 4f3d5b76 | Michael Hanselmann | |
358 | f86e82ef | Iustin Pop | doc/%.png: doc/%.dot |
359 | 2ab2b9f5 | Iustin Pop | @test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; } |
360 | f86e82ef | Iustin Pop | $(DOT) -Tpng -o $@ $< |
361 | f86e82ef | Iustin Pop | |
362 | 2ab2b9f5 | Iustin Pop | man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
363 | 25c92bc5 | Michael Hanselmann | @test -n "$(DOCBOOK2MAN)" || \ |
364 | 25c92bc5 | Michael Hanselmann | { echo 'docbook2man' not found during configure; exit 1; } |
365 | 434c34a5 | Michael Hanselmann | $(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $(notdir $(@:.in=)) $@ |
366 | 2ab2b9f5 | Iustin Pop | |
367 | 2ab2b9f5 | Iustin Pop | man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
368 | 25c92bc5 | Michael Hanselmann | @test -n "$(DOCBOOK2HTML)" || \ |
369 | 25c92bc5 | Michael Hanselmann | { echo 'docbook2html' not found during configure; exit 1; } |
370 | 434c34a5 | Michael Hanselmann | $(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $(notdir $(@:.in=)) $@ |
371 | 2ab2b9f5 | Iustin Pop | |
372 | dbefcc7e | Michael Hanselmann | man/%.7: man/%.7.in $(REPLACE_VARS_SED) |
373 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
374 | e8230860 | Michael Hanselmann | |
375 | dbefcc7e | Michael Hanselmann | man/%.8: man/%.8.in $(REPLACE_VARS_SED) |
376 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
377 | e8230860 | Michael Hanselmann | |
378 | dbefcc7e | Michael Hanselmann | man/%.html: man/%.html.in $(REPLACE_VARS_SED) |
379 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
380 | f29266b4 | Iustin Pop | |
381 | e8230860 | Michael Hanselmann | lib/_autoconf.py: Makefile stamp-directories |
382 | e8230860 | Michael Hanselmann | set -e; \ |
383 | e8230860 | Michael Hanselmann | { echo '# This file is automatically generated, do not edit!'; \ |
384 | e8230860 | Michael Hanselmann | echo '#'; \ |
385 | 67047322 | Iustin Pop | echo ''; \ |
386 | 67047322 | Iustin Pop | echo '"""Build-time configuration for Ganeti.'; \ |
387 | 67047322 | Iustin Pop | echo '';\ |
388 | 67047322 | Iustin Pop | echo 'This file is autogenerated by the build process.'; \ |
389 | 67047322 | Iustin Pop | echo 'For any changes you need to re-run ./configure (and'; \ |
390 | 67047322 | Iustin Pop | echo 'not edit by hand).'; \ |
391 | 67047322 | Iustin Pop | echo ''; \ |
392 | 67047322 | Iustin Pop | echo '"""'; \ |
393 | 67047322 | Iustin Pop | echo ''; \ |
394 | e8230860 | Michael Hanselmann | echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \ |
395 | e8230860 | Michael Hanselmann | echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \ |
396 | e8230860 | Michael Hanselmann | echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \ |
397 | e8230860 | Michael Hanselmann | echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \ |
398 | e8230860 | Michael Hanselmann | echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \ |
399 | e8230860 | Michael Hanselmann | echo "VERSION_FULL = '$(VERSION_FULL)'"; \ |
400 | e8230860 | Michael Hanselmann | echo "LOCALSTATEDIR = '$(localstatedir)'"; \ |
401 | e8230860 | Michael Hanselmann | echo "SYSCONFDIR = '$(sysconfdir)'"; \ |
402 | e8230860 | Michael Hanselmann | echo "SSH_INITD_SCRIPT = '$(SSH_INITD_SCRIPT)'"; \ |
403 | e8230860 | Michael Hanselmann | echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \ |
404 | e8230860 | Michael Hanselmann | echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \ |
405 | 2f2dbb4b | Jun Futagawa | echo "XEN_BOOTLOADER = '$(XEN_BOOTLOADER)'"; \ |
406 | e8230860 | Michael Hanselmann | echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \ |
407 | e8230860 | Michael Hanselmann | echo "XEN_INITRD = '$(XEN_INITRD)'"; \ |
408 | e8230860 | Michael Hanselmann | echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \ |
409 | e8230860 | Michael Hanselmann | echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \ |
410 | 7e2c5b9e | Guido Trotter | echo "KVM_PATH = '$(KVM_PATH)'"; \ |
411 | 30e42c4e | Guido Trotter | echo "KVM_MIGRATION_PORT = '$(KVM_MIGRATION_PORT)'"; \ |
412 | 14aa53cb | Guido Trotter | echo "SOCAT_PATH = '$(SOCAT_PATH)'"; \ |
413 | bea60381 | Michael Hanselmann | echo "LVM_STRIPECOUNT = $(LVM_STRIPECOUNT)"; \ |
414 | bea60381 | Michael Hanselmann | echo "TOOLSDIR = '$(toolsdir)'"; \ |
415 | 4f3d5b76 | Michael Hanselmann | echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \ |
416 | e8230860 | Michael Hanselmann | } > $@ |
417 | e8230860 | Michael Hanselmann | |
418 | dbefcc7e | Michael Hanselmann | $(REPLACE_VARS_SED): Makefile |
419 | e8230860 | Michael Hanselmann | set -e; \ |
420 | e8230860 | Michael Hanselmann | { echo 's#@PREFIX@#$(prefix)#g'; \ |
421 | e8230860 | Michael Hanselmann | echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ |
422 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
423 | 7a2ba406 | Luca Bigliardi | echo 's#@BINDIR@#$(bindir)#g'; \ |
424 | e8230860 | Michael Hanselmann | echo 's#@SBINDIR@#$(sbindir)#g'; \ |
425 | e8230860 | Michael Hanselmann | echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \ |
426 | 2f2dbb4b | Jun Futagawa | echo 's#@CUSTOM_XEN_BOOTLOADER@#$(XEN_BOOTLOADER)#g'; \ |
427 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \ |
428 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \ |
429 | d3b4cf9f | Iustin Pop | echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \ |
430 | c5159571 | Iustin Pop | echo 's#@PKGLIBDIR@#$(pkglibdir)#g'; \ |
431 | e8230860 | Michael Hanselmann | } > $@ |
432 | e8230860 | Michael Hanselmann | |
433 | e8230860 | Michael Hanselmann | # We need to create symlinks because "make distcheck" will not install Python |
434 | e8230860 | Michael Hanselmann | # files when building. |
435 | dd1dfd9a | Michael Hanselmann | stamp-srclinks: Makefile stamp-directories |
436 | e8230860 | Michael Hanselmann | set -e; \ |
437 | 01a3a718 | Michael Hanselmann | for i in $(srclink_files); do \ |
438 | e8230860 | Michael Hanselmann | if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \ |
439 | e8230860 | Michael Hanselmann | $(LN_S) $(abs_top_srcdir)/$$i $$i; \ |
440 | e8230860 | Michael Hanselmann | fi; \ |
441 | e8230860 | Michael Hanselmann | done |
442 | dd1dfd9a | Michael Hanselmann | touch $@ |
443 | 97a37b3f | Michael Hanselmann | |
444 | 9ff7e35c | Michael Hanselmann | .PHONY: ganeti |
445 | 9ff7e35c | Michael Hanselmann | ganeti: |
446 | 01f3e7b1 | Iustin Pop | cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; } |
447 | 9ff7e35c | Michael Hanselmann | |
448 | eed5c5df | Michael Hanselmann | check-local: |
449 | eed5c5df | Michael Hanselmann | $(CHECK_PYTHON_CODE) $(check_python_code) |
450 | eed5c5df | Michael Hanselmann | |
451 | b6f2e47f | Iustin Pop | # a dist hook rule for catching revision control directories |
452 | b6f2e47f | Iustin Pop | distcheck-hook: |
453 | b6f2e47f | Iustin Pop | if find $(top_distdir) | grep -F -e '.svn' -e '.git'; then \ |
454 | b6f2e47f | Iustin Pop | echo "Found revision control files in final archive" 1>&2 ; \ |
455 | b6f2e47f | Iustin Pop | exit 1; \ |
456 | b6f2e47f | Iustin Pop | fi |
457 | b6f2e47f | Iustin Pop | |
458 | 8925faaa | Iustin Pop | install-exec-local: |
459 | 0d93b082 | Michael Hanselmann | @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \ |
460 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/log/ganeti" \ |
461 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/run/ganeti" |
462 | e8230860 | Michael Hanselmann | |
463 | e8230860 | Michael Hanselmann | stamp-directories: Makefile |
464 | e8230860 | Michael Hanselmann | @mkdir_p@ $(DIRS) |
465 | e8230860 | Michael Hanselmann | touch $@ |
466 | e8230860 | Michael Hanselmann | |
467 | d128fdb6 | Iustin Pop | .PHONY: apidoc |
468 | b959138f | Michael Hanselmann | apidoc: epydoc.conf $(RUN_IN_TEMPDIR) |
469 | d128fdb6 | Iustin Pop | test -e doc/api || mkdir doc/api |
470 | b959138f | Michael Hanselmann | $(RUN_IN_TEMPDIR) epydoc -v \ |
471 | b959138f | Michael Hanselmann | --conf $(CURDIR)/epydoc.conf \ |
472 | b959138f | Michael Hanselmann | --output $(CURDIR)/doc/api |
473 | d128fdb6 | Iustin Pop | |
474 | 13e720f1 | Iustin Pop | .PHONY: TAGS |
475 | 13e720f1 | Iustin Pop | TAGS: |
476 | 13e720f1 | Iustin Pop | rm -f TAGS |
477 | 13e720f1 | Iustin Pop | find . -path './lib/*.py' -o -path 'scripts/gnt-*' -o \ |
478 | 13e720f1 | Iustin Pop | -path 'daemons/ganeti-*' -o -path 'tools/*' | \ |
479 | 13e720f1 | Iustin Pop | etags - |
480 | 13e720f1 | Iustin Pop | |
481 | e8230860 | Michael Hanselmann | # vim: set noet : |