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