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