Makefile.am 35.2 KB
Newer Older
1 2 3 4 5
# Ganeti makefile
# - Indent with tabs only.
# - Keep files sorted; one line per file.
# - Directories in lib/ must have their own *dir variable (see hypervisor).
# - All directories must be listed DIRS.
Michael Hanselmann's avatar
Michael Hanselmann committed
6
# - Use autogen.sh to generate Makefile.in and configure script.
7 8 9 10 11

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

12 13 14 15 16
# Helper values for calling builtin functions
empty :=
space := $(empty) $(empty)
comma := ,

17 18 19
# Use bash in order to be able to use pipefail
SHELL=/bin/bash

20
ACLOCAL_AMFLAGS = -I autotools
21
BUILD_BASH_COMPLETION = $(top_srcdir)/autotools/build-bash-completion
22
RUN_IN_TEMPDIR = $(top_srcdir)/autotools/run-in-tempdir
23
CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code
24
CHECK_MAN = $(top_srcdir)/autotools/check-man
25
CHECK_VERSION = $(top_srcdir)/autotools/check-version
26
CHECK_NEWS = $(top_srcdir)/autotools/check-news
27
CHECK_IMPORTS = $(top_srcdir)/autotools/check-imports
28
DOCPP = $(top_srcdir)/autotools/docpp
29
REPLACE_VARS_SED = autotools/replace_vars.sed
30
CONVERT_CONSTANTS = $(top_srcdir)/autotools/convert-constants
31

32 33
# Note: these are automake-specific variables, and must be named after
# the directory + 'dir' suffix
34
clientdir = $(pkgpythondir)/client
35
hypervisordir = $(pkgpythondir)/hypervisor
36
httpdir = $(pkgpythondir)/http
Michael Hanselmann's avatar
Michael Hanselmann committed
37
masterddir = $(pkgpythondir)/masterd
Guido Trotter's avatar
Guido Trotter committed
38
confddir = $(pkgpythondir)/confd
39
rapidir = $(pkgpythondir)/rapi
40
serverdir = $(pkgpythondir)/server
41
watcherdir = $(pkgpythondir)/watcher
42
impexpddir = $(pkgpythondir)/impexpd
43
utilsdir = $(pkgpythondir)/utils
44
toolsdir = $(pkglibdir)/tools
45
iallocatorsdir = $(pkglibdir)/iallocators
46
pytoolsdir = $(pkgpythondir)/tools
47 48
docdir = $(datadir)/doc/$(PACKAGE)

49 50 51
# Delete output file if an error occurred while building it
.DELETE_ON_ERROR:

52 53 54
HTOOLS_DIRS = \
	htools \
	htools/Ganeti \
55 56
	htools/Ganeti/HTools \
	htools/Ganeti/HTools/Program
57

58 59 60 61 62 63
DIRS = \
	autotools \
	daemons \
	devel \
	doc \
	doc/examples \
Guido Trotter's avatar
Guido Trotter committed
64
	doc/examples/hooks \
65
	doc/examples/gnt-debug \
66
	$(HTOOLS_DIRS) \
67
	lib \
68
	lib/client \
69
	lib/build \
70
	lib/confd \
71
	lib/http \
72
	lib/hypervisor \
73
	lib/impexpd \
Michael Hanselmann's avatar
Michael Hanselmann committed
74
	lib/masterd \
75
	lib/rapi \
76
	lib/server \
77
	lib/tools \
78
	lib/utils \
79
	lib/watcher \
80 81 82 83 84 85
	man \
	qa \
	test \
	test/data \
	tools

86
BUILDTIME_DIR_AUTOCREATE = \
87
	scripts \
88 89 90 91
	$(APIDOC_DIR) \
	$(APIDOC_PY_DIR) \
	$(APIDOC_HS_DIR) \
	$(APIDOC_HS_DIR)/Ganeti $(APIDOC_HS_DIR)/Ganeti/HTools \
92
	$(APIDOC_HS_DIR)/Ganeti/HTools/Program \
93 94 95
	$(COVERAGE_DIR) \
	$(COVERAGE_PY_DIR) \
	$(COVERAGE_HS_DIR) \
96
	.hpc
97 98 99

BUILDTIME_DIRS = \
	$(BUILDTIME_DIR_AUTOCREATE) \
100 101 102 103 104 105 106
	doc/html

DIRCHECK_EXCLUDE = \
	$(BUILDTIME_DIRS) \
	ganeti-[0-9]*.[0-9]*.[0-9]* \
	doc/html/_*

107
all_dirfiles = $(addsuffix /.dir,$(DIRS) $(BUILDTIME_DIR_AUTOCREATE))
108

109 110 111 112 113 114 115 116
# some helper vars
COVERAGE_DIR = doc/coverage
COVERAGE_PY_DIR = $(COVERAGE_DIR)/py
COVERAGE_HS_DIR = $(COVERAGE_DIR)/hs
APIDOC_DIR = doc/api
APIDOC_PY_DIR = $(APIDOC_DIR)/py
APIDOC_HS_DIR = $(APIDOC_DIR)/hs

Iustin Pop's avatar
Iustin Pop committed
117
MAINTAINERCLEANFILES = \
118
	$(docpng) \
119
	$(maninput) \
120
	doc/install-quick.rst \
121
	doc/news.rst \
122
	doc/upgrade.rst \
123
	vcs-version
Iustin Pop's avatar
Iustin Pop committed
124

125
maintainer-clean-local:
126
	rm -rf $(BUILDTIME_DIRS)
127

128
CLEANFILES = \
129
	$(addsuffix /*.py[co],$(DIRS)) \
130 131
	$(addsuffix /*.hi,$(HTOOLS_DIRS)) \
	$(addsuffix /*.o,$(HTOOLS_DIRS)) \
132
	$(all_dirfiles) \
133
	$(PYTHON_BOOTSTRAP) \
134
	epydoc.conf \
135
	autotools/replace_vars.sed \
136
	daemons/daemon-util \
137
	daemons/ganeti-cleaner \
138
	devel/upload \
139
	doc/examples/bash_completion \
140
	doc/examples/ganeti.initd \
141
	doc/examples/ganeti-kvm-poweroff.initd \
142
	doc/examples/ganeti.cron \
143
	doc/examples/gnt-config-backup \
Luca Bigliardi's avatar
Luca Bigliardi committed
144
	doc/examples/hooks/ipsec \
Iustin Pop's avatar
Iustin Pop committed
145 146
	$(man_MANS) \
	$(manhtml) \
147
	tools/kvm-ifup \
148
	stamp-srclinks \
149
	$(nodist_pkgpython_PYTHON) \
150
	$(HS_ALL_PROGS) $(HS_BUILT_SRCS) \
151 152
	.hpc/*.mix htools/*.tix \
	doc/hs-lint.html
153

154 155
# BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise
# it'll cause the target to rebuild every time.
156 157
BUILT_SOURCES = \
	ganeti \
158
	stamp-srclinks \
159
	$(all_dirfiles) \
160 161
	$(PYTHON_BOOTSTRAP) \
	$(BUILT_PYTHON_SOURCES)
162

163
BUILT_PYTHON_SOURCES = \
164 165
	lib/_autoconf.py \
	lib/_vcsversion.py
166

167 168 169
nodist_pkgpython_PYTHON = \
	$(BUILT_PYTHON_SOURCES)

170
noinst_PYTHON = \
Michael Hanselmann's avatar
Michael Hanselmann committed
171 172
	lib/build/__init__.py \
	lib/build/sphinx_ext.py
173

174 175
pkgpython_PYTHON = \
	lib/__init__.py \
Guido Trotter's avatar
Guido Trotter committed
176
	lib/asyncnotifier.py \
177 178 179 180 181
	lib/backend.py \
	lib/bdev.py \
	lib/bootstrap.py \
	lib/cli.py \
	lib/cmdlib.py \
182
	lib/compat.py \
183 184
	lib/config.py \
	lib/constants.py \
185
	lib/daemon.py \
186
	lib/errors.py \
187
	lib/ht.py \
188
	lib/jqueue.py \
189
	lib/jstore.py \
190 191 192
	lib/locking.py \
	lib/luxi.py \
	lib/mcpu.py \
193
	lib/netutils.py \
194 195
	lib/objects.py \
	lib/opcodes.py \
196
	lib/qlang.py \
197
	lib/query.py \
198
	lib/rpc.py \
199
	lib/runtime.py \
200 201 202
	lib/serializer.py \
	lib/ssconf.py \
	lib/ssh.py \
203
	lib/storage.py \
204
	lib/uidpool.py \
205
	lib/workerpool.py
206

207
client_PYTHON = \
208
	lib/client/__init__.py \
209
	lib/client/gnt_backup.py \
210
	lib/client/gnt_cluster.py \
211
	lib/client/gnt_debug.py \
212
	lib/client/gnt_group.py \
213
	lib/client/gnt_instance.py \
214
	lib/client/gnt_job.py \
215
	lib/client/gnt_node.py \
216
	lib/client/gnt_os.py
217

218 219 220
hypervisor_PYTHON = \
	lib/hypervisor/__init__.py \
	lib/hypervisor/hv_base.py \
221
	lib/hypervisor/hv_chroot.py \
222
	lib/hypervisor/hv_fake.py \
Guido Trotter's avatar
Guido Trotter committed
223
	lib/hypervisor/hv_kvm.py \
Iustin Pop's avatar
Iustin Pop committed
224
	lib/hypervisor/hv_lxc.py \
225 226
	lib/hypervisor/hv_xen.py

227 228
rapi_PYTHON = \
	lib/rapi/__init__.py \
229
	lib/rapi/baserlib.py \
David Knowles's avatar
David Knowles committed
230
	lib/rapi/client.py \
231
	lib/rapi/client_utils.py \
232 233
	lib/rapi/connector.py \
	lib/rapi/rlib2.py
234

235
http_PYTHON = \
236
	lib/http/__init__.py \
237
	lib/http/auth.py \
238 239
	lib/http/client.py \
	lib/http/server.py
240

Guido Trotter's avatar
Guido Trotter committed
241
confd_PYTHON = \
Guido Trotter's avatar
Guido Trotter committed
242
	lib/confd/__init__.py \
Guido Trotter's avatar
Guido Trotter committed
243
	lib/confd/client.py \
244 245
	lib/confd/querylib.py \
	lib/confd/server.py
246

Michael Hanselmann's avatar
Michael Hanselmann committed
247
masterd_PYTHON = \
248 249
	lib/masterd/__init__.py \
	lib/masterd/instance.py
Michael Hanselmann's avatar
Michael Hanselmann committed
250

251 252 253
impexpd_PYTHON = \
	lib/impexpd/__init__.py

254
watcher_PYTHON = \
255
	lib/watcher/__init__.py \
256 257
	lib/watcher/nodemaint.py \
	lib/watcher/state.py
258

259
server_PYTHON = \
260
	lib/server/__init__.py \
261
	lib/server/confd.py \
262
	lib/server/masterd.py \
263 264
	lib/server/noded.py \
	lib/server/rapi.py
265

266 267 268 269
pytools_PYTHON = \
	lib/tools/__init__.py \
	lib/tools/ensure_dirs.py

270
utils_PYTHON = \
271
	lib/utils/__init__.py \
272
	lib/utils/algo.py \
273
	lib/utils/filelock.py \
274
	lib/utils/hash.py \
275
	lib/utils/io.py \
276
	lib/utils/log.py \
277
	lib/utils/mlock.py \
278
	lib/utils/nodesetup.py \
279
	lib/utils/process.py \
280
	lib/utils/retry.py \
281
	lib/utils/text.py \
282 283
	lib/utils/wrapper.py \
	lib/utils/x509.py
284

Michael Hanselmann's avatar
Michael Hanselmann committed
285
docrst = \
286
	doc/admin.rst \
287
	doc/design-2.0.rst \
288
	doc/design-2.1.rst \
289
	doc/design-2.2.rst \
Guido Trotter's avatar
Guido Trotter committed
290
	doc/design-2.3.rst \
291
	doc/design-htools-2.3.rst \
292
	doc/design-2.4.rst \
293
	doc/design-2.5.rst \
294
	doc/design-draft.rst \
295
	doc/design-oob.rst \
Tsachy Shacham's avatar
Tsachy Shacham committed
296
	doc/design-cpu-pinning.rst \
297
	doc/design-query2.rst \
298
	doc/design-x509-ca.rst \
299
	doc/design-http-server.rst \
300
	doc/design-impexp2.rst \
301
	doc/design-lu-generated-jobs.rst \
302
	doc/design-multi-reloc.rst \
303
	doc/design-network.rst \
Michael Hanselmann's avatar
Michael Hanselmann committed
304
	doc/design-chained-jobs.rst \
305
	doc/design-ovf-support.rst \
306
	doc/cluster-merge.rst \
307
	doc/design-shared-storage.rst \
308
	doc/devnotes.rst \
309
	doc/glossary.rst \
310
	doc/hooks.rst \
311
	doc/iallocator.rst \
312
	doc/index.rst \
313
	doc/install-quick.rst \
314
	doc/install.rst \
315
	doc/locking.rst \
316
	doc/move-instance.rst \
Iustin Pop's avatar
Iustin Pop committed
317
	doc/news.rst \
318
	doc/rapi.rst \
319
	doc/security.rst \
320
	doc/upgrade.rst \
Iustin Pop's avatar
Iustin Pop committed
321
	doc/walkthrough.rst
Michael Hanselmann's avatar
Michael Hanselmann committed
322

323 324
HS_PROGS = htools/htools
HS_BIN_ROLES = hbal hscan hspace
325

326 327
HS_ALL_PROGS = $(HS_PROGS) htools/test
HS_PROG_SRCS = $(patsubst %,%.hs,$(HS_ALL_PROGS))
328
# we don't add -Werror by default
329
HFLAGS = -O -Wall -fwarn-monomorphism-restriction -fwarn-tabs -ihtools
330
# extra flags that can be overriden on the command line
331
HEXTRA =
332
# exclude options for coverage reports
333 334 335
HPCEXCL = --exclude Main --exclude Ganeti.HTools.QC \
	--exclude Ganeti.Constants \
	--exclude Ganeti.HTools.Version
336

337
HS_LIB_SRCS = \
338 339
	htools/Ganeti/HTools/CLI.hs \
	htools/Ganeti/HTools/Cluster.hs \
340
	htools/Ganeti/HTools/Compat.hs \
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355
	htools/Ganeti/HTools/Container.hs \
	htools/Ganeti/HTools/ExtLoader.hs \
	htools/Ganeti/HTools/Group.hs \
	htools/Ganeti/HTools/IAlloc.hs \
	htools/Ganeti/HTools/Instance.hs \
	htools/Ganeti/HTools/Loader.hs \
	htools/Ganeti/HTools/Luxi.hs \
	htools/Ganeti/HTools/Node.hs \
	htools/Ganeti/HTools/PeerMap.hs \
	htools/Ganeti/HTools/QC.hs \
	htools/Ganeti/HTools/Rapi.hs \
	htools/Ganeti/HTools/Simu.hs \
	htools/Ganeti/HTools/Text.hs \
	htools/Ganeti/HTools/Types.hs \
	htools/Ganeti/HTools/Utils.hs \
356
	htools/Ganeti/HTools/Program/Hail.hs \
357
	htools/Ganeti/HTools/Program/Hbal.hs \
358
	htools/Ganeti/HTools/Program/Hscan.hs \
359
	htools/Ganeti/HTools/Program/Hspace.hs \
360 361 362 363
	htools/Ganeti/Jobs.hs \
	htools/Ganeti/Luxi.hs \
	htools/Ganeti/OpCodes.hs

364
HS_BUILT_SRCS = htools/Ganeti/HTools/Version.hs htools/Ganeti/Constants.hs
365
HS_BUILT_SRCS_IN = $(patsubst %,%.in,$(HS_BUILT_SRCS))
366

367 368
$(RUN_IN_TEMPDIR): | $(all_dirfiles)

Iustin Pop's avatar
Iustin Pop committed
369 370 371 372 373
# Note: we use here an order-only prerequisite, as the contents of
# _autoconf.py are not actually influencing the html build output: it
# has to exist in order for the sphinx module to be loaded
# successfully, but we certainly don't want the docs to be rebuilt if
# it changes
374
doc/html/index.html: $(docrst) $(docpng) doc/conf.py configure.ac \
Iustin Pop's avatar
Iustin Pop committed
375
	$(RUN_IN_TEMPDIR) lib/build/sphinx_ext.py lib/opcodes.py lib/ht.py \
376
	| $(BUILT_PYTHON_SOURCES)
377 378
	@test -n "$(SPHINX)" || \
	    { echo 'sphinx-build' not found during configure; exit 1; }
379
	@mkdir_p@ $(dir $@)
380
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(SPHINX) -q -W -b html \
381
	    -d . \
382 383
	    -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \
	    -D release="$(PACKAGE_VERSION)" \
384 385 386 387
	    $(abs_top_srcdir)/doc $(CURDIR)/doc/html
	rm -f doc/html/.buildinfo doc/html/objects.inv
	touch $@

388
doc/html: doc/html/index.html
Iustin Pop's avatar
Iustin Pop committed
389

390
doc/install-quick.rst: INSTALL
391
doc/news.rst: NEWS
392
doc/upgrade.rst: UPGRADE
393

394
doc/install-quick.rst doc/news.rst doc/upgrade.rst:
395 396 397 398 399 400 401
	set -e; \
	{ echo '.. This file is automatically updated at build time from $<.'; \
	  echo '.. Do not edit.'; \
	  echo; \
	  cat $<; \
	} > $@

402
docdot = \
403 404 405
	doc/arch-2.0.dot \
	doc/design-2.1-lock-acquire.dot \
	doc/design-2.1-lock-release.dot
406

407
docpng = $(patsubst %.dot,%.png,$(docdot))
408

409 410 411 412 413 414 415 416
# Things to build but not to install (add it to EXTRA_DIST if it should be
# distributed)
noinst_DATA = \
	devel/upload \
	doc/html \
	doc/examples/bash_completion \
	doc/examples/ganeti.cron \
	doc/examples/ganeti.initd \
417
	doc/examples/ganeti-kvm-poweroff.initd \
418
	doc/examples/gnt-config-backup \
419 420
	doc/examples/hooks/ipsec \
	$(manhtml)
421

422
gnt_scripts = \
423 424 425
	scripts/gnt-backup \
	scripts/gnt-cluster \
	scripts/gnt-debug \
426
	scripts/gnt-group \
427 428 429 430 431
	scripts/gnt-instance \
	scripts/gnt-job \
	scripts/gnt-node \
	scripts/gnt-os

432
PYTHON_BOOTSTRAP_SBIN = \
433
	daemons/ganeti-confd \
434
	daemons/ganeti-masterd \
435
	daemons/ganeti-noded \
436
	daemons/ganeti-watcher \
437
	daemons/ganeti-rapi \
438
	scripts/gnt-backup \
439
	scripts/gnt-cluster \
440
	scripts/gnt-debug \
441
	scripts/gnt-group \
442
	scripts/gnt-instance \
443
	scripts/gnt-job \
444
	scripts/gnt-node \
445
	scripts/gnt-os
446

447 448 449 450
PYTHON_BOOTSTRAP = \
	$(PYTHON_BOOTSTRAP_SBIN) \
	tools/ensure-dirs

451 452 453 454 455 456 457
qa_scripts = \
	qa/ganeti-qa.py \
	qa/qa_cluster.py \
	qa/qa_config.py \
	qa/qa_daemon.py \
	qa/qa_env.py \
	qa/qa_error.py \
Andrea Spadaccini's avatar
Andrea Spadaccini committed
458
	qa/qa_group.py \
459 460 461 462 463 464 465
	qa/qa_instance.py \
	qa/qa_node.py \
	qa/qa_os.py \
	qa/qa_rapi.py \
	qa/qa_tags.py \
	qa/qa_utils.py

466 467
bin_SCRIPTS =
if WANT_HTOOLS
468
bin_SCRIPTS += $(filter-out htools/hail,$(HS_PROGS))
469 470
install-exec-hook:
	@mkdir_p@ $(DESTDIR)$(iallocatorsdir)
471 472
# FIXME: this is a hardcoded logic, instead of auto-resolving
	$(LN_S) -f ../../../bin/htools \
473
		   $(DESTDIR)$(iallocatorsdir)/hail
474
	for role in $(HS_BIN_ROLES); do \
475
		$(LN_S) -f htools \
476 477
			   $(DESTDIR)$(bindir)/$$role ; \
	done
478 479
endif

480
$(HS_ALL_PROGS): %: %.hs $(HS_LIB_SRCS) $(HS_BUILT_SRCS) Makefile
481 482 483 484
	@if [ -z "$(HTOOLS)" ]; then \
	  echo "Error: htools compilation disabled at configure time" 1>&2 ;\
	  exit 1; \
	fi
485 486
	@BINARY=$(@:htools/%=%); \
	if [ "$BINARY" = "test" ] && [ -z "$(GHC_PKG_QUICKCHECK)" ]; then \
487 488
	  echo "Error: cannot run unittests without the QuickCheck library (see devnotes.rst)" 1>&2; \
	  exit 1; \
489 490
	fi
	BINARY=$(@:htools/%=%); $(GHC) --make \
491 492
	  $(HFLAGS) $(HEXTRA) \
	  $(HTOOLS_NOCURL) $(HTOOLS_PARALLEL3) \
493
	  -osuf $$BINARY.o -hisuf $$BINARY.hi $@
494

495 496 497 498 499
# for the htools/test binary, we need to enable profiling/coverage
htools/test: HEXTRA=-fhpc -Wwarn -fno-warn-missing-signatures \
	-fno-warn-monomorphism-restriction -fno-warn-orphans \
	-fno-warn-missing-methods -fno-warn-unused-imports

500 501
dist_sbin_SCRIPTS = \
	tools/ganeti-listrunner
502

503
nodist_sbin_SCRIPTS = \
504
	$(PYTHON_BOOTSTRAP_SBIN) \
505 506
	daemons/ganeti-cleaner

507
dist_tools_PYTHON = \
508 509 510
	tools/burnin \
	tools/cfgshell \
	tools/cfgupgrade \
511
	tools/cfgupgrade12 \
512
	tools/cluster-merge \
Iustin Pop's avatar
Iustin Pop committed
513
	tools/lvmstrap \
514
	tools/move-instance \
515
	tools/setup-ssh \
Iustin Pop's avatar
Iustin Pop committed
516
	tools/sanitize-config
517

518 519
dist_tools_SCRIPTS = \
	$(dist_tools_PYTHON) \
520
	tools/kvm-console-wrapper \
521 522
	tools/xm-console-wrapper

523
pkglib_python_scripts = \
524 525
	daemons/import-export \
	tools/check-cert-expired
526

527 528 529
nodist_pkglib_python_scripts = \
	tools/ensure-dirs

530
pkglib_SCRIPTS = \
531
	daemons/daemon-util \
532
	tools/kvm-ifup \
533
	$(pkglib_python_scripts)
534

535 536 537
nodist_pkglib_SCRIPTS = \
	$(nodist_pkglib_python_scripts)

538 539
EXTRA_DIST = \
	NEWS \
540
	UPGRADE \
541
	epydoc.conf.in \
Michael Hanselmann's avatar
Michael Hanselmann committed
542
	pylintrc \
543
	autotools/build-bash-completion \
544
	autotools/check-python-code \
545
	autotools/check-imports \
546
	autotools/check-man \
547
	autotools/check-news \
548
	autotools/check-tar \
549
	autotools/check-version \
550
	autotools/convert-constants \
551
	autotools/docpp \
552
	autotools/gen-coverage \
553
	autotools/testrunner \
554
	$(RUN_IN_TEMPDIR) \
555
	daemons/daemon-util.in \
556
	daemons/ganeti-cleaner.in \
557
	$(pkglib_python_scripts) \
558
	devel/upload.in \
559
	tools/kvm-ifup.in \
560
	$(docdot) \
561
	$(docpng) \
562 563 564
	$(docrst) \
	doc/conf.py \
	doc/html \
565
	doc/examples/ganeti.initd.in \
566
	doc/examples/ganeti-kvm-poweroff.initd.in \
567
	doc/examples/ganeti.cron.in \
568
	doc/examples/gnt-config-backup.in \
569 570
	doc/examples/ganeti.default \
	doc/examples/ganeti.default-debug \
Guido Trotter's avatar
Guido Trotter committed
571
	doc/examples/hooks/ethers \
Luca Bigliardi's avatar
Luca Bigliardi committed
572
	doc/examples/hooks/ipsec.in \
573 574 575
	doc/examples/gnt-debug/README \
	doc/examples/gnt-debug/delay0.json \
	doc/examples/gnt-debug/delay50.json \
576 577 578 579
	test/testutils.py \
	test/mocks.py \
	$(dist_TESTS) \
	$(TEST_FILES) \
Iustin Pop's avatar
Iustin Pop committed
580 581
	man/footer.rst \
	$(manrst) \
582
	$(maninput) \
Michael Hanselmann's avatar
Michael Hanselmann committed
583
	qa/qa-sample.json \
584
	$(qa_scripts) \
585 586
	$(HS_LIB_SRCS) $(HS_BUILT_SRCS_IN) \
	$(HS_PROG_SRCS)
587 588 589

man_MANS = \
	man/ganeti.7 \
590
	man/ganeti-cleaner.8 \
Guido Trotter's avatar
Guido Trotter committed
591
	man/ganeti-confd.8 \
592
	man/ganeti-listrunner.8 \
593
	man/ganeti-masterd.8 \
594 595
	man/ganeti-noded.8 \
	man/ganeti-os-interface.7 \
596
	man/ganeti-rapi.8 \
597 598 599
	man/ganeti-watcher.8 \
	man/gnt-backup.8 \
	man/gnt-cluster.8 \
600
	man/gnt-debug.8 \
601
	man/gnt-group.8 \
602
	man/gnt-instance.8 \
603
	man/gnt-job.8 \
604
	man/gnt-node.8 \
605 606 607 608
	man/gnt-os.8 \
	man/hail.1 \
	man/hbal.1 \
	man/hscan.1 \
Iustin Pop's avatar
Iustin Pop committed
609 610
	man/hspace.1 \
	man/htools.1
611

612
manrst = $(patsubst %.1,%.rst,$(patsubst %.7,%.rst,$(patsubst %.8,%.rst,$(man_MANS))))
Iustin Pop's avatar
Iustin Pop committed
613
manhtml = $(patsubst %.rst,%.html,$(manrst))
614
mangen = $(patsubst %.rst,%.gen,$(manrst))
615
maninput = \
616
	$(patsubst %.1,%.1.in,$(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS)))) \
Iustin Pop's avatar
Iustin Pop committed
617
	$(patsubst %.html,%.html.in,$(manhtml)) \
618
	man/footer.man man/footer.html $(mangen)
619 620

TEST_FILES = \
Manuel Franceschini's avatar
Manuel Franceschini committed
621 622 623 624 625
	test/data/bdev-drbd-8.0.txt \
	test/data/bdev-drbd-8.3.txt \
	test/data/bdev-drbd-disk.txt \
	test/data/bdev-drbd-net-ip4.txt \
	test/data/bdev-drbd-net-ip6.txt \
626
	test/data/cert1.pem \
627 628 629 630 631 632 633
	test/data/ip-addr-show-dummy0.txt \
	test/data/ip-addr-show-lo-ipv4.txt \
	test/data/ip-addr-show-lo-ipv6.txt \
	test/data/ip-addr-show-lo-oneline-ipv4.txt \
	test/data/ip-addr-show-lo-oneline-ipv6.txt \
	test/data/ip-addr-show-lo-oneline.txt \
	test/data/ip-addr-show-lo.txt \
634
	test/data/proc_drbd8.txt \
635
	test/data/proc_drbd80-emptyline.txt \
636
	test/data/proc_drbd83.txt \
637 638
	test/data/proc_drbd83_sync.txt \
	test/data/proc_drbd83_sync_krnl2.6.39.txt \
639
	test/data/sys_drbd_usermode_helper.txt \
640
	test/import-export_unittest-helper
641

642
python_tests = \
Guido Trotter's avatar
Guido Trotter committed
643
	test/ganeti.asyncnotifier_unittest.py \
644
	test/ganeti.backend_unittest.py \
645 646
	test/ganeti.bdev_unittest.py \
	test/ganeti.cli_unittest.py \
René Nussbaumer's avatar
René Nussbaumer committed
647
	test/ganeti.client.gnt_cluster_unittest.py \
648
	test/ganeti.client.gnt_instance_unittest.py \
Guido Trotter's avatar
Guido Trotter committed
649
	test/ganeti.daemon_unittest.py \
650
	test/ganeti.cmdlib_unittest.py \
651
	test/ganeti.compat_unittest.py \
652
	test/ganeti.confd.client_unittest.py \
653
	test/ganeti.config_unittest.py \
654
	test/ganeti.constants_unittest.py \
655
	test/ganeti.errors_unittest.py \
656
	test/ganeti.hooks_unittest.py \
657
	test/ganeti.ht_unittest.py \
658
	test/ganeti.http_unittest.py \
659
	test/ganeti.hypervisor_unittest.py \
660 661
	test/ganeti.hypervisor.hv_chroot_unittest.py \
	test/ganeti.hypervisor.hv_fake_unittest.py \
662
	test/ganeti.hypervisor.hv_kvm_unittest.py \
663 664
	test/ganeti.hypervisor.hv_lxc_unittest.py \
	test/ganeti.hypervisor.hv_xen_unittest.py \
665
	test/ganeti.impexpd_unittest.py \
666
	test/ganeti.jqueue_unittest.py \
667
	test/ganeti.locking_unittest.py \
668
	test/ganeti.luxi_unittest.py \
669
	test/ganeti.masterd.instance_unittest.py \
670
	test/ganeti.mcpu_unittest.py \
671
	test/ganeti.netutils_unittest.py \
672
	test/ganeti.objects_unittest.py \
673
	test/ganeti.opcodes_unittest.py \
674
	test/ganeti.qlang_unittest.py \
675
	test/ganeti.query_unittest.py \
676
	test/ganeti.rapi.baserlib_unittest.py \
David Knowles's avatar
David Knowles committed
677
	test/ganeti.rapi.client_unittest.py \
678
	test/ganeti.rapi.resources_unittest.py \
679
	test/ganeti.rapi.rlib2_unittest.py \
680
	test/ganeti.rpc_unittest.py \
681
	test/ganeti.runtime_unittest.py \
682 683
	test/ganeti.serializer_unittest.py \
	test/ganeti.ssh_unittest.py \
684
	test/ganeti.tools.ensure_dirs_unittest.py \
Balazs Lecz's avatar
Balazs Lecz committed
685
	test/ganeti.uidpool_unittest.py \
686
	test/ganeti.utils.algo_unittest.py \
687
	test/ganeti.utils.filelock_unittest.py \
688
	test/ganeti.utils.hash_unittest.py \
689
	test/ganeti.utils.io_unittest.py \
690
	test/ganeti.utils.log_unittest.py \
691
	test/ganeti.utils.mlock_unittest.py \
692
	test/ganeti.utils.nodesetup_unittest.py \
693
	test/ganeti.utils.process_unittest.py \