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