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