root / Makefile.am @ b76aac08
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 | 2ab2b9f5 | Iustin Pop | maninput = $(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS))) $(patsubst %.html,%.html.in,$(manhtml)) |
280 | e8230860 | Michael Hanselmann | |
281 | e8230860 | Michael Hanselmann | TEST_FILES = \ |
282 | e8230860 | Michael Hanselmann | test/data/bdev-both.txt \ |
283 | d816408a | Iustin Pop | test/data/bdev-8.3-both.txt \ |
284 | e8230860 | Michael Hanselmann | test/data/bdev-disk.txt \ |
285 | e8230860 | Michael Hanselmann | test/data/bdev-net.txt \ |
286 | d816408a | Iustin Pop | test/data/proc_drbd8.txt \ |
287 | a6ac80db | Iustin Pop | test/data/proc_drbd80-emptyline.txt \ |
288 | d816408a | Iustin Pop | test/data/proc_drbd83.txt |
289 | e8230860 | Michael Hanselmann | |
290 | e8230860 | Michael Hanselmann | dist_TESTS = \ |
291 | 6de7c41d | Iustin Pop | test/ganeti.bdev_unittest.py \ |
292 | 6de7c41d | Iustin Pop | test/ganeti.cli_unittest.py \ |
293 | 6de7c41d | Iustin Pop | test/ganeti.cmdlib_unittest.py \ |
294 | 74554d66 | Guido Trotter | test/ganeti.confd_client_unittest.py \ |
295 | e8230860 | Michael Hanselmann | test/ganeti.config_unittest.py \ |
296 | 6de7c41d | Iustin Pop | test/ganeti.constants_unittest.py \ |
297 | e8230860 | Michael Hanselmann | test/ganeti.hooks_unittest.py \ |
298 | 6de7c41d | Iustin Pop | test/ganeti.http_unittest.py \ |
299 | e8230860 | Michael Hanselmann | test/ganeti.locking_unittest.py \ |
300 | 407339d0 | Michael Hanselmann | test/ganeti.mcpu_unittest.py \ |
301 | 4c14965f | Guido Trotter | test/ganeti.objects_unittest.py \ |
302 | 4cbd4462 | Oleksiy Mishchenko | test/ganeti.rapi.resources_unittest.py \ |
303 | 6de7c41d | Iustin Pop | test/ganeti.serializer_unittest.py \ |
304 | 6de7c41d | Iustin Pop | test/ganeti.ssh_unittest.py \ |
305 | 6de7c41d | Iustin Pop | test/ganeti.utils_unittest.py \ |
306 | 3f991867 | Michael Hanselmann | test/ganeti.workerpool_unittest.py \ |
307 | 3f991867 | Michael Hanselmann | test/docs_unittest.py |
308 | e8230860 | Michael Hanselmann | |
309 | e8230860 | Michael Hanselmann | nodist_TESTS = |
310 | e8230860 | Michael Hanselmann | |
311 | e8230860 | Michael Hanselmann | TESTS = $(dist_TESTS) $(nodist_TESTS) |
312 | e8230860 | Michael Hanselmann | |
313 | f848ac00 | Michael Hanselmann | TESTS_ENVIRONMENT = \ |
314 | f848ac00 | Michael Hanselmann | PYTHONPATH=. TOP_SRCDIR=$(abs_top_srcdir) \ |
315 | f848ac00 | Michael Hanselmann | $(RUN_IN_TEMPDIR) $(PYTHON) |
316 | 6e06b36c | Iustin Pop | |
317 | eed5c5df | Michael Hanselmann | all_python_code = \ |
318 | 01a3a718 | Michael Hanselmann | $(dist_sbin_SCRIPTS) \ |
319 | 01a3a718 | Michael Hanselmann | $(dist_tools_SCRIPTS) \ |
320 | 01a3a718 | Michael Hanselmann | $(dist_TESTS) \ |
321 | 01a3a718 | Michael Hanselmann | $(pkgpython_PYTHON) \ |
322 | 01a3a718 | Michael Hanselmann | $(hypervisor_PYTHON) \ |
323 | 01a3a718 | Michael Hanselmann | $(rapi_PYTHON) \ |
324 | 01a3a718 | Michael Hanselmann | $(http_PYTHON) \ |
325 | 01a3a718 | Michael Hanselmann | $(confd_PYTHON) \ |
326 | 01a3a718 | Michael Hanselmann | $(noinst_PYTHON) |
327 | 01a3a718 | Michael Hanselmann | |
328 | eed5c5df | Michael Hanselmann | srclink_files = \ |
329 | eed5c5df | Michael Hanselmann | man/footer.sgml \ |
330 | eed5c5df | Michael Hanselmann | $(all_python_code) |
331 | eed5c5df | Michael Hanselmann | |
332 | eed5c5df | Michael Hanselmann | check_python_code = \ |
333 | eed5c5df | Michael Hanselmann | $(all_python_code) |
334 | eed5c5df | Michael Hanselmann | |
335 | dbefcc7e | Michael Hanselmann | devel/upload: devel/upload.in $(REPLACE_VARS_SED) |
336 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
337 | e8230860 | Michael Hanselmann | chmod u+x $@ |
338 | e8230860 | Michael Hanselmann | |
339 | dbefcc7e | Michael Hanselmann | daemons/ganeti-cleaner: daemons/ganeti-cleaner.in \ |
340 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED) |
341 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
342 | 5c566e17 | Michael Hanselmann | chmod +x $@ |
343 | e8230860 | Michael Hanselmann | |
344 | dbefcc7e | Michael Hanselmann | doc/examples/%: doc/examples/%.in \ |
345 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED) |
346 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
347 | e8230860 | Michael Hanselmann | |
348 | dbefcc7e | Michael Hanselmann | doc/examples/hooks/%: doc/examples/hooks/%.in \ |
349 | a2442bf9 | Luca Bigliardi | $(REPLACE_VARS_SED) |
350 | a2442bf9 | Luca Bigliardi | sed -f $(REPLACE_VARS_SED) < $< > $@ |
351 | a2442bf9 | Luca Bigliardi | |
352 | b959138f | Michael Hanselmann | doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \ |
353 | 4f3d5b76 | Michael Hanselmann | lib/cli.py $(gnt_scripts) tools/burnin |
354 | b959138f | Michael Hanselmann | PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@ |
355 | 4f3d5b76 | Michael Hanselmann | |
356 | f86e82ef | Iustin Pop | doc/%.png: doc/%.dot |
357 | 2ab2b9f5 | Iustin Pop | @test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; } |
358 | f86e82ef | Iustin Pop | $(DOT) -Tpng -o $@ $< |
359 | f86e82ef | Iustin Pop | |
360 | 2ab2b9f5 | Iustin Pop | man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
361 | 33b0062b | Michael Hanselmann | @test -n "$(DOCBOOK2MAN)" || { echo 'docbook2man' not found during configure; exit 1; } |
362 | 434c34a5 | Michael Hanselmann | $(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $(notdir $(@:.in=)) $@ |
363 | 2ab2b9f5 | Iustin Pop | |
364 | 2ab2b9f5 | Iustin Pop | man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
365 | 8c7aaa72 | Alexander Schreiber | @test -n "$(DOCBOOK2HTML)" || { echo 'docbook2html' not found during configure; exit 1; } |
366 | 434c34a5 | Michael Hanselmann | $(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $(notdir $(@:.in=)) $@ |
367 | 2ab2b9f5 | Iustin Pop | |
368 | dbefcc7e | Michael Hanselmann | man/%.7: man/%.7.in $(REPLACE_VARS_SED) |
369 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
370 | e8230860 | Michael Hanselmann | |
371 | dbefcc7e | Michael Hanselmann | man/%.8: man/%.8.in $(REPLACE_VARS_SED) |
372 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
373 | e8230860 | Michael Hanselmann | |
374 | dbefcc7e | Michael Hanselmann | man/%.html: man/%.html.in $(REPLACE_VARS_SED) |
375 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
376 | f29266b4 | Iustin Pop | |
377 | e8230860 | Michael Hanselmann | lib/_autoconf.py: Makefile stamp-directories |
378 | e8230860 | Michael Hanselmann | set -e; \ |
379 | e8230860 | Michael Hanselmann | { echo '# This file is automatically generated, do not edit!'; \ |
380 | e8230860 | Michael Hanselmann | echo '#'; \ |
381 | 67047322 | Iustin Pop | echo ''; \ |
382 | 67047322 | Iustin Pop | echo '"""Build-time configuration for Ganeti.'; \ |
383 | 67047322 | Iustin Pop | echo '';\ |
384 | 67047322 | Iustin Pop | echo 'This file is autogenerated by the build process.'; \ |
385 | 67047322 | Iustin Pop | echo 'For any changes you need to re-run ./configure (and'; \ |
386 | 67047322 | Iustin Pop | echo 'not edit by hand).'; \ |
387 | 67047322 | Iustin Pop | echo ''; \ |
388 | 67047322 | Iustin Pop | echo '"""'; \ |
389 | 67047322 | Iustin Pop | echo ''; \ |
390 | e8230860 | Michael Hanselmann | echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \ |
391 | e8230860 | Michael Hanselmann | echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \ |
392 | e8230860 | Michael Hanselmann | echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \ |
393 | e8230860 | Michael Hanselmann | echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \ |
394 | e8230860 | Michael Hanselmann | echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \ |
395 | e8230860 | Michael Hanselmann | echo "VERSION_FULL = '$(VERSION_FULL)'"; \ |
396 | e8230860 | Michael Hanselmann | echo "LOCALSTATEDIR = '$(localstatedir)'"; \ |
397 | e8230860 | Michael Hanselmann | echo "SYSCONFDIR = '$(sysconfdir)'"; \ |
398 | e8230860 | Michael Hanselmann | echo "SSH_INITD_SCRIPT = '$(SSH_INITD_SCRIPT)'"; \ |
399 | e8230860 | Michael Hanselmann | echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \ |
400 | e8230860 | Michael Hanselmann | echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \ |
401 | 2f2dbb4b | Jun Futagawa | echo "XEN_BOOTLOADER = '$(XEN_BOOTLOADER)'"; \ |
402 | e8230860 | Michael Hanselmann | echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \ |
403 | e8230860 | Michael Hanselmann | echo "XEN_INITRD = '$(XEN_INITRD)'"; \ |
404 | e8230860 | Michael Hanselmann | echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \ |
405 | e8230860 | Michael Hanselmann | echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \ |
406 | 7e2c5b9e | Guido Trotter | echo "KVM_PATH = '$(KVM_PATH)'"; \ |
407 | 30e42c4e | Guido Trotter | echo "KVM_MIGRATION_PORT = '$(KVM_MIGRATION_PORT)'"; \ |
408 | 14aa53cb | Guido Trotter | echo "SOCAT_PATH = '$(SOCAT_PATH)'"; \ |
409 | bea60381 | Michael Hanselmann | echo "LVM_STRIPECOUNT = $(LVM_STRIPECOUNT)"; \ |
410 | bea60381 | Michael Hanselmann | echo "TOOLSDIR = '$(toolsdir)'"; \ |
411 | 4f3d5b76 | Michael Hanselmann | echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \ |
412 | e8230860 | Michael Hanselmann | } > $@ |
413 | e8230860 | Michael Hanselmann | |
414 | dbefcc7e | Michael Hanselmann | $(REPLACE_VARS_SED): Makefile |
415 | e8230860 | Michael Hanselmann | set -e; \ |
416 | e8230860 | Michael Hanselmann | { echo 's#@PREFIX@#$(prefix)#g'; \ |
417 | e8230860 | Michael Hanselmann | echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ |
418 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
419 | 7a2ba406 | Luca Bigliardi | echo 's#@BINDIR@#$(bindir)#g'; \ |
420 | e8230860 | Michael Hanselmann | echo 's#@SBINDIR@#$(sbindir)#g'; \ |
421 | e8230860 | Michael Hanselmann | echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \ |
422 | 2f2dbb4b | Jun Futagawa | echo 's#@CUSTOM_XEN_BOOTLOADER@#$(XEN_BOOTLOADER)#g'; \ |
423 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \ |
424 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \ |
425 | d3b4cf9f | Iustin Pop | echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \ |
426 | c5159571 | Iustin Pop | echo 's#@PKGLIBDIR@#$(pkglibdir)#g'; \ |
427 | e8230860 | Michael Hanselmann | } > $@ |
428 | e8230860 | Michael Hanselmann | |
429 | e8230860 | Michael Hanselmann | # We need to create symlinks because "make distcheck" will not install Python |
430 | e8230860 | Michael Hanselmann | # files when building. |
431 | dd1dfd9a | Michael Hanselmann | stamp-srclinks: Makefile stamp-directories |
432 | e8230860 | Michael Hanselmann | set -e; \ |
433 | 01a3a718 | Michael Hanselmann | for i in $(srclink_files); do \ |
434 | e8230860 | Michael Hanselmann | if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \ |
435 | e8230860 | Michael Hanselmann | $(LN_S) $(abs_top_srcdir)/$$i $$i; \ |
436 | e8230860 | Michael Hanselmann | fi; \ |
437 | e8230860 | Michael Hanselmann | done |
438 | dd1dfd9a | Michael Hanselmann | touch $@ |
439 | 97a37b3f | Michael Hanselmann | |
440 | 9ff7e35c | Michael Hanselmann | .PHONY: ganeti |
441 | 9ff7e35c | Michael Hanselmann | ganeti: |
442 | 01f3e7b1 | Iustin Pop | cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; } |
443 | 9ff7e35c | Michael Hanselmann | |
444 | eed5c5df | Michael Hanselmann | check-local: |
445 | eed5c5df | Michael Hanselmann | $(CHECK_PYTHON_CODE) $(check_python_code) |
446 | eed5c5df | Michael Hanselmann | |
447 | b6f2e47f | Iustin Pop | # a dist hook rule for catching revision control directories |
448 | b6f2e47f | Iustin Pop | distcheck-hook: |
449 | b6f2e47f | Iustin Pop | if find $(top_distdir) | grep -F -e '.svn' -e '.git'; then \ |
450 | b6f2e47f | Iustin Pop | echo "Found revision control files in final archive" 1>&2 ; \ |
451 | b6f2e47f | Iustin Pop | exit 1; \ |
452 | b6f2e47f | Iustin Pop | fi |
453 | b6f2e47f | Iustin Pop | |
454 | 8925faaa | Iustin Pop | install-exec-local: |
455 | 0d93b082 | Michael Hanselmann | @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \ |
456 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/log/ganeti" \ |
457 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/run/ganeti" |
458 | e8230860 | Michael Hanselmann | |
459 | e8230860 | Michael Hanselmann | stamp-directories: Makefile |
460 | e8230860 | Michael Hanselmann | @mkdir_p@ $(DIRS) |
461 | e8230860 | Michael Hanselmann | touch $@ |
462 | e8230860 | Michael Hanselmann | |
463 | d128fdb6 | Iustin Pop | .PHONY: apidoc |
464 | b959138f | Michael Hanselmann | apidoc: epydoc.conf $(RUN_IN_TEMPDIR) |
465 | d128fdb6 | Iustin Pop | test -e doc/api || mkdir doc/api |
466 | b959138f | Michael Hanselmann | $(RUN_IN_TEMPDIR) epydoc -v \ |
467 | b959138f | Michael Hanselmann | --conf $(CURDIR)/epydoc.conf \ |
468 | b959138f | Michael Hanselmann | --output $(CURDIR)/doc/api |
469 | d128fdb6 | Iustin Pop | |
470 | 13e720f1 | Iustin Pop | .PHONY: TAGS |
471 | 13e720f1 | Iustin Pop | TAGS: |
472 | 13e720f1 | Iustin Pop | rm -f TAGS |
473 | 13e720f1 | Iustin Pop | find . -path './lib/*.py' -o -path 'scripts/gnt-*' -o \ |
474 | 13e720f1 | Iustin Pop | -path 'daemons/ganeti-*' -o -path 'tools/*' | \ |
475 | 13e720f1 | Iustin Pop | etags - |
476 | 13e720f1 | Iustin Pop | |
477 | e8230860 | Michael Hanselmann | # vim: set noet : |