root / Makefile.am @ 13e720f1
History | View | Annotate | Download (9.6 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 | e8230860 | Michael Hanselmann | REPLACE_VARS_SED = autotools/replace_vars.sed |
15 | e8230860 | Michael Hanselmann | |
16 | e8230860 | Michael Hanselmann | hypervisordir = $(pkgpythondir)/hypervisor |
17 | ff9efc03 | Michael Hanselmann | httpdir = $(pkgpythondir)/http |
18 | 8c229cc7 | Oleksiy Mishchenko | rapidir = $(pkgpythondir)/rapi |
19 | e8230860 | Michael Hanselmann | toolsdir = $(pkglibdir)/tools |
20 | e8230860 | Michael Hanselmann | docdir = $(datadir)/doc/$(PACKAGE) |
21 | e8230860 | Michael Hanselmann | |
22 | e8230860 | Michael Hanselmann | DIRS = \ |
23 | e8230860 | Michael Hanselmann | autotools \ |
24 | e8230860 | Michael Hanselmann | daemons \ |
25 | e8230860 | Michael Hanselmann | devel \ |
26 | e8230860 | Michael Hanselmann | doc \ |
27 | e8230860 | Michael Hanselmann | doc/examples \ |
28 | e8230860 | Michael Hanselmann | lib \ |
29 | ff9efc03 | Michael Hanselmann | lib/http \ |
30 | e8230860 | Michael Hanselmann | lib/hypervisor \ |
31 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi \ |
32 | e8230860 | Michael Hanselmann | man \ |
33 | e8230860 | Michael Hanselmann | qa \ |
34 | e8230860 | Michael Hanselmann | scripts \ |
35 | e8230860 | Michael Hanselmann | test \ |
36 | e8230860 | Michael Hanselmann | test/data \ |
37 | e8230860 | Michael Hanselmann | tools |
38 | e8230860 | Michael Hanselmann | |
39 | 2ab2b9f5 | Iustin Pop | MAINTAINERCLEANFILES = \ |
40 | d17e74b4 | Iustin Pop | $(docpng) \ |
41 | 2ab2b9f5 | Iustin Pop | $(maninput) |
42 | 2ab2b9f5 | Iustin Pop | |
43 | d17e74b4 | Iustin Pop | maintainer-clean-local: |
44 | d17e74b4 | Iustin Pop | -rm -rf doc/api doc/build doc/html |
45 | d17e74b4 | Iustin Pop | |
46 | e8230860 | Michael Hanselmann | CLEANFILES = \ |
47 | e8230860 | Michael Hanselmann | autotools/replace_vars.sed \ |
48 | e8230860 | Michael Hanselmann | devel/upload \ |
49 | f72f8622 | Iustin Pop | doc/examples/bash_completion \ |
50 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd \ |
51 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron \ |
52 | e8230860 | Michael Hanselmann | lib/*.py[co] \ |
53 | ff9efc03 | Michael Hanselmann | lib/http/*.py[co] \ |
54 | e8230860 | Michael Hanselmann | lib/hypervisor/*.py[co] \ |
55 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/*.py[co] \ |
56 | 2ab2b9f5 | Iustin Pop | $(man_MANS) \ |
57 | 2ab2b9f5 | Iustin Pop | $(manhtml) \ |
58 | e8230860 | Michael Hanselmann | qa/*.py[co] \ |
59 | e8230860 | Michael Hanselmann | test/*.py[co] \ |
60 | e8230860 | Michael Hanselmann | stamp-directories \ |
61 | e8230860 | Michael Hanselmann | $(nodist_pkgpython_PYTHON) |
62 | e8230860 | Michael Hanselmann | |
63 | e8230860 | Michael Hanselmann | nodist_pkgpython_PYTHON = \ |
64 | e8230860 | Michael Hanselmann | lib/_autoconf.py |
65 | e8230860 | Michael Hanselmann | |
66 | e8230860 | Michael Hanselmann | pkgpython_PYTHON = \ |
67 | e8230860 | Michael Hanselmann | lib/__init__.py \ |
68 | e8230860 | Michael Hanselmann | lib/backend.py \ |
69 | e8230860 | Michael Hanselmann | lib/bdev.py \ |
70 | e8230860 | Michael Hanselmann | lib/bootstrap.py \ |
71 | e8230860 | Michael Hanselmann | lib/cli.py \ |
72 | e8230860 | Michael Hanselmann | lib/cmdlib.py \ |
73 | e8230860 | Michael Hanselmann | lib/config.py \ |
74 | e8230860 | Michael Hanselmann | lib/constants.py \ |
75 | 821d9e43 | Michael Hanselmann | lib/daemon.py \ |
76 | e8230860 | Michael Hanselmann | lib/errors.py \ |
77 | e8230860 | Michael Hanselmann | lib/jqueue.py \ |
78 | 8b537bb0 | Michael Hanselmann | lib/jstore.py \ |
79 | e8230860 | Michael Hanselmann | lib/locking.py \ |
80 | e8230860 | Michael Hanselmann | lib/luxi.py \ |
81 | e8230860 | Michael Hanselmann | lib/mcpu.py \ |
82 | e8230860 | Michael Hanselmann | lib/objects.py \ |
83 | e8230860 | Michael Hanselmann | lib/opcodes.py \ |
84 | e8230860 | Michael Hanselmann | lib/rpc.py \ |
85 | e8230860 | Michael Hanselmann | lib/serializer.py \ |
86 | e8230860 | Michael Hanselmann | lib/ssconf.py \ |
87 | e8230860 | Michael Hanselmann | lib/ssh.py \ |
88 | 76094e37 | Michael Hanselmann | lib/utils.py \ |
89 | 76094e37 | Michael Hanselmann | lib/workerpool.py |
90 | e8230860 | Michael Hanselmann | |
91 | e8230860 | Michael Hanselmann | hypervisor_PYTHON = \ |
92 | e8230860 | Michael Hanselmann | lib/hypervisor/__init__.py \ |
93 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_base.py \ |
94 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_fake.py \ |
95 | eb58f9b1 | Guido Trotter | lib/hypervisor/hv_kvm.py \ |
96 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_xen.py |
97 | e8230860 | Michael Hanselmann | |
98 | 8c229cc7 | Oleksiy Mishchenko | rapi_PYTHON = \ |
99 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/__init__.py \ |
100 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/baserlib.py \ |
101 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/connector.py \ |
102 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/rlib2.py |
103 | 8c229cc7 | Oleksiy Mishchenko | |
104 | ff9efc03 | Michael Hanselmann | http_PYTHON = \ |
105 | 02cab3e7 | Michael Hanselmann | lib/http/__init__.py \ |
106 | be500c29 | Michael Hanselmann | lib/http/auth.py \ |
107 | 02cab3e7 | Michael Hanselmann | lib/http/client.py \ |
108 | 02cab3e7 | Michael Hanselmann | lib/http/server.py |
109 | ff9efc03 | Michael Hanselmann | |
110 | 8c229cc7 | Oleksiy Mishchenko | |
111 | f05c99f3 | Michael Hanselmann | docrst = \ |
112 | ffa6869f | Iustin Pop | doc/admin.rst \ |
113 | 5c0c1eeb | Iustin Pop | doc/design-2.0.rst \ |
114 | e2078d28 | Iustin Pop | doc/glossary.rst \ |
115 | 4d6443f4 | Iustin Pop | doc/hooks.rst \ |
116 | 876860a3 | Iustin Pop | doc/iallocator.rst \ |
117 | d17e74b4 | Iustin Pop | doc/index.rst \ |
118 | 28e15341 | Iustin Pop | doc/install.rst \ |
119 | 6d81475c | Iustin Pop | doc/rapi.rst \ |
120 | 73100cf5 | Iustin Pop | doc/security.rst |
121 | f05c99f3 | Michael Hanselmann | |
122 | d17e74b4 | Iustin Pop | doc/html: $(docrst) $(docpng) doc/conf.py configure.ac |
123 | d17e74b4 | Iustin Pop | @test -n "$(SPHINX)" || \ |
124 | d17e74b4 | Iustin Pop | { echo 'sphinx-build' not found during configure; exit 1; } |
125 | d17e74b4 | Iustin Pop | mkdir -p doc/build/doctrees |
126 | d17e74b4 | Iustin Pop | PYTHONPATH=.:$(top_builddir) sphinx-build -q -b html \ |
127 | d17e74b4 | Iustin Pop | -d doc/build/doctrees \ |
128 | d17e74b4 | Iustin Pop | -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \ |
129 | d17e74b4 | Iustin Pop | -D release="$(PACKAGE_VERSION)" \ |
130 | d17e74b4 | Iustin Pop | $(top_srcdir)/doc doc/html |
131 | d17e74b4 | Iustin Pop | touch "$@" |
132 | 2ab2b9f5 | Iustin Pop | |
133 | b8195800 | Iustin Pop | docdot = \ |
134 | b8195800 | Iustin Pop | doc/arch-2.0.dot |
135 | b8195800 | Iustin Pop | |
136 | d17e74b4 | Iustin Pop | docpng = $(patsubst %.dot,%.png,$(docdot)) |
137 | e8230860 | Michael Hanselmann | |
138 | d17e74b4 | Iustin Pop | noinst_DATA = $(manhtml) doc/html |
139 | f29266b4 | Iustin Pop | |
140 | e8230860 | Michael Hanselmann | dist_sbin_SCRIPTS = \ |
141 | e8230860 | Michael Hanselmann | daemons/ganeti-noded \ |
142 | e8230860 | Michael Hanselmann | daemons/ganeti-watcher \ |
143 | e8230860 | Michael Hanselmann | daemons/ganeti-masterd \ |
144 | 8c229cc7 | Oleksiy Mishchenko | daemons/ganeti-rapi \ |
145 | e8230860 | Michael Hanselmann | scripts/gnt-backup \ |
146 | e8230860 | Michael Hanselmann | scripts/gnt-cluster \ |
147 | e8230860 | Michael Hanselmann | scripts/gnt-debug \ |
148 | e8230860 | Michael Hanselmann | scripts/gnt-instance \ |
149 | e8230860 | Michael Hanselmann | scripts/gnt-job \ |
150 | e8230860 | Michael Hanselmann | scripts/gnt-node \ |
151 | e8230860 | Michael Hanselmann | scripts/gnt-os |
152 | e8230860 | Michael Hanselmann | |
153 | e8230860 | Michael Hanselmann | dist_tools_SCRIPTS = \ |
154 | e8230860 | Michael Hanselmann | tools/burnin \ |
155 | e8230860 | Michael Hanselmann | tools/cfgshell \ |
156 | e8230860 | Michael Hanselmann | tools/cfgupgrade \ |
157 | e8230860 | Michael Hanselmann | tools/lvmstrap |
158 | e8230860 | Michael Hanselmann | |
159 | e8230860 | Michael Hanselmann | EXTRA_DIST = \ |
160 | 2ab2b9f5 | Iustin Pop | $(MAINTAINERCLEANFILES) \ |
161 | e8230860 | Michael Hanselmann | NEWS \ |
162 | e8230860 | Michael Hanselmann | DEVNOTES \ |
163 | e8230860 | Michael Hanselmann | autotools/docbook-wrapper \ |
164 | e8230860 | Michael Hanselmann | devel/upload.in \ |
165 | b8195800 | Iustin Pop | $(docdot) \ |
166 | d17e74b4 | Iustin Pop | $(docrst) \ |
167 | d17e74b4 | Iustin Pop | doc/conf.py \ |
168 | d17e74b4 | Iustin Pop | doc/html \ |
169 | f72f8622 | Iustin Pop | doc/examples/bash_completion.in \ |
170 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd.in \ |
171 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron.in \ |
172 | e8230860 | Michael Hanselmann | doc/examples/dumb-allocator \ |
173 | 0f933d15 | Guido Trotter | doc/locking.txt \ |
174 | e8230860 | Michael Hanselmann | test/testutils.py \ |
175 | e8230860 | Michael Hanselmann | test/mocks.py \ |
176 | e8230860 | Michael Hanselmann | $(dist_TESTS) \ |
177 | e8230860 | Michael Hanselmann | $(TEST_FILES) \ |
178 | e8230860 | Michael Hanselmann | man/footer.sgml \ |
179 | 2ab2b9f5 | Iustin Pop | $(mansgml) $(maninput) \ |
180 | e8230860 | Michael Hanselmann | qa/ganeti-qa.py \ |
181 | 39e0d19e | Michael Hanselmann | qa/qa-sample.json \ |
182 | e8230860 | Michael Hanselmann | qa/qa_cluster.py \ |
183 | e8230860 | Michael Hanselmann | qa/qa_config.py \ |
184 | e8230860 | Michael Hanselmann | qa/qa_daemon.py \ |
185 | e8230860 | Michael Hanselmann | qa/qa_env.py \ |
186 | e8230860 | Michael Hanselmann | qa/qa_error.py \ |
187 | e8230860 | Michael Hanselmann | qa/qa_instance.py \ |
188 | e8230860 | Michael Hanselmann | qa/qa_node.py \ |
189 | e8230860 | Michael Hanselmann | qa/qa_os.py \ |
190 | a47f574c | Oleksiy Mishchenko | qa/qa_rapi.py \ |
191 | e8230860 | Michael Hanselmann | qa/qa_tags.py \ |
192 | e8230860 | Michael Hanselmann | qa/qa_utils.py |
193 | e8230860 | Michael Hanselmann | |
194 | e8230860 | Michael Hanselmann | man_MANS = \ |
195 | e8230860 | Michael Hanselmann | man/ganeti.7 \ |
196 | 320d986d | Iustin Pop | man/ganeti-masterd.8 \ |
197 | e8230860 | Michael Hanselmann | man/ganeti-noded.8 \ |
198 | e8230860 | Michael Hanselmann | man/ganeti-os-interface.7 \ |
199 | 320d986d | Iustin Pop | man/ganeti-rapi.8 \ |
200 | e8230860 | Michael Hanselmann | man/ganeti-watcher.8 \ |
201 | e8230860 | Michael Hanselmann | man/gnt-backup.8 \ |
202 | e8230860 | Michael Hanselmann | man/gnt-cluster.8 \ |
203 | d3b4cf9f | Iustin Pop | man/gnt-debug.8 \ |
204 | e8230860 | Michael Hanselmann | man/gnt-instance.8 \ |
205 | d3b4cf9f | Iustin Pop | man/gnt-job.8 \ |
206 | e8230860 | Michael Hanselmann | man/gnt-node.8 \ |
207 | e8230860 | Michael Hanselmann | man/gnt-os.8 |
208 | e8230860 | Michael Hanselmann | |
209 | 2ab2b9f5 | Iustin Pop | mansgml = $(patsubst %.7,%.sgml,$(patsubst %.8,%.sgml,$(man_MANS))) |
210 | 2ab2b9f5 | Iustin Pop | manhtml = $(patsubst %.sgml,%.html,$(mansgml)) |
211 | 2ab2b9f5 | Iustin Pop | maninput = $(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS))) $(patsubst %.html,%.html.in,$(manhtml)) |
212 | e8230860 | Michael Hanselmann | |
213 | e8230860 | Michael Hanselmann | TEST_FILES = \ |
214 | e8230860 | Michael Hanselmann | test/data/bdev-both.txt \ |
215 | d816408a | Iustin Pop | test/data/bdev-8.3-both.txt \ |
216 | e8230860 | Michael Hanselmann | test/data/bdev-disk.txt \ |
217 | e8230860 | Michael Hanselmann | test/data/bdev-net.txt \ |
218 | d816408a | Iustin Pop | test/data/proc_drbd8.txt \ |
219 | d816408a | Iustin Pop | test/data/proc_drbd83.txt |
220 | e8230860 | Michael Hanselmann | |
221 | e8230860 | Michael Hanselmann | dist_TESTS = \ |
222 | 6de7c41d | Iustin Pop | test/ganeti.bdev_unittest.py \ |
223 | 6de7c41d | Iustin Pop | test/ganeti.cli_unittest.py \ |
224 | 6de7c41d | Iustin Pop | test/ganeti.cmdlib_unittest.py \ |
225 | e8230860 | Michael Hanselmann | test/ganeti.config_unittest.py \ |
226 | 6de7c41d | Iustin Pop | test/ganeti.constants_unittest.py \ |
227 | e8230860 | Michael Hanselmann | test/ganeti.hooks_unittest.py \ |
228 | 6de7c41d | Iustin Pop | test/ganeti.http_unittest.py \ |
229 | e8230860 | Michael Hanselmann | test/ganeti.locking_unittest.py \ |
230 | 4cbd4462 | Oleksiy Mishchenko | test/ganeti.rapi.resources_unittest.py \ |
231 | 6de7c41d | Iustin Pop | test/ganeti.serializer_unittest.py \ |
232 | 6de7c41d | Iustin Pop | test/ganeti.ssh_unittest.py \ |
233 | 6de7c41d | Iustin Pop | test/ganeti.utils_unittest.py \ |
234 | 6de7c41d | Iustin Pop | test/ganeti.workerpool_unittest.py |
235 | e8230860 | Michael Hanselmann | |
236 | e8230860 | Michael Hanselmann | nodist_TESTS = |
237 | e8230860 | Michael Hanselmann | |
238 | e8230860 | Michael Hanselmann | TESTS = $(dist_TESTS) $(nodist_TESTS) |
239 | e8230860 | Michael Hanselmann | |
240 | c138024e | Carlos Valiente | TESTS_ENVIRONMENT = PYTHONPATH=.:$(top_builddir) $(PYTHON) |
241 | e8230860 | Michael Hanselmann | |
242 | e8230860 | Michael Hanselmann | all-local: stamp-directories lib/_autoconf.py devel/upload \ |
243 | e2a2a2eb | Iustin Pop | doc/examples/bash_completion \ |
244 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd doc/examples/ganeti.cron |
245 | e8230860 | Michael Hanselmann | |
246 | e8230860 | Michael Hanselmann | devel/upload: devel/upload.in stamp-directories $(REPLACE_VARS_SED) |
247 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
248 | e8230860 | Michael Hanselmann | chmod u+x $@ |
249 | e8230860 | Michael Hanselmann | |
250 | e2a2a2eb | Iustin Pop | doc/examples/%: doc/examples/%.in stamp-directories \ |
251 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED) |
252 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
253 | e8230860 | Michael Hanselmann | |
254 | f86e82ef | Iustin Pop | doc/%.png: doc/%.dot |
255 | 2ab2b9f5 | Iustin Pop | @test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; } |
256 | f86e82ef | Iustin Pop | $(DOT) -Tpng -o $@ $< |
257 | f86e82ef | Iustin Pop | |
258 | 2ab2b9f5 | Iustin Pop | man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
259 | 8c7aaa72 | Alexander Schreiber | @test -n "$(DOCBOOK2MAN)" || { echo 'docbook2html' not found during configure; exit 1; } |
260 | 2ab2b9f5 | Iustin Pop | TMPDIR=`mktemp -d` && { \ |
261 | 2ab2b9f5 | Iustin Pop | $(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $$TMPDIR/$(patsubst man/%.in,%,$@) ; \ |
262 | 2ab2b9f5 | Iustin Pop | mv $$TMPDIR/$(patsubst man/%.in,%,$@) $@ ; \ |
263 | 2ab2b9f5 | Iustin Pop | rm -rf "$$TMPDIR" ; \ |
264 | 2ab2b9f5 | Iustin Pop | } |
265 | 2ab2b9f5 | Iustin Pop | |
266 | 2ab2b9f5 | Iustin Pop | man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) |
267 | 8c7aaa72 | Alexander Schreiber | @test -n "$(DOCBOOK2HTML)" || { echo 'docbook2html' not found during configure; exit 1; } |
268 | 2ab2b9f5 | Iustin Pop | TMPDIR=`mktemp -d` && { \ |
269 | 2ab2b9f5 | Iustin Pop | $(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $$TMPDIR/$(patsubst man/%.in,%,$@) ; \ |
270 | 2ab2b9f5 | Iustin Pop | mv $$TMPDIR/$(patsubst man/%.in,%,$@) $@ ; \ |
271 | 2ab2b9f5 | Iustin Pop | rm -rf "$$TMPDIR" ; \ |
272 | 2ab2b9f5 | Iustin Pop | } |
273 | 2ab2b9f5 | Iustin Pop | |
274 | 2ab2b9f5 | Iustin Pop | man/%.7: man/%.7.in stamp-directories $(REPLACE_VARS_SED) |
275 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
276 | e8230860 | Michael Hanselmann | |
277 | 2ab2b9f5 | Iustin Pop | man/%.8: man/%.8.in stamp-directories $(REPLACE_VARS_SED) |
278 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
279 | e8230860 | Michael Hanselmann | |
280 | 2ab2b9f5 | Iustin Pop | man/%.html: man/%.html.in stamp-directories $(REPLACE_VARS_SED) |
281 | 2ab2b9f5 | Iustin Pop | sed -f $(REPLACE_VARS_SED) < $< > $@ |
282 | f29266b4 | Iustin Pop | |
283 | e8230860 | Michael Hanselmann | man/footer.sgml $(TESTS): srclinks |
284 | e8230860 | Michael Hanselmann | |
285 | 6d81475c | Iustin Pop | $(TESTS): ganeti lib/_autoconf.py |
286 | e8230860 | Michael Hanselmann | |
287 | e8230860 | Michael Hanselmann | lib/_autoconf.py: Makefile stamp-directories |
288 | e8230860 | Michael Hanselmann | set -e; \ |
289 | e8230860 | Michael Hanselmann | { echo '# This file is automatically generated, do not edit!'; \ |
290 | e8230860 | Michael Hanselmann | echo '#'; \ |
291 | 67047322 | Iustin Pop | echo ''; \ |
292 | 67047322 | Iustin Pop | echo '"""Build-time configuration for Ganeti.'; \ |
293 | 67047322 | Iustin Pop | echo '';\ |
294 | 67047322 | Iustin Pop | echo 'This file is autogenerated by the build process.'; \ |
295 | 67047322 | Iustin Pop | echo 'For any changes you need to re-run ./configure (and'; \ |
296 | 67047322 | Iustin Pop | echo 'not edit by hand).'; \ |
297 | 67047322 | Iustin Pop | echo ''; \ |
298 | 67047322 | Iustin Pop | echo '"""'; \ |
299 | 67047322 | Iustin Pop | echo ''; \ |
300 | e8230860 | Michael Hanselmann | echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \ |
301 | e8230860 | Michael Hanselmann | echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \ |
302 | e8230860 | Michael Hanselmann | echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \ |
303 | e8230860 | Michael Hanselmann | echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \ |
304 | e8230860 | Michael Hanselmann | echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \ |
305 | e8230860 | Michael Hanselmann | echo "VERSION_FULL = '$(VERSION_FULL)'"; \ |
306 | e8230860 | Michael Hanselmann | echo "LOCALSTATEDIR = '$(localstatedir)'"; \ |
307 | e8230860 | Michael Hanselmann | echo "SYSCONFDIR = '$(sysconfdir)'"; \ |
308 | e8230860 | Michael Hanselmann | echo "SSH_INITD_SCRIPT = '$(SSH_INITD_SCRIPT)'"; \ |
309 | e8230860 | Michael Hanselmann | echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \ |
310 | e8230860 | Michael Hanselmann | echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \ |
311 | e8230860 | Michael Hanselmann | echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \ |
312 | e8230860 | Michael Hanselmann | echo "XEN_INITRD = '$(XEN_INITRD)'"; \ |
313 | e8230860 | Michael Hanselmann | echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \ |
314 | e8230860 | Michael Hanselmann | echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \ |
315 | 7e2c5b9e | Guido Trotter | echo "KVM_PATH = '$(KVM_PATH)'"; \ |
316 | 30e42c4e | Guido Trotter | echo "KVM_MIGRATION_PORT = '$(KVM_MIGRATION_PORT)'"; \ |
317 | 14aa53cb | Guido Trotter | echo "SOCAT_PATH = '$(SOCAT_PATH)'"; \ |
318 | e8230860 | Michael Hanselmann | } > $@ |
319 | e8230860 | Michael Hanselmann | |
320 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED): Makefile stamp-directories |
321 | e8230860 | Michael Hanselmann | set -e; \ |
322 | e8230860 | Michael Hanselmann | { echo 's#@PREFIX@#$(prefix)#g'; \ |
323 | e8230860 | Michael Hanselmann | echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ |
324 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
325 | e8230860 | Michael Hanselmann | echo 's#@SBINDIR@#$(sbindir)#g'; \ |
326 | e8230860 | Michael Hanselmann | echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \ |
327 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \ |
328 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \ |
329 | d3b4cf9f | Iustin Pop | echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \ |
330 | e8230860 | Michael Hanselmann | } > $@ |
331 | e8230860 | Michael Hanselmann | |
332 | e8230860 | Michael Hanselmann | # We need to create symlinks because "make distcheck" will not install Python |
333 | e8230860 | Michael Hanselmann | # files when building. |
334 | e8230860 | Michael Hanselmann | #.PHONY: srclinks |
335 | e8230860 | Michael Hanselmann | srclinks: stamp-directories |
336 | e8230860 | Michael Hanselmann | set -e; \ |
337 | ff9efc03 | Michael Hanselmann | for i in man/footer.sgml $(pkgpython_PYTHON) $(hypervisor_PYTHON) \ |
338 | ff9efc03 | Michael Hanselmann | $(rapi_PYTHON) $(http_PYTHON); do \ |
339 | e8230860 | Michael Hanselmann | if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \ |
340 | e8230860 | Michael Hanselmann | $(LN_S) $(abs_top_srcdir)/$$i $$i; \ |
341 | e8230860 | Michael Hanselmann | fi; \ |
342 | e8230860 | Michael Hanselmann | done |
343 | 97a37b3f | Michael Hanselmann | |
344 | 9ff7e35c | Michael Hanselmann | .PHONY: ganeti |
345 | 9ff7e35c | Michael Hanselmann | ganeti: |
346 | 01f3e7b1 | Iustin Pop | cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; } |
347 | 9ff7e35c | Michael Hanselmann | |
348 | b6f2e47f | Iustin Pop | # a dist hook rule for catching revision control directories |
349 | b6f2e47f | Iustin Pop | distcheck-hook: |
350 | b6f2e47f | Iustin Pop | if find $(top_distdir) | grep -F -e '.svn' -e '.git'; then \ |
351 | b6f2e47f | Iustin Pop | echo "Found revision control files in final archive" 1>&2 ; \ |
352 | b6f2e47f | Iustin Pop | exit 1; \ |
353 | b6f2e47f | Iustin Pop | fi |
354 | b6f2e47f | Iustin Pop | |
355 | 8925faaa | Iustin Pop | install-exec-local: |
356 | 0d93b082 | Michael Hanselmann | @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \ |
357 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/log/ganeti" \ |
358 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/run/ganeti" |
359 | e8230860 | Michael Hanselmann | |
360 | e8230860 | Michael Hanselmann | stamp-directories: Makefile |
361 | e8230860 | Michael Hanselmann | @mkdir_p@ $(DIRS) |
362 | e8230860 | Michael Hanselmann | touch $@ |
363 | e8230860 | Michael Hanselmann | |
364 | d128fdb6 | Iustin Pop | .PHONY: apidoc |
365 | d128fdb6 | Iustin Pop | apidoc: |
366 | d128fdb6 | Iustin Pop | test -e doc/api || mkdir doc/api |
367 | 975e07c6 | Iustin Pop | TMPDIR=`mktemp -d ` && { \ |
368 | d128fdb6 | Iustin Pop | cp -r scripts daemons lib $$TMPDIR && \ |
369 | d128fdb6 | Iustin Pop | ( \ |
370 | 975e07c6 | Iustin Pop | CDIR=`pwd` && \ |
371 | d128fdb6 | Iustin Pop | cd $$TMPDIR && \ |
372 | d128fdb6 | Iustin Pop | mv lib ganeti && \ |
373 | c41eea6e | Iustin Pop | epydoc -v --conf $$CDIR/epydoc.conf -o $$CDIR/doc/api \ |
374 | d128fdb6 | Iustin Pop | ) ; \ |
375 | d128fdb6 | Iustin Pop | rm -rf $$TMPDIR ; \ |
376 | d128fdb6 | Iustin Pop | } |
377 | d128fdb6 | Iustin Pop | |
378 | 13e720f1 | Iustin Pop | .PHONY: TAGS |
379 | 13e720f1 | Iustin Pop | TAGS: |
380 | 13e720f1 | Iustin Pop | rm -f TAGS |
381 | 13e720f1 | Iustin Pop | find . -path './lib/*.py' -o -path 'scripts/gnt-*' -o \ |
382 | 13e720f1 | Iustin Pop | -path 'daemons/ganeti-*' -o -path 'tools/*' | \ |
383 | 13e720f1 | Iustin Pop | etags - |
384 | 13e720f1 | Iustin Pop | |
385 | e8230860 | Michael Hanselmann | # vim: set noet : |