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