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