Statistics
| Branch: | Tag: | Revision:

root / Makefile.am @ 033a1d00

History | View | Annotate | Download (14.9 kB)

1
# Ganeti makefile
2
# - Indent with tabs only.
3
# - Keep files sorted; one line per file.
4
# - Directories in lib/ must have their own *dir variable (see hypervisor).
5
# - All directories must be listed DIRS.
6
# - Use autogen.sh to generate Makefile.in and configure script.
7

    
8
# Automake doesn't export these variables before version 1.10.
9
abs_top_builddir = @abs_top_builddir@
10
abs_top_srcdir = @abs_top_srcdir@
11

    
12
ACLOCAL_AMFLAGS = -I autotools
13
DOCBOOK_WRAPPER = $(top_srcdir)/autotools/docbook-wrapper
14
BUILD_BASH_COMPLETION = $(top_srcdir)/autotools/build-bash-completion
15
RUN_IN_TEMPDIR = $(top_srcdir)/autotools/run-in-tempdir
16
CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code
17
CHECK_MAN = $(top_srcdir)/autotools/check-man
18
REPLACE_VARS_SED = autotools/replace_vars.sed
19

    
20
hypervisordir = $(pkgpythondir)/hypervisor
21
httpdir = $(pkgpythondir)/http
22
masterddir = $(pkgpythondir)/masterd
23
confddir = $(pkgpythondir)/confd
24
rapidir = $(pkgpythondir)/rapi
25
toolsdir = $(pkglibdir)/tools
26
docdir = $(datadir)/doc/$(PACKAGE)
27

    
28
# Delete output file if an error occurred while building it
29
.DELETE_ON_ERROR:
30

    
31
DIRS = \
32
	autotools \
33
	daemons \
34
	devel \
35
	doc \
36
	doc/examples \
37
	doc/examples/hooks \
38
	lib \
39
	lib/build \
40
	lib/confd \
41
	lib/http \
42
	lib/hypervisor \
43
	lib/masterd \
44
	lib/rapi \
45
	man \
46
	qa \
47
	scripts \
48
	test \
49
	test/data \
50
	tools
51

    
52
MAINTAINERCLEANFILES = \
53
	$(docpng) \
54
	$(maninput) \
55
	doc/install-quick.rst \
56
	doc/news.rst
57

    
58
maintainer-clean-local:
59
	rm -rf doc/api doc/html doc/coverage
60

    
61
CLEANFILES = \
62
	$(addsuffix /*.py[co],$(DIRS)) \
63
	autotools/replace_vars.sed \
64
	daemons/daemon-util \
65
	daemons/ganeti-cleaner \
66
	devel/upload \
67
	doc/examples/bash_completion \
68
	doc/examples/ganeti.initd \
69
	doc/examples/ganeti.cron \
70
	doc/examples/gnt-config-backup \
71
	doc/examples/hooks/ipsec \
72
	$(man_MANS) \
73
	$(manhtml) \
74
	stamp-directories \
75
	stamp-srclinks \
76
	$(nodist_pkgpython_PYTHON)
77

    
78
BUILT_SOURCES = \
79
	ganeti \
80
	stamp-srclinks \
81
	stamp-directories \
82
	lib/_autoconf.py
83

    
84
nodist_pkgpython_PYTHON = \
85
	lib/_autoconf.py
86

    
87
noinst_PYTHON = \
88
	lib/build/__init__.py
89

    
90
pkgpython_PYTHON = \
91
	lib/__init__.py \
92
	lib/asyncnotifier.py \
93
	lib/backend.py \
94
	lib/bdev.py \
95
	lib/bootstrap.py \
96
	lib/cli.py \
97
	lib/cmdlib.py \
98
	lib/compat.py \
99
	lib/config.py \
100
	lib/constants.py \
101
	lib/daemon.py \
102
	lib/errors.py \
103
	lib/jqueue.py \
104
	lib/jstore.py \
105
	lib/locking.py \
106
	lib/luxi.py \
107
	lib/mcpu.py \
108
	lib/objects.py \
109
	lib/opcodes.py \
110
	lib/rpc.py \
111
	lib/serializer.py \
112
	lib/ssconf.py \
113
	lib/ssh.py \
114
	lib/storage.py \
115
	lib/utils.py \
116
	lib/uidpool.py \
117
	lib/workerpool.py
118

    
119
hypervisor_PYTHON = \
120
	lib/hypervisor/__init__.py \
121
	lib/hypervisor/hv_base.py \
122
	lib/hypervisor/hv_chroot.py \
123
	lib/hypervisor/hv_fake.py \
124
	lib/hypervisor/hv_kvm.py \
125
	lib/hypervisor/hv_xen.py
126

    
127
rapi_PYTHON = \
128
	lib/rapi/__init__.py \
129
	lib/rapi/baserlib.py \
130
	lib/rapi/client.py \
131
	lib/rapi/connector.py \
132
	lib/rapi/rlib2.py
133

    
134
http_PYTHON = \
135
	lib/http/__init__.py \
136
	lib/http/auth.py \
137
	lib/http/client.py \
138
	lib/http/server.py
139

    
140
confd_PYTHON = \
141
	lib/confd/__init__.py \
142
	lib/confd/client.py \
143
	lib/confd/querylib.py \
144
	lib/confd/server.py
145

    
146
masterd_PYTHON = \
147
	lib/masterd/__init__.py \
148
	lib/masterd/instance.py
149

    
150
docrst = \
151
	doc/admin.rst \
152
	doc/design-2.0.rst \
153
	doc/design-2.1.rst \
154
	doc/design-2.2.rst \
155
	doc/design-cluster-merger.rst \
156
	doc/devnotes.rst \
157
	doc/glossary.rst \
158
	doc/hooks.rst \
159
	doc/iallocator.rst \
160
	doc/index.rst \
161
	doc/install-quick.rst \
162
	doc/install.rst \
163
	doc/locking.rst \
164
	doc/news.rst \
165
	doc/rapi.rst \
166
	doc/security.rst \
167
	doc/walkthrough.rst
168

    
169
doc/html/.stamp: $(docrst) $(docpng) doc/conf.py configure.ac
170
	@test -n "$(SPHINX)" || \
171
	    { echo 'sphinx-build' not found during configure; exit 1; }
172
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(SPHINX) -q -W -b html \
173
	    -d . \
174
	    -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \
175
	    -D release="$(PACKAGE_VERSION)" \
176
	    $(abs_top_srcdir)/doc $(CURDIR)/doc/html
177
	rm -f doc/html/.buildinfo doc/html/objects.inv
178
	touch $@
179

    
180
doc/html: doc/html/.stamp
181

    
182
doc/news.rst: NEWS
183
	set -e; \
184
	{ echo '.. This file is automatically updated at build time from $<.'; \
185
	  echo '.. Do not edit.'; \
186
	  echo; \
187
	  cat $<; \
188
	} > $@
189

    
190
doc/install-quick.rst: INSTALL
191
	set -e; \
192
	{ echo '.. This file is automatically updated at build time from $<.'; \
193
	  echo '.. Do not edit.'; \
194
	  echo; \
195
	  cat $<; \
196
	} > $@
197

    
198
docdot = \
199
	doc/arch-2.0.dot \
200
	doc/design-2.1-lock-acquire.dot \
201
	doc/design-2.1-lock-release.dot
202

    
203
docpng = $(patsubst %.dot,%.png,$(docdot))
204

    
205
# Things to build but not to install (add it to EXTRA_DIST if it should be
206
# distributed)
207
noinst_DATA = \
208
	devel/upload \
209
	doc/html \
210
	doc/examples/bash_completion \
211
	doc/examples/ganeti.cron \
212
	doc/examples/ganeti.initd \
213
	doc/examples/gnt-config-backup \
214
	doc/examples/hooks/ipsec \
215
	$(manhtml)
216

    
217
gnt_scripts = \
218
	scripts/gnt-backup \
219
	scripts/gnt-cluster \
220
	scripts/gnt-debug \
221
	scripts/gnt-instance \
222
	scripts/gnt-job \
223
	scripts/gnt-node \
224
	scripts/gnt-os
225

    
226
dist_sbin_SCRIPTS = \
227
	daemons/ganeti-noded \
228
	daemons/ganeti-watcher \
229
	daemons/ganeti-masterd \
230
	daemons/ganeti-confd \
231
	daemons/ganeti-rapi \
232
	$(gnt_scripts)
233

    
234
nodist_sbin_SCRIPTS = \
235
	daemons/ganeti-cleaner
236

    
237
dist_tools_SCRIPTS = \
238
	tools/burnin \
239
	tools/cfgshell \
240
	tools/cfgupgrade \
241
	tools/cfgupgrade12 \
242
	tools/cluster-merge \
243
	tools/lvmstrap \
244
	tools/sanitize-config
245

    
246
pkglib_python_scripts = \
247
	daemons/import-export
248

    
249
pkglib_SCRIPTS = \
250
	daemons/daemon-util \
251
	$(pkglib_python_scripts)
252

    
253
EXTRA_DIST = \
254
	NEWS \
255
	pylintrc \
256
	autotools/build-bash-completion \
257
	autotools/check-python-code \
258
	autotools/check-man \
259
	autotools/docbook-wrapper \
260
	autotools/gen-coverage \
261
	autotools/testrunner \
262
	$(RUN_IN_TEMPDIR) \
263
	daemons/daemon-util.in \
264
	daemons/ganeti-cleaner.in \
265
	$(pkglib_python_scripts) \
266
	devel/upload.in \
267
	$(docdot) \
268
	$(docpng) \
269
	$(docrst) \
270
	doc/conf.py \
271
	doc/html \
272
	doc/examples/ganeti.initd.in \
273
	doc/examples/ganeti.cron.in \
274
	doc/examples/gnt-config-backup.in \
275
	doc/examples/dumb-allocator \
276
	doc/examples/ganeti.default \
277
	doc/examples/ganeti.default-debug \
278
	doc/examples/hooks/ethers \
279
	doc/examples/hooks/ipsec.in \
280
	test/testutils.py \
281
	test/mocks.py \
282
	$(dist_TESTS) \
283
	$(TEST_FILES) \
284
	man/footer.sgml \
285
	$(mansgml) \
286
	$(maninput) \
287
	qa/ganeti-qa.py \
288
	qa/qa-sample.json \
289
	qa/qa_cluster.py \
290
	qa/qa_config.py \
291
	qa/qa_daemon.py \
292
	qa/qa_env.py \
293
	qa/qa_error.py \
294
	qa/qa_instance.py \
295
	qa/qa_node.py \
296
	qa/qa_os.py \
297
	qa/qa_rapi.py \
298
	qa/qa_tags.py \
299
	qa/qa_utils.py
300

    
301
man_MANS = \
302
	man/ganeti.7 \
303
	man/ganeti-cleaner.8 \
304
	man/ganeti-confd.8 \
305
	man/ganeti-masterd.8 \
306
	man/ganeti-noded.8 \
307
	man/ganeti-os-interface.7 \
308
	man/ganeti-rapi.8 \
309
	man/ganeti-watcher.8 \
310
	man/gnt-backup.8 \
311
	man/gnt-cluster.8 \
312
	man/gnt-debug.8 \
313
	man/gnt-instance.8 \
314
	man/gnt-job.8 \
315
	man/gnt-node.8 \
316
	man/gnt-os.8
317

    
318
mansgml = $(patsubst %.7,%.sgml,$(patsubst %.8,%.sgml,$(man_MANS)))
319
manhtml = $(patsubst %.sgml,%.html,$(mansgml))
320
maninput = \
321
	$(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS))) \
322
	$(patsubst %.html,%.html.in,$(manhtml))
323

    
324
TEST_FILES = \
325
	test/data/bdev-both.txt \
326
	test/data/bdev-8.3-both.txt \
327
	test/data/bdev-disk.txt \
328
	test/data/bdev-net.txt \
329
	test/data/cert1.pem \
330
	test/data/proc_drbd8.txt \
331
	test/data/proc_drbd80-emptyline.txt \
332
	test/data/proc_drbd83.txt \
333
	test/import-export_unittest-helper
334

    
335
python_tests = \
336
	test/ganeti.backend_unittest.py \
337
	test/ganeti.bdev_unittest.py \
338
	test/ganeti.cli_unittest.py \
339
	test/ganeti.cmdlib_unittest.py \
340
	test/ganeti.compat_unittest.py \
341
	test/ganeti.confd.client_unittest.py \
342
	test/ganeti.config_unittest.py \
343
	test/ganeti.constants_unittest.py \
344
	test/ganeti.errors_unittest.py \
345
	test/ganeti.hooks_unittest.py \
346
	test/ganeti.http_unittest.py \
347
	test/ganeti.locking_unittest.py \
348
	test/ganeti.luxi_unittest.py \
349
	test/ganeti.masterd.instance_unittest.py \
350
	test/ganeti.mcpu_unittest.py \
351
	test/ganeti.objects_unittest.py \
352
	test/ganeti.opcodes_unittest.py \
353
	test/ganeti.rapi.client_unittest.py \
354
	test/ganeti.rapi.resources_unittest.py \
355
	test/ganeti.serializer_unittest.py \
356
	test/ganeti.ssh_unittest.py \
357
	test/ganeti.uidpool_unittest.py \
358
	test/ganeti.utils_unittest.py \
359
	test/ganeti.workerpool_unittest.py \
360
	test/docs_unittest.py \
361
	test/tempfile_fork_unittest.py
362

    
363
dist_TESTS = \
364
	test/daemon-util_unittest.bash \
365
	test/import-export_unittest.bash \
366
	$(python_tests)
367

    
368
nodist_TESTS =
369

    
370
TESTS = $(dist_TESTS) $(nodist_TESTS)
371

    
372
# Environment for all tests
373
PLAIN_TESTS_ENVIRONMENT = \
374
	PYTHONPATH=. TOP_SRCDIR=$(abs_top_srcdir) PYTHON=$(PYTHON) $(RUN_IN_TEMPDIR)
375

    
376
# Environment for tests run by automake
377
TESTS_ENVIRONMENT = \
378
	$(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/testrunner
379

    
380
all_python_code = \
381
	$(dist_sbin_SCRIPTS) \
382
	$(dist_tools_SCRIPTS) \
383
	$(pkglib_python_scripts) \
384
	$(python_tests) \
385
	$(pkgpython_PYTHON) \
386
	$(hypervisor_PYTHON) \
387
	$(rapi_PYTHON) \
388
	$(http_PYTHON) \
389
	$(confd_PYTHON) \
390
	$(masterd_PYTHON) \
391
	$(noinst_PYTHON)
392

    
393
srclink_files = \
394
	man/footer.sgml \
395
	test/daemon-util_unittest.bash \
396
	test/import-export_unittest.bash \
397
	$(all_python_code)
398

    
399
check_python_code = \
400
	$(BUILD_BASH_COMPLETION) \
401
	$(all_python_code)
402

    
403
lint_python_code = \
404
	ganeti \
405
	$(dist_sbin_SCRIPTS) \
406
	$(dist_tools_SCRIPTS) \
407
	$(pkglib_python_scripts) \
408
	$(BUILD_BASH_COMPLETION)
409

    
410
test/daemon-util_unittest.bash: daemons/daemon-util
411

    
412
devel/upload: devel/upload.in $(REPLACE_VARS_SED)
413
	sed -f $(REPLACE_VARS_SED) < $< > $@
414
	chmod u+x $@
415

    
416
daemons/%: daemons/%.in \
417
		$(REPLACE_VARS_SED)
418
	sed -f $(REPLACE_VARS_SED) < $< > $@
419
	chmod +x $@
420

    
421
doc/examples/%: doc/examples/%.in \
422
		$(REPLACE_VARS_SED)
423
	sed -f $(REPLACE_VARS_SED) < $< > $@
424

    
425
doc/examples/hooks/%: doc/examples/hooks/%.in \
426
		$(REPLACE_VARS_SED)
427
	sed -f $(REPLACE_VARS_SED) < $< > $@
428

    
429
doc/examples/bash_completion: $(BUILD_BASH_COMPLETION) $(RUN_IN_TEMPDIR) \
430
	lib/cli.py $(gnt_scripts) tools/burnin
431
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_BASH_COMPLETION) > $@
432

    
433
doc/%.png: doc/%.dot
434
	@test -n "$(DOT)" || { echo 'dot' not found during configure; exit 1; }
435
	$(DOT) -Tpng -o $@ $<
436

    
437
man/%.7.in man/%.8.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER)
438
	@test -n "$(DOCBOOK2MAN)" || \
439
	  { echo 'docbook2man' not found during configure; exit 1; }
440
	$(DOCBOOK_WRAPPER) "$(DOCBOOK2MAN)" $< $(notdir $(@:.in=)) $@
441
	$(CHECK_MAN) $@
442

    
443
man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER)
444
	@test -n "$(DOCBOOK2HTML)" || \
445
	  { echo 'docbook2html' not found during configure; exit 1; }
446
	$(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $(notdir $(@:.in=)) $@
447

    
448
man/%.7: man/%.7.in $(REPLACE_VARS_SED)
449
	sed -f $(REPLACE_VARS_SED) < $< > $@
450

    
451
man/%.8: man/%.8.in $(REPLACE_VARS_SED)
452
	sed -f $(REPLACE_VARS_SED) < $< > $@
453

    
454
man/%.html: man/%.html.in $(REPLACE_VARS_SED)
455
	sed -f $(REPLACE_VARS_SED) < $< > $@
456

    
457
lib/_autoconf.py: Makefile stamp-directories
458
	set -e; \
459
	{ echo '# This file is automatically generated, do not edit!'; \
460
	  echo '#'; \
461
	  echo ''; \
462
	  echo '"""Build-time configuration for Ganeti.'; \
463
	  echo '';\
464
	  echo 'This file is autogenerated by the build process.'; \
465
	  echo 'For any changes you need to re-run ./configure (and'; \
466
	  echo 'not edit by hand).'; \
467
	  echo ''; \
468
	  echo '"""'; \
469
	  echo ''; \
470
	  echo '# pylint: disable-msg=C0301,C0324'; \
471
	  echo '# because this is autogenerated, we do not want'; \
472
	  echo '# style warnings' ; \
473
	  echo ''; \
474
	  echo "PACKAGE_VERSION = '$(PACKAGE_VERSION)'"; \
475
	  echo "VERSION_MAJOR = '$(VERSION_MAJOR)'"; \
476
	  echo "VERSION_MINOR = '$(VERSION_MINOR)'"; \
477
	  echo "VERSION_REVISION = '$(VERSION_REVISION)'"; \
478
	  echo "VERSION_SUFFIX = '$(VERSION_SUFFIX)'"; \
479
	  echo "VERSION_FULL = '$(VERSION_FULL)'"; \
480
	  echo "LOCALSTATEDIR = '$(localstatedir)'"; \
481
	  echo "SYSCONFDIR = '$(sysconfdir)'"; \
482
	  echo "SSH_CONFIG_DIR = '$(SSH_CONFIG_DIR)'"; \
483
	  echo "EXPORT_DIR = '$(EXPORT_DIR)'"; \
484
	  echo "OS_SEARCH_PATH = [$(OS_SEARCH_PATH)]"; \
485
	  echo "XEN_BOOTLOADER = '$(XEN_BOOTLOADER)'"; \
486
	  echo "XEN_KERNEL = '$(XEN_KERNEL)'"; \
487
	  echo "XEN_INITRD = '$(XEN_INITRD)'"; \
488
	  echo "FILE_STORAGE_DIR = '$(FILE_STORAGE_DIR)'"; \
489
	  echo "ENABLE_FILE_STORAGE = $(ENABLE_FILE_STORAGE)"; \
490
	  echo "IALLOCATOR_SEARCH_PATH = [$(IALLOCATOR_SEARCH_PATH)]"; \
491
	  echo "KVM_PATH = '$(KVM_PATH)'"; \
492
	  echo "SOCAT_PATH = '$(SOCAT)'"; \
493
	  echo "SOCAT_USE_ESCAPE = $(SOCAT_USE_ESCAPE)"; \
494
	  echo "LVM_STRIPECOUNT = $(LVM_STRIPECOUNT)"; \
495
	  echo "TOOLSDIR = '$(toolsdir)'"; \
496
	  echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \
497
	  echo "PKGLIBDIR = '$(pkglibdir)'"; \
498
	  echo "DRBD_BARRIERS = $(DRBD_BARRIERS)"; \
499
	  echo "SYSLOG_USAGE = '$(SYSLOG_USAGE)'"; \
500
	} > $@
501

    
502
$(REPLACE_VARS_SED): Makefile
503
	set -e; \
504
	{ echo 's#@PREFIX@#$(prefix)#g'; \
505
	  echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \
506
	  echo 's#@LOCALSTATEDIR@#$(localstatedir)#g'; \
507
	  echo 's#@BINDIR@#$(bindir)#g'; \
508
	  echo 's#@SBINDIR@#$(sbindir)#g'; \
509
	  echo 's#@GANETI_VERSION@#$(PACKAGE_VERSION)#g'; \
510
	  echo 's#@CUSTOM_XEN_BOOTLOADER@#$(XEN_BOOTLOADER)#g'; \
511
	  echo 's#@CUSTOM_XEN_KERNEL@#$(XEN_KERNEL)#g'; \
512
	  echo 's#@CUSTOM_XEN_INITRD@#$(XEN_INITRD)#g'; \
513
	  echo 's#@RPL_FILE_STORAGE_DIR@#$(FILE_STORAGE_DIR)#g'; \
514
	  echo 's#@RPL_SSH_INITD_SCRIPT@#$(SSH_INITD_SCRIPT)#g'; \
515
	  echo 's#@PKGLIBDIR@#$(pkglibdir)#g'; \
516
	} > $@
517

    
518
# We need to create symlinks because "make distcheck" will not install Python
519
# files when building.
520
stamp-srclinks: Makefile stamp-directories
521
	set -e; \
522
	for i in $(srclink_files); do \
523
		if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \
524
			$(LN_S) $(abs_top_srcdir)/$$i $$i; \
525
		fi; \
526
	done
527
	touch $@
528

    
529
.PHONY: ganeti
530
ganeti:
531
	cd $(top_builddir) && test -h "$@" || { rm -f $@ && $(LN_S) lib $@; }
532

    
533
check-local:
534
	$(CHECK_PYTHON_CODE) $(check_python_code)
535

    
536
.PHONY: lint
537
lint: ganeti $(BUILT_SOURCES)
538
	@test -n "$(PYLINT)" || { echo 'pylint' not found during configure; exit 1; }
539
	$(PYLINT) $(LINT_OPTS) $(lint_python_code)
540

    
541
# a dist hook rule for catching revision control directories
542
distcheck-hook:
543
	if find $(top_distdir) -name .svn -or -name .git | grep .; then \
544
		echo "Found revision control files in final archive." 1>&2; \
545
		exit 1; \
546
	fi
547
	if find $(top_distdir) -name '*.py[co]' | grep .; then \
548
		echo "Found Python byte code in final archive." 1>&2; \
549
		exit 1; \
550
	fi
551
	if find $(top_distdir) -name '*~' | grep .; then \
552
		echo "Found backup files in final archive." 1>&2; \
553
		exit 1; \
554
	fi
555

    
556
install-exec-local:
557
	@mkdir_p@ "$(DESTDIR)${localstatedir}/lib/ganeti" \
558
	  "$(DESTDIR)${localstatedir}/log/ganeti" \
559
	  "$(DESTDIR)${localstatedir}/run/ganeti"
560

    
561
stamp-directories: Makefile
562
	@mkdir_p@ $(DIRS)
563
	touch $@
564

    
565
.PHONY: apidoc
566
apidoc: epydoc.conf $(RUN_IN_TEMPDIR) $(BUILT_SOURCES)
567
	test -e doc/api || mkdir doc/api
568
	$(RUN_IN_TEMPDIR) epydoc -v \
569
		--conf $(CURDIR)/epydoc.conf \
570
		--output $(CURDIR)/doc/api
571

    
572
.PHONY: TAGS
573
TAGS: $(BUILT_SOURCES)
574
	rm -f TAGS
575
	find . -path './lib/*.py' -o -path 'scripts/gnt-*' -o \
576
	  -path 'daemons/ganeti-*' -o -path 'tools/*' | \
577
	  etags -
578

    
579
.PHONY: coverage
580
coverage: $(BUILT_SOURCES) $(python_tests)
581
	set -e; \
582
	mkdir -p doc/coverage; \
583
	COVERAGE_FILE=$(CURDIR)/doc/coverage/data \
584
	TEXT_COVERAGE=$(CURDIR)/doc/coverage/report.txt \
585
	HTML_COVERAGE=$(CURDIR)/doc/coverage \
586
	$(PLAIN_TESTS_ENVIRONMENT) $(abs_top_srcdir)/autotools/gen-coverage \
587
	$(python_tests)
588

    
589
commit-check: distcheck lint apidoc
590

    
591
# vim: set noet :