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