root / Makefile.am @ 3707f851
History | View | Annotate | Download (8.1 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 | 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 | e8230860 | Michael Hanselmann | lib/hypervisor \ |
30 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi \ |
31 | e8230860 | Michael Hanselmann | man \ |
32 | e8230860 | Michael Hanselmann | qa \ |
33 | e8230860 | Michael Hanselmann | scripts \ |
34 | e8230860 | Michael Hanselmann | test \ |
35 | e8230860 | Michael Hanselmann | test/data \ |
36 | e8230860 | Michael Hanselmann | tools |
37 | e8230860 | Michael Hanselmann | |
38 | e8230860 | Michael Hanselmann | CLEANFILES = \ |
39 | e8230860 | Michael Hanselmann | autotools/replace_vars.sed \ |
40 | e8230860 | Michael Hanselmann | devel/upload \ |
41 | e8230860 | Michael Hanselmann | doc/*.html \ |
42 | e8230860 | Michael Hanselmann | doc/*.in \ |
43 | e8230860 | Michael Hanselmann | doc/*.pdf \ |
44 | 081242d8 | Michael Hanselmann | doc/rapi-resources.sgml \ |
45 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd \ |
46 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron \ |
47 | e8230860 | Michael Hanselmann | lib/*.py[co] \ |
48 | e8230860 | Michael Hanselmann | lib/hypervisor/*.py[co] \ |
49 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/*.py[co] \ |
50 | e8230860 | Michael Hanselmann | man/*.[78] \ |
51 | e8230860 | Michael Hanselmann | man/*.in \ |
52 | e8230860 | Michael Hanselmann | qa/*.py[co] \ |
53 | e8230860 | Michael Hanselmann | test/*.py[co] \ |
54 | e8230860 | Michael Hanselmann | stamp-directories \ |
55 | e8230860 | Michael Hanselmann | $(nodist_pkgpython_PYTHON) |
56 | e8230860 | Michael Hanselmann | |
57 | e8230860 | Michael Hanselmann | nodist_pkgpython_PYTHON = \ |
58 | e8230860 | Michael Hanselmann | lib/_autoconf.py |
59 | e8230860 | Michael Hanselmann | |
60 | e8230860 | Michael Hanselmann | pkgpython_PYTHON = \ |
61 | e8230860 | Michael Hanselmann | lib/__init__.py \ |
62 | e8230860 | Michael Hanselmann | lib/backend.py \ |
63 | e8230860 | Michael Hanselmann | lib/bdev.py \ |
64 | e8230860 | Michael Hanselmann | lib/bootstrap.py \ |
65 | e8230860 | Michael Hanselmann | lib/cli.py \ |
66 | e8230860 | Michael Hanselmann | lib/cmdlib.py \ |
67 | e8230860 | Michael Hanselmann | lib/config.py \ |
68 | e8230860 | Michael Hanselmann | lib/constants.py \ |
69 | e8230860 | Michael Hanselmann | lib/errors.py \ |
70 | a43f68dc | Michael Hanselmann | lib/http.py \ |
71 | e8230860 | Michael Hanselmann | lib/jqueue.py \ |
72 | 8b537bb0 | Michael Hanselmann | lib/jstore.py \ |
73 | e8230860 | Michael Hanselmann | lib/locking.py \ |
74 | e8230860 | Michael Hanselmann | lib/logger.py \ |
75 | e8230860 | Michael Hanselmann | lib/luxi.py \ |
76 | e8230860 | Michael Hanselmann | lib/mcpu.py \ |
77 | e8230860 | Michael Hanselmann | lib/objects.py \ |
78 | e8230860 | Michael Hanselmann | lib/opcodes.py \ |
79 | e8230860 | Michael Hanselmann | lib/rpc.py \ |
80 | e8230860 | Michael Hanselmann | lib/serializer.py \ |
81 | e8230860 | Michael Hanselmann | lib/ssconf.py \ |
82 | e8230860 | Michael Hanselmann | lib/ssh.py \ |
83 | 76094e37 | Michael Hanselmann | lib/utils.py \ |
84 | 76094e37 | Michael Hanselmann | lib/workerpool.py |
85 | e8230860 | Michael Hanselmann | |
86 | e8230860 | Michael Hanselmann | hypervisor_PYTHON = \ |
87 | e8230860 | Michael Hanselmann | lib/hypervisor/__init__.py \ |
88 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_base.py \ |
89 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_fake.py \ |
90 | eb58f9b1 | Guido Trotter | lib/hypervisor/hv_kvm.py \ |
91 | e8230860 | Michael Hanselmann | lib/hypervisor/hv_xen.py |
92 | e8230860 | Michael Hanselmann | |
93 | 8c229cc7 | Oleksiy Mishchenko | rapi_PYTHON = \ |
94 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/__init__.py \ |
95 | 8c229cc7 | Oleksiy Mishchenko | lib/rapi/httperror.py \ |
96 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/baserlib.py \ |
97 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/connector.py \ |
98 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/rlib1.py \ |
99 | 10b207d4 | Oleksiy Mishchenko | lib/rapi/rlib2.py |
100 | 8c229cc7 | Oleksiy Mishchenko | |
101 | 8c229cc7 | Oleksiy Mishchenko | |
102 | e8230860 | Michael Hanselmann | docsgml = \ |
103 | e8230860 | Michael Hanselmann | doc/hooks.sgml \ |
104 | e8230860 | Michael Hanselmann | doc/install.sgml \ |
105 | e8230860 | Michael Hanselmann | doc/admin.sgml \ |
106 | 4cbd4462 | Oleksiy Mishchenko | doc/rapi.sgml \ |
107 | e8230860 | Michael Hanselmann | doc/iallocator.sgml |
108 | e8230860 | Michael Hanselmann | |
109 | f05c99f3 | Michael Hanselmann | docrst = \ |
110 | f05c99f3 | Michael Hanselmann | doc/design-2.0-commandline-parameters.rst \ |
111 | f05c99f3 | Michael Hanselmann | doc/design-2.0-disk-handling.rst \ |
112 | f05c99f3 | Michael Hanselmann | doc/design-2.0-index.rst \ |
113 | f05c99f3 | Michael Hanselmann | doc/design-2.0-job-queue.rst \ |
114 | f05c99f3 | Michael Hanselmann | doc/design-2.0-locking.rst \ |
115 | f05c99f3 | Michael Hanselmann | doc/design-2.0-master-daemon.rst |
116 | f05c99f3 | Michael Hanselmann | |
117 | e8230860 | Michael Hanselmann | doc_DATA = \ |
118 | f05c99f3 | Michael Hanselmann | $(patsubst %.rst,%.html,$(docrst)) \ |
119 | e8230860 | Michael Hanselmann | $(patsubst %.sgml,%.html,$(docsgml)) \ |
120 | e8230860 | Michael Hanselmann | $(patsubst %.sgml,%.pdf,$(docsgml)) |
121 | e8230860 | Michael Hanselmann | |
122 | e8230860 | Michael Hanselmann | dist_sbin_SCRIPTS = \ |
123 | e8230860 | Michael Hanselmann | daemons/ganeti-noded \ |
124 | e8230860 | Michael Hanselmann | daemons/ganeti-watcher \ |
125 | e8230860 | Michael Hanselmann | daemons/ganeti-masterd \ |
126 | 8c229cc7 | Oleksiy Mishchenko | daemons/ganeti-rapi \ |
127 | e8230860 | Michael Hanselmann | scripts/gnt-backup \ |
128 | e8230860 | Michael Hanselmann | scripts/gnt-cluster \ |
129 | e8230860 | Michael Hanselmann | scripts/gnt-debug \ |
130 | e8230860 | Michael Hanselmann | scripts/gnt-instance \ |
131 | e8230860 | Michael Hanselmann | scripts/gnt-job \ |
132 | e8230860 | Michael Hanselmann | scripts/gnt-node \ |
133 | e8230860 | Michael Hanselmann | scripts/gnt-os |
134 | e8230860 | Michael Hanselmann | |
135 | e8230860 | Michael Hanselmann | dist_tools_SCRIPTS = \ |
136 | e8230860 | Michael Hanselmann | tools/burnin \ |
137 | e8230860 | Michael Hanselmann | tools/cfgshell \ |
138 | e8230860 | Michael Hanselmann | tools/cfgupgrade \ |
139 | e8230860 | Michael Hanselmann | tools/lvmstrap |
140 | e8230860 | Michael Hanselmann | |
141 | e8230860 | Michael Hanselmann | EXTRA_DIST = \ |
142 | e8230860 | Michael Hanselmann | NEWS \ |
143 | e8230860 | Michael Hanselmann | DEVNOTES \ |
144 | e8230860 | Michael Hanselmann | autotools/docbook-wrapper \ |
145 | e8230860 | Michael Hanselmann | devel/upload.in \ |
146 | f05c99f3 | Michael Hanselmann | $(docrst) \ |
147 | e8230860 | Michael Hanselmann | $(docsgml) \ |
148 | 4cbd4462 | Oleksiy Mishchenko | doc/build-rapi-resources-doc \ |
149 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd.in \ |
150 | e8230860 | Michael Hanselmann | doc/examples/ganeti.cron.in \ |
151 | e8230860 | Michael Hanselmann | doc/examples/dumb-allocator \ |
152 | 0f933d15 | Guido Trotter | doc/locking.txt \ |
153 | e8230860 | Michael Hanselmann | test/testutils.py \ |
154 | e8230860 | Michael Hanselmann | test/mocks.py \ |
155 | e8230860 | Michael Hanselmann | $(dist_TESTS) \ |
156 | e8230860 | Michael Hanselmann | $(TEST_FILES) \ |
157 | e8230860 | Michael Hanselmann | man/footer.sgml \ |
158 | e8230860 | Michael Hanselmann | $(mansgml) \ |
159 | e8230860 | Michael Hanselmann | qa/ganeti-qa.py \ |
160 | 39e0d19e | Michael Hanselmann | qa/qa-sample.json \ |
161 | e8230860 | Michael Hanselmann | qa/qa_cluster.py \ |
162 | e8230860 | Michael Hanselmann | qa/qa_config.py \ |
163 | e8230860 | Michael Hanselmann | qa/qa_daemon.py \ |
164 | e8230860 | Michael Hanselmann | qa/qa_env.py \ |
165 | e8230860 | Michael Hanselmann | qa/qa_error.py \ |
166 | e8230860 | Michael Hanselmann | qa/qa_instance.py \ |
167 | e8230860 | Michael Hanselmann | qa/qa_node.py \ |
168 | e8230860 | Michael Hanselmann | qa/qa_os.py \ |
169 | a47f574c | Oleksiy Mishchenko | qa/qa_rapi.py \ |
170 | e8230860 | Michael Hanselmann | qa/qa_tags.py \ |
171 | e8230860 | Michael Hanselmann | qa/qa_utils.py |
172 | e8230860 | Michael Hanselmann | |
173 | e8230860 | Michael Hanselmann | man_MANS = \ |
174 | e8230860 | Michael Hanselmann | man/ganeti.7 \ |
175 | e8230860 | Michael Hanselmann | man/ganeti-noded.8 \ |
176 | e8230860 | Michael Hanselmann | man/ganeti-os-interface.7 \ |
177 | e8230860 | Michael Hanselmann | man/ganeti-watcher.8 \ |
178 | e8230860 | Michael Hanselmann | man/gnt-backup.8 \ |
179 | e8230860 | Michael Hanselmann | man/gnt-cluster.8 \ |
180 | e8230860 | Michael Hanselmann | man/gnt-instance.8 \ |
181 | e8230860 | Michael Hanselmann | man/gnt-node.8 \ |
182 | e8230860 | Michael Hanselmann | man/gnt-os.8 |
183 | e8230860 | Michael Hanselmann | |
184 | e8230860 | Michael Hanselmann | maninput = $(patsubst %.7,%.in,$(patsubst %.8,%.in,$(man_MANS))) |
185 | e8230860 | Michael Hanselmann | mansgml = $(patsubst %.in,%.sgml,$(maninput)) |
186 | e8230860 | Michael Hanselmann | |
187 | e8230860 | Michael Hanselmann | TEST_FILES = \ |
188 | e8230860 | Michael Hanselmann | test/data/bdev-both.txt \ |
189 | e8230860 | Michael Hanselmann | test/data/bdev-disk.txt \ |
190 | e8230860 | Michael Hanselmann | test/data/bdev-net.txt \ |
191 | e8230860 | Michael Hanselmann | test/data/proc_drbd8.txt |
192 | e8230860 | Michael Hanselmann | |
193 | e8230860 | Michael Hanselmann | dist_TESTS = \ |
194 | e8230860 | Michael Hanselmann | test/ganeti.config_unittest.py \ |
195 | e8230860 | Michael Hanselmann | test/ganeti.hooks_unittest.py \ |
196 | e8230860 | Michael Hanselmann | test/ganeti.utils_unittest.py \ |
197 | e8230860 | Michael Hanselmann | test/ganeti.bdev_unittest.py \ |
198 | e8230860 | Michael Hanselmann | test/ganeti.ssh_unittest.py \ |
199 | e8230860 | Michael Hanselmann | test/ganeti.locking_unittest.py \ |
200 | 501c95a2 | Michael Hanselmann | test/ganeti.serializer_unittest.py \ |
201 | 76094e37 | Michael Hanselmann | test/ganeti.workerpool_unittest.py \ |
202 | 4cbd4462 | Oleksiy Mishchenko | test/ganeti.rapi.resources_unittest.py \ |
203 | a0638838 | Oleksiy Mishchenko | test/ganeti.http_unittest.py \ |
204 | e8230860 | Michael Hanselmann | test/ganeti.constants_unittest.py |
205 | e8230860 | Michael Hanselmann | |
206 | e8230860 | Michael Hanselmann | nodist_TESTS = |
207 | e8230860 | Michael Hanselmann | |
208 | e8230860 | Michael Hanselmann | TESTS = $(dist_TESTS) $(nodist_TESTS) |
209 | e8230860 | Michael Hanselmann | |
210 | e8230860 | Michael Hanselmann | TESTS_ENVIRONMENT = PYTHONPATH=.:$(top_builddir) |
211 | e8230860 | Michael Hanselmann | |
212 | 6e06b36c | Iustin Pop | |
213 | e8230860 | Michael Hanselmann | all-local: stamp-directories lib/_autoconf.py devel/upload \ |
214 | e8230860 | Michael Hanselmann | doc/examples/ganeti.initd doc/examples/ganeti.cron |
215 | e8230860 | Michael Hanselmann | |
216 | e8230860 | Michael Hanselmann | devel/upload: devel/upload.in stamp-directories $(REPLACE_VARS_SED) |
217 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
218 | e8230860 | Michael Hanselmann | chmod u+x $@ |
219 | e8230860 | Michael Hanselmann | |
220 | e8230860 | Michael Hanselmann | doc/examples/ganeti.%: doc/examples/ganeti.%.in stamp-directories \ |
221 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED) |
222 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
223 | e8230860 | Michael Hanselmann | |
224 | e8230860 | Michael Hanselmann | doc/%.in: doc/%.sgml stamp-directories $(REPLACE_VARS_SED) |
225 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
226 | e8230860 | Michael Hanselmann | |
227 | e8230860 | Michael Hanselmann | man/%.in: man/%.sgml stamp-directories $(REPLACE_VARS_SED) |
228 | e8230860 | Michael Hanselmann | sed -f $(REPLACE_VARS_SED) < $< > $@ |
229 | e8230860 | Michael Hanselmann | |
230 | e8230860 | Michael Hanselmann | doc/%.pdf: doc/%.in $(DOCBOOK_WRAPPER) |
231 | e8230860 | Michael Hanselmann | $(DOCBOOK_WRAPPER) $< $@ |
232 | e8230860 | Michael Hanselmann | |
233 | e8230860 | Michael Hanselmann | doc/%.html: doc/%.in $(DOCBOOK_WRAPPER) |
234 | e8230860 | Michael Hanselmann | $(DOCBOOK_WRAPPER) $< $@ |
235 | e8230860 | Michael Hanselmann | |
236 | f05c99f3 | Michael Hanselmann | doc/%.html: doc/%.rst |
237 | f05c99f3 | Michael Hanselmann | $(RST2HTML) $< $@ |
238 | f05c99f3 | Michael Hanselmann | |
239 | 4cbd4462 | Oleksiy Mishchenko | doc/rapi.pdf doc/rapi.html: doc/rapi-resources.sgml |
240 | 4cbd4462 | Oleksiy Mishchenko | |
241 | 10b207d4 | Oleksiy Mishchenko | doc/rapi-resources.sgml: $(BUILD_RAPI_RESOURCE_DOC) lib/rapi/connector.py |
242 | 081242d8 | Michael Hanselmann | PYTHONPATH=.:$(top_builddir) $(BUILD_RAPI_RESOURCE_DOC) > $@ || rm -f $@ |
243 | 4cbd4462 | Oleksiy Mishchenko | |
244 | e8230860 | Michael Hanselmann | man/%.7: man/%.in man/footer.sgml $(DOCBOOK_WRAPPER) |
245 | e8230860 | Michael Hanselmann | $(DOCBOOK_WRAPPER) $< $@ |
246 | e8230860 | Michael Hanselmann | |
247 | e8230860 | Michael Hanselmann | man/%.8: man/%.in man/footer.sgml $(DOCBOOK_WRAPPER) |
248 | e8230860 | Michael Hanselmann | $(DOCBOOK_WRAPPER) $< $@ |
249 | e8230860 | Michael Hanselmann | |
250 | e8230860 | Michael Hanselmann | man/footer.sgml $(TESTS): srclinks |
251 | e8230860 | Michael Hanselmann | |
252 | 081242d8 | Michael Hanselmann | $(TESTS) $(BUILD_RAPI_RESOURCE_DOC): ganeti lib/_autoconf.py |
253 | e8230860 | Michael Hanselmann | |
254 | e8230860 | Michael Hanselmann | lib/_autoconf.py: Makefile stamp-directories |
255 | e8230860 | Michael Hanselmann | set -e; \ |
256 | e8230860 | Michael Hanselmann | { echo '# This file is automatically generated, do not edit!'; \ |
257 | e8230860 | Michael Hanselmann | echo '#'; \ |
258 | e8230860 | Michael Hanselmann | echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \ |
259 | e8230860 | Michael Hanselmann | echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \ |
260 | e8230860 | Michael Hanselmann | echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \ |
261 | e8230860 | Michael Hanselmann | echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \ |
262 | e8230860 | Michael Hanselmann | echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \ |
263 | e8230860 | Michael Hanselmann | echo "VERSION_FULL = '$(VERSION_FULL)'"; \ |
264 | e8230860 | Michael Hanselmann | echo "LOCALSTATEDIR = '$(localstatedir)'"; \ |
265 | e8230860 | Michael Hanselmann | echo "SYSCONFDIR = '$(sysconfdir)'"; \ |
266 | e8230860 | Michael Hanselmann | echo "SSH_INITD_SCRIPT = '$(SSH_INITD_SCRIPT)'"; \ |
267 | e8230860 | Michael Hanselmann | echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \ |
268 | e8230860 | Michael Hanselmann | echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \ |
269 | e8230860 | Michael Hanselmann | echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \ |
270 | e8230860 | Michael Hanselmann | echo "XEN_INITRD = '$(XEN_INITRD)'"; \ |
271 | e8230860 | Michael Hanselmann | echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \ |
272 | e8230860 | Michael Hanselmann | echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \ |
273 | 7e2c5b9e | Guido Trotter | echo "KVM_PATH = '$(KVM_PATH)'"; \ |
274 | e8230860 | Michael Hanselmann | } > $@ |
275 | e8230860 | Michael Hanselmann | |
276 | e8230860 | Michael Hanselmann | $(REPLACE_VARS_SED): Makefile stamp-directories |
277 | e8230860 | Michael Hanselmann | set -e; \ |
278 | e8230860 | Michael Hanselmann | { echo 's#@PREFIX@#$(prefix)#g'; \ |
279 | e8230860 | Michael Hanselmann | echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ |
280 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
281 | e8230860 | Michael Hanselmann | echo 's#@SBINDIR@#$(sbindir)#g'; \ |
282 | e8230860 | Michael Hanselmann | echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \ |
283 | e8230860 | Michael Hanselmann | echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \ |
284 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \ |
285 | e8230860 | Michael Hanselmann | echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \ |
286 | 081242d8 | Michael Hanselmann | echo '/@INCLUDE_RAPI_RESOURCES@/ {'; \ |
287 | 081242d8 | Michael Hanselmann | echo ' r $(abs_top_builddir)/doc/rapi-resources.sgml'; \ |
288 | 081242d8 | Michael Hanselmann | echo ' d'; \ |
289 | 081242d8 | Michael Hanselmann | echo '}'; \ |
290 | e8230860 | Michael Hanselmann | } > $@ |
291 | e8230860 | Michael Hanselmann | |
292 | e8230860 | Michael Hanselmann | # We need to create symlinks because "make distcheck" will not install Python |
293 | e8230860 | Michael Hanselmann | # files when building. |
294 | e8230860 | Michael Hanselmann | #.PHONY: srclinks |
295 | e8230860 | Michael Hanselmann | srclinks: stamp-directories |
296 | e8230860 | Michael Hanselmann | set -e; \ |
297 | 8c229cc7 | Oleksiy Mishchenko | for i in man/footer.sgml $(pkgpython_PYTHON) $(hypervisor_PYTHON) $(rapi_PYTHON); do \ |
298 | e8230860 | Michael Hanselmann | if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \ |
299 | e8230860 | Michael Hanselmann | $(LN_S) $(abs_top_srcdir)/$$i $$i; \ |
300 | e8230860 | Michael Hanselmann | fi; \ |
301 | e8230860 | Michael Hanselmann | done |
302 | 97a37b3f | Michael Hanselmann | |
303 | 9ff7e35c | Michael Hanselmann | .PHONY: ganeti |
304 | 9ff7e35c | Michael Hanselmann | ganeti: |
305 | 9ff7e35c | Michael Hanselmann | cd $(top_builddir) && rm -f $@ && $(LN_S) lib $@ |
306 | 9ff7e35c | Michael Hanselmann | |
307 | b6f2e47f | Iustin Pop | # a dist hook rule for catching revision control directories |
308 | b6f2e47f | Iustin Pop | distcheck-hook: |
309 | b6f2e47f | Iustin Pop | if find $(top_distdir) | grep -F -e '.svn' -e '.git'; then \ |
310 | b6f2e47f | Iustin Pop | echo "Found revision control files in final archive" 1>&2 ; \ |
311 | b6f2e47f | Iustin Pop | exit 1; \ |
312 | b6f2e47f | Iustin Pop | fi |
313 | b6f2e47f | Iustin Pop | |
314 | 8925faaa | Iustin Pop | install-exec-local: |
315 | 0d93b082 | Michael Hanselmann | @mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \ |
316 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/log/ganeti" \ |
317 | 2fa9f1dd | Michael Hanselmann | "$(DESTDIR)${localstatedir}/run/ganeti" |
318 | e8230860 | Michael Hanselmann | |
319 | e8230860 | Michael Hanselmann | stamp-directories: Makefile |
320 | e8230860 | Michael Hanselmann | @mkdir_p@ $(DIRS) |
321 | e8230860 | Michael Hanselmann | touch $@ |
322 | e8230860 | Michael Hanselmann | |
323 | d128fdb6 | Iustin Pop | .PHONY: apidoc |
324 | d128fdb6 | Iustin Pop | apidoc: |
325 | d128fdb6 | Iustin Pop | test -e doc/api || mkdir doc/api |
326 | d128fdb6 | Iustin Pop | TMPDIR=`mktemp -d ./temp-epydoc.XXXXXX` && { \ |
327 | d128fdb6 | Iustin Pop | cp -r scripts daemons lib $$TMPDIR && \ |
328 | d128fdb6 | Iustin Pop | ( \ |
329 | d128fdb6 | Iustin Pop | cd $$TMPDIR && \ |
330 | d128fdb6 | Iustin Pop | mv lib ganeti && \ |
331 | d128fdb6 | Iustin Pop | epydoc --conf ../epydoc.conf \ |
332 | d128fdb6 | Iustin Pop | ) ; \ |
333 | d128fdb6 | Iustin Pop | rm -rf $$TMPDIR ; \ |
334 | d128fdb6 | Iustin Pop | } |
335 | d128fdb6 | Iustin Pop | |
336 | e8230860 | Michael Hanselmann | # vim: set noet : |