Makefile.am 37.7 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_HEADER = $(top_srcdir)/autotools/check-header
25
CHECK_MAN = $(top_srcdir)/autotools/check-man
26
CHECK_VERSION = $(top_srcdir)/autotools/check-version
27
CHECK_NEWS = $(top_srcdir)/autotools/check-news
28
CHECK_IMPORTS = $(top_srcdir)/autotools/check-imports
29
DOCPP = $(top_srcdir)/autotools/docpp
30
REPLACE_VARS_SED = autotools/replace_vars.sed
31
CONVERT_CONSTANTS = $(top_srcdir)/autotools/convert-constants
32
BUILD_RPC = $(top_srcdir)/autotools/build-rpc
33

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

51 52 53
# Delete output file if an error occurred while building it
.DELETE_ON_ERROR:

54 55 56
HTOOLS_DIRS = \
	htools \
	htools/Ganeti \
57 58
	htools/Ganeti/HTools \
	htools/Ganeti/HTools/Program
59

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

90
BUILDTIME_DIR_AUTOCREATE = \
91
	scripts \
92 93 94 95
	$(APIDOC_DIR) \
	$(APIDOC_PY_DIR) \
	$(APIDOC_HS_DIR) \
	$(APIDOC_HS_DIR)/Ganeti $(APIDOC_HS_DIR)/Ganeti/HTools \
96
	$(APIDOC_HS_DIR)/Ganeti/HTools/Program \
97 98 99
	$(COVERAGE_DIR) \
	$(COVERAGE_PY_DIR) \
	$(COVERAGE_HS_DIR) \
100
	.hpc
101 102 103

BUILDTIME_DIRS = \
	$(BUILDTIME_DIR_AUTOCREATE) \
104 105 106 107 108 109 110
	doc/html

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

111
all_dirfiles = $(addsuffix /.dir,$(DIRS) $(BUILDTIME_DIR_AUTOCREATE))
112

113 114 115 116 117 118 119 120
# 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
121
MAINTAINERCLEANFILES = \
122
	$(docpng) \
123
	$(maninput) \
124
	doc/install-quick.rst \
125
	doc/news.rst \
126
	doc/upgrade.rst \
127
	vcs-version
Iustin Pop's avatar
Iustin Pop committed
128

129
maintainer-clean-local:
130
	rm -rf $(BUILDTIME_DIRS)
131

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

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

built_base_sources = \
164
	ganeti \
165
	stamp-srclinks \
166
	$(all_dirfiles)
167

168
built_python_base_sources = \
169
	lib/_autoconf.py \
170 171 172 173
	lib/_vcsversion.py

BUILT_PYTHON_SOURCES = \
	$(built_python_base_sources) \
174
	lib/_generated_rpc.py
175

176 177 178 179
# Generating the RPC wrappers depends on many things, so make sure it's built at
# the end of the built sources
lib/_generated_rpc.py: | $(built_base_sources) $(built_python_base_sources)

180 181 182 183 184 185 186 187
# these are all built from the underlying %.in sources
BUILT_EXAMPLES = \
	doc/examples/ganeti-kvm-poweroff.initd \
	doc/examples/ganeti.cron \
	doc/examples/ganeti.initd \
	doc/examples/gnt-config-backup \
	doc/examples/hooks/ipsec

188 189 190
nodist_pkgpython_PYTHON = \
	$(BUILT_PYTHON_SOURCES)

191
noinst_PYTHON = \
Michael Hanselmann's avatar
Michael Hanselmann committed
192 193
	lib/build/__init__.py \
	lib/build/sphinx_ext.py
194

195 196
pkgpython_PYTHON = \
	lib/__init__.py \
Guido Trotter's avatar
Guido Trotter committed
197
	lib/asyncnotifier.py \
198 199 200 201 202
	lib/backend.py \
	lib/bdev.py \
	lib/bootstrap.py \
	lib/cli.py \
	lib/cmdlib.py \
203
	lib/compat.py \
204 205
	lib/config.py \
	lib/constants.py \
206
	lib/daemon.py \
207
	lib/errors.py \
208
	lib/ht.py \
209
	lib/jqueue.py \
210
	lib/jstore.py \
211 212 213
	lib/locking.py \
	lib/luxi.py \
	lib/mcpu.py \
214
	lib/netutils.py \
215 216
	lib/objects.py \
	lib/opcodes.py \
217
	lib/ovf.py \
218
	lib/qlang.py \
219
	lib/query.py \
220
	lib/rpc.py \
221
	lib/rpc_defs.py \
222
	lib/runtime.py \
223 224 225
	lib/serializer.py \
	lib/ssconf.py \
	lib/ssh.py \
226
	lib/storage.py \
227
	lib/uidpool.py \
228
	lib/workerpool.py
229

230
client_PYTHON = \
231
	lib/client/__init__.py \
232
	lib/client/gnt_backup.py \
233
	lib/client/gnt_cluster.py \
234
	lib/client/gnt_debug.py \
235
	lib/client/gnt_group.py \
236
	lib/client/gnt_instance.py \
237
	lib/client/gnt_job.py \
238
	lib/client/gnt_node.py \
239
	lib/client/gnt_os.py
240

241 242 243
hypervisor_PYTHON = \
	lib/hypervisor/__init__.py \
	lib/hypervisor/hv_base.py \
244
	lib/hypervisor/hv_chroot.py \
245
	lib/hypervisor/hv_fake.py \
Guido Trotter's avatar
Guido Trotter committed
246
	lib/hypervisor/hv_kvm.py \
Iustin Pop's avatar
Iustin Pop committed
247
	lib/hypervisor/hv_lxc.py \
248 249
	lib/hypervisor/hv_xen.py

250 251
rapi_PYTHON = \
	lib/rapi/__init__.py \
252
	lib/rapi/baserlib.py \
David Knowles's avatar
David Knowles committed
253
	lib/rapi/client.py \
254
	lib/rapi/client_utils.py \
255 256
	lib/rapi/connector.py \
	lib/rapi/rlib2.py
257

258
http_PYTHON = \
259
	lib/http/__init__.py \
260
	lib/http/auth.py \
261 262
	lib/http/client.py \
	lib/http/server.py
263

Guido Trotter's avatar
Guido Trotter committed
264
confd_PYTHON = \
Guido Trotter's avatar
Guido Trotter committed
265
	lib/confd/__init__.py \
Guido Trotter's avatar
Guido Trotter committed
266
	lib/confd/client.py \
267 268
	lib/confd/querylib.py \
	lib/confd/server.py
269

Michael Hanselmann's avatar
Michael Hanselmann committed
270
masterd_PYTHON = \
271 272
	lib/masterd/__init__.py \
	lib/masterd/instance.py
Michael Hanselmann's avatar
Michael Hanselmann committed
273

274 275 276
impexpd_PYTHON = \
	lib/impexpd/__init__.py

277
watcher_PYTHON = \
278
	lib/watcher/__init__.py \
279 280
	lib/watcher/nodemaint.py \
	lib/watcher/state.py
281

282
server_PYTHON = \
283
	lib/server/__init__.py \
284
	lib/server/confd.py \
285
	lib/server/masterd.py \
286 287
	lib/server/noded.py \
	lib/server/rapi.py
288

289 290 291 292
pytools_PYTHON = \
	lib/tools/__init__.py \
	lib/tools/ensure_dirs.py

293
utils_PYTHON = \
294
	lib/utils/__init__.py \
295
	lib/utils/algo.py \
296
	lib/utils/filelock.py \
297
	lib/utils/hash.py \
298
	lib/utils/io.py \
299
	lib/utils/log.py \
300
	lib/utils/mlock.py \
301
	lib/utils/nodesetup.py \
302
	lib/utils/process.py \
303
	lib/utils/retry.py \
304
	lib/utils/text.py \
305 306
	lib/utils/wrapper.py \
	lib/utils/x509.py
307

Michael Hanselmann's avatar
Michael Hanselmann committed
308
docrst = \
309
	doc/admin.rst \
310
	doc/design-2.0.rst \
311
	doc/design-2.1.rst \
312
	doc/design-2.2.rst \
Guido Trotter's avatar
Guido Trotter committed
313
	doc/design-2.3.rst \
314
	doc/design-htools-2.3.rst \
315
	doc/design-2.4.rst \
316
	doc/design-2.5.rst \
317
	doc/design-draft.rst \
318
	doc/design-oob.rst \
Tsachy Shacham's avatar
Tsachy Shacham committed
319
	doc/design-cpu-pinning.rst \
320
	doc/design-query2.rst \
321
	doc/design-x509-ca.rst \
322
	doc/design-http-server.rst \
323
	doc/design-impexp2.rst \
324
	doc/design-lu-generated-jobs.rst \
325
	doc/design-multi-reloc.rst \
326
	doc/design-network.rst \
Michael Hanselmann's avatar
Michael Hanselmann committed
327
	doc/design-chained-jobs.rst \
328
	doc/design-ovf-support.rst \
329
	doc/design-resource-model.rst \
330
	doc/cluster-merge.rst \
331
	doc/design-shared-storage.rst \
332
	doc/design-node-state-cache.rst \
333
	doc/design-virtual-clusters.rst \
334
	doc/devnotes.rst \
335
	doc/glossary.rst \
336
	doc/hooks.rst \
337
	doc/iallocator.rst \
338
	doc/index.rst \
339
	doc/install-quick.rst \
340
	doc/install.rst \
341
	doc/locking.rst \
342
	doc/move-instance.rst \
Iustin Pop's avatar
Iustin Pop committed
343
	doc/news.rst \
344
	doc/rapi.rst \
345
	doc/security.rst \
346
	doc/upgrade.rst \
Iustin Pop's avatar
Iustin Pop committed
347
	doc/walkthrough.rst
Michael Hanselmann's avatar
Michael Hanselmann committed
348

349 350
HS_PROGS = htools/htools
HS_BIN_ROLES = hbal hscan hspace
351

352 353
HS_ALL_PROGS = $(HS_PROGS) htools/test
HS_PROG_SRCS = $(patsubst %,%.hs,$(HS_ALL_PROGS))
354
# we don't add -Werror by default
355
HFLAGS = -O -Wall -fwarn-monomorphism-restriction -fwarn-tabs -ihtools
356
# extra flags that can be overriden on the command line
357
HEXTRA =
358
# exclude options for coverage reports
359
HPCEXCL = --exclude Main \
360
	--exclude Ganeti.Constants \
361 362 363
	--exclude Ganeti.THH \
	--exclude Ganeti.HTools.QC \
	--exclude Ganeti.HTools.QCHelper \
364
	--exclude Ganeti.HTools.Version
365

366
HS_LIB_SRCS = \
367 368
	htools/Ganeti/HTools/CLI.hs \
	htools/Ganeti/HTools/Cluster.hs \
369
	htools/Ganeti/HTools/Compat.hs \
370 371 372 373 374
	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 \
375
	htools/Ganeti/HTools/JSON.hs \
376 377 378 379 380
	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 \
381
	htools/Ganeti/HTools/QCHelper.hs \
382 383 384 385 386
	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 \
387
	htools/Ganeti/HTools/Program/Hail.hs \
388
	htools/Ganeti/HTools/Program/Hbal.hs \
389
	htools/Ganeti/HTools/Program/Hscan.hs \
390
	htools/Ganeti/HTools/Program/Hspace.hs \
391 392
	htools/Ganeti/Jobs.hs \
	htools/Ganeti/Luxi.hs \
393 394
	htools/Ganeti/OpCodes.hs \
	htools/Ganeti/THH.hs
395

396
HS_BUILT_SRCS = htools/Ganeti/HTools/Version.hs htools/Ganeti/Constants.hs
397
HS_BUILT_SRCS_IN = $(patsubst %,%.in,$(HS_BUILT_SRCS))
398

399 400
$(RUN_IN_TEMPDIR): | $(all_dirfiles)

Iustin Pop's avatar
Iustin Pop committed
401 402 403 404 405
# 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
406
doc/html/index.html: $(docrst) $(docpng) doc/conf.py configure.ac \
Iustin Pop's avatar
Iustin Pop committed
407
	$(RUN_IN_TEMPDIR) lib/build/sphinx_ext.py lib/opcodes.py lib/ht.py \
408
	| $(BUILT_PYTHON_SOURCES)
409 410
	@test -n "$(SPHINX)" || \
	    { echo 'sphinx-build' not found during configure; exit 1; }
411
	@mkdir_p@ $(dir $@)
412
	PYTHONPATH=. $(RUN_IN_TEMPDIR) $(SPHINX) -q -W -b html \
413
	    -d . \
414 415
	    -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \
	    -D release="$(PACKAGE_VERSION)" \
416 417 418 419
	    $(abs_top_srcdir)/doc $(CURDIR)/doc/html
	rm -f doc/html/.buildinfo doc/html/objects.inv
	touch $@

420
doc/html: doc/html/index.html
Iustin Pop's avatar
Iustin Pop committed
421

422
doc/install-quick.rst: INSTALL
423
doc/news.rst: NEWS
424
doc/upgrade.rst: UPGRADE
425

426
doc/install-quick.rst doc/news.rst doc/upgrade.rst:
427 428 429 430 431 432 433
	set -e; \
	{ echo '.. This file is automatically updated at build time from $<.'; \
	  echo '.. Do not edit.'; \
	  echo; \
	  cat $<; \
	} > $@

434
docdot = \
435 436 437
	doc/arch-2.0.dot \
	doc/design-2.1-lock-acquire.dot \
	doc/design-2.1-lock-release.dot
438

439
docpng = $(patsubst %.dot,%.png,$(docdot))
440

441 442 443
# Things to build but not to install (add it to EXTRA_DIST if it should be
# distributed)
noinst_DATA = \
444
	autotools/testrunner \
445 446
	devel/upload \
	doc/html \
447
	$(BUILT_EXAMPLES) \
448 449
	doc/examples/bash_completion \
	$(manhtml)
450

451
gnt_scripts = \
452 453 454
	scripts/gnt-backup \
	scripts/gnt-cluster \
	scripts/gnt-debug \
455
	scripts/gnt-group \
456 457 458 459 460
	scripts/gnt-instance \
	scripts/gnt-job \
	scripts/gnt-node \
	scripts/gnt-os

461
PYTHON_BOOTSTRAP_SBIN = \
462
	daemons/ganeti-confd \
463
	daemons/ganeti-masterd \
464
	daemons/ganeti-noded \
465
	daemons/ganeti-watcher \
466
	daemons/ganeti-rapi \
467
	$(gnt_scripts)
468

469 470 471 472
PYTHON_BOOTSTRAP = \
	$(PYTHON_BOOTSTRAP_SBIN) \
	tools/ensure-dirs

473 474 475 476 477 478 479
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
480
	qa/qa_group.py \
481 482 483 484 485 486 487
	qa/qa_instance.py \
	qa/qa_node.py \
	qa/qa_os.py \
	qa/qa_rapi.py \
	qa/qa_tags.py \
	qa/qa_utils.py

488 489
bin_SCRIPTS =
if WANT_HTOOLS
490
bin_SCRIPTS += $(filter-out htools/hail,$(HS_PROGS))
491 492
install-exec-hook:
	@mkdir_p@ $(DESTDIR)$(iallocatorsdir)
493 494
# FIXME: this is a hardcoded logic, instead of auto-resolving
	$(LN_S) -f ../../../bin/htools \
495
		   $(DESTDIR)$(iallocatorsdir)/hail
496
	for role in $(HS_BIN_ROLES); do \
497
		$(LN_S) -f htools \
498 499
			   $(DESTDIR)$(bindir)/$$role ; \
	done
500 501
endif

502
$(HS_ALL_PROGS): %: %.hs $(HS_LIB_SRCS) $(HS_BUILT_SRCS) Makefile
503 504 505 506
	@if [ -z "$(HTOOLS)" ]; then \
	  echo "Error: htools compilation disabled at configure time" 1>&2 ;\
	  exit 1; \
	fi
507 508
	@BINARY=$(@:htools/%=%); \
	if [ "$BINARY" = "test" ] && [ -z "$(GHC_PKG_QUICKCHECK)" ]; then \
509 510
	  echo "Error: cannot run unittests without the QuickCheck library (see devnotes.rst)" 1>&2; \
	  exit 1; \
511 512
	fi
	BINARY=$(@:htools/%=%); $(GHC) --make \
Iustin Pop's avatar
Iustin Pop committed
513
	  $(HFLAGS) \
514
	  $(HTOOLS_NOCURL) $(HTOOLS_PARALLEL3) \
Iustin Pop's avatar
Iustin Pop committed
515 516
	  -osuf $$BINARY.o -hisuf $$BINARY.hi \
	  $(HEXTRA) $@
517

518 519 520 521 522
# 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

523 524
dist_sbin_SCRIPTS = \
	tools/ganeti-listrunner
525

526
nodist_sbin_SCRIPTS = \
527
	$(PYTHON_BOOTSTRAP_SBIN) \
528 529
	daemons/ganeti-cleaner

530
python_scripts = \
531 532 533
	tools/burnin \
	tools/cfgshell \
	tools/cfgupgrade \
534
	tools/cfgupgrade12 \
535
	tools/cluster-merge \
Iustin Pop's avatar
Iustin Pop committed
536
	tools/confd-client \
Iustin Pop's avatar
Iustin Pop committed
537
	tools/lvmstrap \
538
	tools/move-instance \
539
	tools/ovfconverter \
540
	tools/setup-ssh \
Iustin Pop's avatar
Iustin Pop committed
541
	tools/sanitize-config
542

543
dist_tools_SCRIPTS = \
544
	$(python_scripts) \
545
	tools/kvm-console-wrapper \
546 547
	tools/xm-console-wrapper \
	tools/master-ip-setup
548

549
pkglib_python_scripts = \
550 551
	daemons/import-export \
	tools/check-cert-expired
552

553 554 555
nodist_pkglib_python_scripts = \
	tools/ensure-dirs

556
pkglib_SCRIPTS = \
557
	daemons/daemon-util \
558
	tools/kvm-ifup \
559
	$(pkglib_python_scripts)
560

561 562 563
nodist_pkglib_SCRIPTS = \
	$(nodist_pkglib_python_scripts)

564 565
EXTRA_DIST = \
	NEWS \
566
	UPGRADE \
567
	epydoc.conf.in \
Michael Hanselmann's avatar
Michael Hanselmann committed
568
	pylintrc \
569
	autotools/build-bash-completion \
570
	autotools/build-rpc \
571
	autotools/check-header \
572
	autotools/check-python-code \
573
	autotools/check-imports \
574
	autotools/check-man \
575
	autotools/check-news \
576
	autotools/check-tar \
577
	autotools/check-version \
578
	autotools/convert-constants \
579
	autotools/docpp \
580
	autotools/gen-coverage \
581
	autotools/testrunner.in \
582
	$(RUN_IN_TEMPDIR) \
583
	daemons/daemon-util.in \
584
	daemons/ganeti-cleaner.in \
585
	$(pkglib_python_scripts) \
586
	devel/upload.in \
587
	tools/kvm-ifup.in \
588
	$(docdot) \
589
	$(docpng) \
590 591 592
	$(docrst) \
	doc/conf.py \
	doc/html \
593
	$(BUILT_EXAMPLES:%=%.in) \
594 595
	doc/examples/ganeti.default \
	doc/examples/ganeti.default-debug \
Guido Trotter's avatar
Guido Trotter committed
596
	doc/examples/hooks/ethers \
597 598 599
	doc/examples/gnt-debug/README \
	doc/examples/gnt-debug/delay0.json \
	doc/examples/gnt-debug/delay50.json \
600
	test/lockperf.py \
601 602 603 604
	test/testutils.py \
	test/mocks.py \
	$(dist_TESTS) \
	$(TEST_FILES) \
Iustin Pop's avatar
Iustin Pop committed
605 606
	man/footer.rst \
	$(manrst) \
607
	$(maninput) \
Michael Hanselmann's avatar
Michael Hanselmann committed
608
	qa/qa-sample.json \
609
	$(qa_scripts) \
610
	$(HS_LIB_SRCS) $(HS_BUILT_SRCS_IN) \
611 612
	$(HS_PROG_SRCS) \
	htools/lint-hints.hs
613 614 615

man_MANS = \
	man/ganeti.7 \
616
	man/ganeti-cleaner.8 \
Guido Trotter's avatar
Guido Trotter committed
617
	man/ganeti-confd.8 \
618
	man/ganeti-listrunner.8 \
619
	man/ganeti-masterd.8 \
620 621
	man/ganeti-noded.8 \
	man/ganeti-os-interface.7 \
622
	man/ganeti-rapi.8 \
623 624 625
	man/ganeti-watcher.8 \
	man/gnt-backup.8 \
	man/gnt-cluster.8 \
626
	man/gnt-debug.8 \
627
	man/gnt-group.8 \
628
	man/gnt-instance.8 \
629
	man/gnt-job.8 \
630
	man/gnt-node.8 \
631 632 633 634
	man/gnt-os.8 \
	man/hail.1 \
	man/hbal.1 \
	man/hscan.1 \
Iustin Pop's avatar
Iustin Pop committed
635 636
	man/hspace.1 \
	man/htools.1
637

638
manrst = $(patsubst %.1,%.rst,$(patsubst %.7,%.rst,$(patsubst %.8,%.rst,$(man_MANS))))
Iustin Pop's avatar
Iustin Pop committed
639
manhtml = $(patsubst %.rst,%.html,$(manrst))
640
mangen = $(patsubst %.rst,%.gen,$(manrst))
641
maninput = \
642
	$(patsubst %.1,%.1.in,$(patsubst %.7,%.7.in,$(patsubst %.8,%.8.in,$(man_MANS)))) \
Iustin Pop's avatar
Iustin Pop committed
643
	$(patsubst %.html,%.html.in,$(manhtml)) \
644
	man/footer.man man/footer.html $(mangen)
645 646

TEST_FILES = \
Manuel Franceschini's avatar
Manuel Franceschini committed
647 648 649 650 651
	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 \
652
	test/data/cert1.pem \
653 654 655 656 657 658 659
	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 \
660
	test/data/proc_drbd8.txt \
661
	test/data/proc_drbd80-emptyline.txt \
662
	test/data/proc_drbd83.txt \
663 664
	test/data/proc_drbd83_sync.txt \
	test/data/proc_drbd83_sync_krnl2.6.39.txt \
665
	test/data/sys_drbd_usermode_helper.txt \
Agata Murawska's avatar
Agata Murawska committed
666
	test/data/ovfdata/compr_disk.vmdk.gz \
Agata Murawska's avatar
Agata Murawska committed
667
	test/data/ovfdata/config.ini \
Agata Murawska's avatar
Agata Murawska committed
668
	test/data/ovfdata/corrupted_resources.ovf \
Agata Murawska's avatar
Agata Murawska committed
669
	test/data/ovfdata/empty.ini \
Agata Murawska's avatar
Agata Murawska committed
670 671 672 673 674
	test/data/ovfdata/empty.ovf \
	test/data/ovfdata/ganeti.mf \
	test/data/ovfdata/ganeti.ovf \
	test/data/ovfdata/gzip_disk.ovf \
	test/data/ovfdata/new_disk.vmdk \
Agata Murawska's avatar
Agata Murawska committed
675
	test/data/ovfdata/no_disk.ini \
Agata Murawska's avatar
Agata Murawska committed
676
	test/data/ovfdata/no_disk_in_ref.ovf \
Agata Murawska's avatar
Agata Murawska committed
677
	test/data/ovfdata/no_os.ini \
Agata Murawska's avatar
Agata Murawska committed
678 679 680
	test/data/ovfdata/no_ovf.ova \
	test/data/ovfdata/ova.ova \
	test/data/ovfdata/second_disk.vmdk \
Agata Murawska's avatar
Agata Murawska committed
681 682
	test/data/ovfdata/rawdisk.raw \
	test/data/ovfdata/unsafe_path.ini \
Agata Murawska's avatar
Agata Murawska committed
683 684
	test/data/ovfdata/virtualbox.ovf \
	test/data/ovfdata/wrong_extension.ovd \
Agata Murawska's avatar
Agata Murawska committed
685
	test/data/ovfdata/wrong_config.ini \
Agata Murawska's avatar
Agata Murawska committed
686 687 688 689
	test/data/ovfdata/wrong_manifest.mf \
	test/data/ovfdata/wrong_manifest.ovf \
	test/data/ovfdata/wrong_ova.ova \
	test/data/ovfdata/wrong_xml.ovf \
Agata Murawska's avatar
Agata Murawska committed
690
	test/data/ovfdata/other/rawdisk.raw \
691
	test/import-export_unittest-helper
692

693
python_tests = \
Guido Trotter's avatar
Guido Trotter committed
694
	test/ganeti.asyncnotifier_unittest.py \
695
	test/ganeti.backend_unittest.py \
696 697
	test/ganeti.bdev_unittest.py \
	test/ganeti.cli_unittest.py \
René Nussbaumer's avatar
René Nussbaumer committed
698
	test/ganeti.client.gnt_cluster_unittest.py \
699
	test/ganeti.client.gnt_instance_unittest.py \
Guido Trotter's avatar
Guido Trotter committed
700
	test/ganeti.daemon_unittest.py \
701
	test/ganeti.cmdlib_unittest.py \
702
	test/ganeti.compat_unittest.py \
703
	test/ganeti.confd.client_unittest.py \
704
	test/ganeti.config_unittest.py \
705
	test/ganeti.constants_unittest.py \