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