Makefile.am 84.3 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 12 13
# For distcheck we need the haskell tests to be enabled. Note:
# The "correct" way would be to define AM_DISTCHECK_CONFIGURE_FLAGS.
# However, we still have to support older versions of autotools,
# so we cannot use that yet, hence we fall back to..
DISTCHECK_CONFIGURE_FLAGS = --enable-haskell-tests

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

18 19 20 21 22
# Helper values for calling builtin functions
empty :=
space := $(empty) $(empty)
comma := ,

23 24 25
# Helper function to strip src/ and test/hs/ from a list
strip_hsroot = $(patsubst src/%,%,$(patsubst test/hs/%,%,$(1)))

26 27 28
# Use bash in order to be able to use pipefail
SHELL=/bin/bash

29 30
EXTRA_DIST=

31 32 33
# Enable colors in shelltest
SHELLTESTARGS = "-c"

34
ACLOCAL_AMFLAGS = -I autotools
35
BUILD_BASH_COMPLETION = $(top_srcdir)/autotools/build-bash-completion
36
RUN_IN_TEMPDIR = $(top_srcdir)/autotools/run-in-tempdir
37
CHECK_PYTHON_CODE = $(top_srcdir)/autotools/check-python-code
38
CHECK_HEADER = $(top_srcdir)/autotools/check-header
Iustin Pop's avatar
Iustin Pop committed
39
CHECK_MAN_DASHES = $(top_srcdir)/autotools/check-man-dashes
40
CHECK_MAN_REFERENCES = $(top_srcdir)/autotools/check-man-references
41
CHECK_MAN_WARNINGS = $(top_srcdir)/autotools/check-man-warnings
42
CHECK_VERSION = $(top_srcdir)/autotools/check-version
43
CHECK_NEWS = $(top_srcdir)/autotools/check-news
44
CHECK_IMPORTS = $(top_srcdir)/autotools/check-imports
45
DOCPP = $(top_srcdir)/autotools/docpp
46
REPLACE_VARS_SED = autotools/replace_vars.sed
47
PRINT_PY_CONSTANTS = $(top_srcdir)/autotools/print-py-constants
48
BUILD_RPC = $(top_srcdir)/autotools/build-rpc
49
SHELL_ENV_INIT = autotools/shell-env-init
50

51
# starting as of Ganeti 2.10, all files are stored in two directories,
52
# with only symbolic links added at other places.
53 54 55 56 57 58 59 60 61 62 63 64 65
#
# $(versiondir) contains most of Ganeti and all architecture-dependent files
# $(versionedsharedir) contains only architecture-independent files; all python
# executables need to go directly to $(versionedsharedir), as all ganeti python
# mdules are installed outside the usual python path, i.e., as private modules.
#
# $(defaultversiondir) and $(defaultversionedsharedir) are the corresponding
# directories for "the currently running" version of Ganeti. We never install
# there, but all symbolic links go there, rather than directory to $(versiondir)
# or $(versionedsharedir). Note that all links to $(default*dir) need to be stable;
# so, if some currently architecture-independent executable is replaced by an
# architecture-dependent one (and hence has to go under $(versiondir)), add a link
# under $(versionedsharedir) but do not change the external links.
66
if USE_VERSION_FULL
Klaus Aehlig's avatar
Klaus Aehlig committed
67
DIRVERSION=$(VERSION_FULL)
68 69 70 71
else
DIRVERSION=$(VERSION_MAJOR).$(VERSION_MINOR)
endif
versiondir = $(libdir)/ganeti/$(DIRVERSION)
72
defaultversiondir = $(libdir)/ganeti/default
73
versionedsharedir = $(prefix)/share/ganeti/$(DIRVERSION)
74 75
defaultversionedsharedir = $(prefix)/share/ganeti/default

76 77
# Note: these are automake-specific variables, and must be named after
# the directory + 'dir' suffix
78 79
pkglibdir = $(versiondir)$(libdir)/ganeti
myexeclibdir = $(pkglibdir)
Jose A. Lopes's avatar
Jose A. Lopes committed
80 81 82
bindir = $(versiondir)/$(BINDIR)
sbindir = $(versiondir)$(SBINDIR)
mandir = $(versionedsharedir)/root$(MANDIR)
83
pkgpythondir = $(versionedsharedir)/ganeti
84
pkgpython_rpc_stubdir = $(versionedsharedir)/ganeti/rpc/stub
85 86 87 88
gntpythondir = $(versionedsharedir)
pkgpython_bindir = $(versionedsharedir)
gnt_python_sbindir = $(versionedsharedir)
tools_pythondir = $(versionedsharedir)
89

90
clientdir = $(pkgpythondir)/client
91
cmdlibdir = $(pkgpythondir)/cmdlib
92
hypervisordir = $(pkgpythondir)/hypervisor
93
hypervisor_hv_kvmdir = $(pkgpythondir)/hypervisor/hv_kvm
94
jqueuedir = $(pkgpythondir)/jqueue
95
storagedir = $(pkgpythondir)/storage
96
httpdir = $(pkgpythondir)/http
Michael Hanselmann's avatar
Michael Hanselmann committed
97
masterddir = $(pkgpythondir)/masterd
Guido Trotter's avatar
Guido Trotter committed
98
confddir = $(pkgpythondir)/confd
99
rapidir = $(pkgpythondir)/rapi
100
rpcdir = $(pkgpythondir)/rpc
101
rpc_stubdir = $(pkgpythondir)/rpc/stub
102
serverdir = $(pkgpythondir)/server
103
watcherdir = $(pkgpythondir)/watcher
104
impexpddir = $(pkgpythondir)/impexpd
105
utilsdir = $(pkgpythondir)/utils
106
toolsdir = $(pkglibdir)/tools
107
iallocatorsdir = $(pkglibdir)/iallocators
108
pytoolsdir = $(pkgpythondir)/tools
109
docdir = $(versiondir)$(datadir)/doc/$(PACKAGE)
110
ifupdir = $(sysconfdir)/ganeti
111

112 113 114 115 116 117
if USE_BACKUP_DIR
backup_dir = $(BACKUP_DIR)
else
backup_dir = $(localstatedir)/lib
endif

118
SYMLINK_TARGET_DIRS = \
119
	$(sysconfdir)/ganeti \
120
	$(libdir)/ganeti/iallocators \
121 122
	$(libdir)/ganeti/tools \
	$(prefix)/share/ganeti \
Jose A. Lopes's avatar
Jose A. Lopes committed
123 124 125 126 127
	$(BINDIR) \
	$(SBINDIR) \
	$(MANDIR)/man1 \
	$(MANDIR)/man7 \
	$(MANDIR)/man8
128

129 130 131
# Delete output file if an error occurred while building it
.DELETE_ON_ERROR:

132
HS_DIRS = \
Iustin Pop's avatar
Iustin Pop committed
133 134 135
	src \
	src/Ganeti \
	src/Ganeti/Confd \
136
	src/Ganeti/Curl \
137
	src/Ganeti/Cpu \
Iustin Pop's avatar
Iustin Pop committed
138
	src/Ganeti/DataCollectors \
139
	src/Ganeti/Daemon \
140
	src/Ganeti/Hs2Py \
Iustin Pop's avatar
Iustin Pop committed
141 142 143
	src/Ganeti/HTools \
	src/Ganeti/HTools/Backend \
	src/Ganeti/HTools/Program \
144 145
	src/Ganeti/Hypervisor \
	src/Ganeti/Hypervisor/Xen \
146
	src/Ganeti/JQScheduler \
147
	src/Ganeti/JQueue \
148
	src/Ganeti/Locking \
149
	src/Ganeti/Logging \
150
	src/Ganeti/Monitoring \
151
	src/Ganeti/Metad \
152
	src/Ganeti/Objects \
Klaus Aehlig's avatar
Klaus Aehlig committed
153
	src/Ganeti/OpCodes \
Iustin Pop's avatar
Iustin Pop committed
154
	src/Ganeti/Query \
155 156 157
	src/Ganeti/Storage \
	src/Ganeti/Storage/Diskstats \
	src/Ganeti/Storage/Drbd \
Michele Tartara's avatar
Michele Tartara committed
158
	src/Ganeti/Storage/Lvm \
159
	src/Ganeti/THH \
160
	src/Ganeti/Utils \
Petr Pudlak's avatar
Petr Pudlak committed
161
	src/Ganeti/WConfd \
162 163 164
	test/hs \
	test/hs/Test \
	test/hs/Test/Ganeti \
165 166 167
	test/hs/Test/Ganeti/Storage \
	test/hs/Test/Ganeti/Storage/Diskstats \
	test/hs/Test/Ganeti/Storage/Drbd \
Michele Tartara's avatar
Michele Tartara committed
168
	test/hs/Test/Ganeti/Storage/Lvm \
169 170 171
	test/hs/Test/Ganeti/Confd \
	test/hs/Test/Ganeti/HTools \
	test/hs/Test/Ganeti/HTools/Backend \
172 173
	test/hs/Test/Ganeti/Hypervisor \
	test/hs/Test/Ganeti/Hypervisor/Xen \
174
	test/hs/Test/Ganeti/JQueue \
175
	test/hs/Test/Ganeti/Locking \
176
	test/hs/Test/Ganeti/Objects \
Petr Pudlak's avatar
Petr Pudlak committed
177
	test/hs/Test/Ganeti/Query \
178
	test/hs/Test/Ganeti/THH \
179 180
	test/hs/Test/Ganeti/Utils \
	test/hs/Test/Ganeti/WConfd
181

182 183 184
# Haskell directories without the roots (src, test/hs)
HS_DIRS_NOROOT = $(filter-out src,$(filter-out test/hs,$(HS_DIRS)))

185
DIRS = \
186
	$(HS_DIRS) \
187 188 189
	autotools \
	daemons \
	devel \
190
	devel/data \
191
	doc \
192
	doc/css \
193
	doc/examples \
194
	doc/examples/gnt-debug \
Iustin Pop's avatar
Iustin Pop committed
195
	doc/examples/hooks \
196
	doc/examples/systemd \
197
	doc/users \
198 199 200
	test/data/htools \
	test/data/htools/rapi \
	test/hs/shelltests \
Michele Tartara's avatar
Michele Tartara committed
201
	test/autotools \
202
	lib \
203
	lib/build \
Iustin Pop's avatar
Iustin Pop committed
204
	lib/client \
205
	lib/cmdlib \
206
	lib/confd \
207
	lib/jqueue \
208
	lib/http \
209
	lib/hypervisor \
210
	lib/hypervisor/hv_kvm \
211
	lib/impexpd \
Michael Hanselmann's avatar
Michael Hanselmann committed
212
	lib/masterd \
213
	lib/rapi \
214
	lib/rpc \
215
	lib/rpc/stub \
216
	lib/server \
217
	lib/storage \
218
	lib/tools \
219
	lib/utils \
220
	lib/watcher \
221 222
	man \
	qa \
Thomas Thrainer's avatar
Thomas Thrainer committed
223
	qa/patch \
224 225
	test \
	test/data \
226
	test/data/bdev-rbd \
Agata Murawska's avatar
Agata Murawska committed
227
	test/data/ovfdata \
Agata Murawska's avatar
Agata Murawska committed
228
	test/data/ovfdata/other \
229 230 231 232 233 234 235 236 237 238 239 240
	test/data/cgroup_root \
        test/data/cgroup_root/memory \
        test/data/cgroup_root/memory/lxc \
        test/data/cgroup_root/memory/lxc/instance1 \
        test/data/cgroup_root/cpuset \
        test/data/cgroup_root/cpuset/some_group \
        test/data/cgroup_root/cpuset/some_group/lxc \
        test/data/cgroup_root/cpuset/some_group/lxc/instance1 \
        test/data/cgroup_root/devices \
        test/data/cgroup_root/devices/some_group \
        test/data/cgroup_root/devices/some_group/lxc \
        test/data/cgroup_root/devices/some_group/lxc/instance1 \
Iustin Pop's avatar
Iustin Pop committed
241
	test/py \
242 243
	test/py/cmdlib \
	test/py/cmdlib/testsupport \
244 245
	tools

246
ALL_APIDOC_HS_DIRS = \
247
	$(APIDOC_HS_DIR) \
248
	$(patsubst %,$(APIDOC_HS_DIR)/%,$(call strip_hsroot,$(HS_DIRS_NOROOT)))
249 250 251 252 253

BUILDTIME_DIR_AUTOCREATE = \
	scripts \
	$(APIDOC_DIR) \
	$(ALL_APIDOC_HS_DIRS) \
Iustin Pop's avatar
Iustin Pop committed
254
	$(APIDOC_PY_DIR) \
255 256
	$(COVERAGE_DIR) \
	$(COVERAGE_HS_DIR) \
Iustin Pop's avatar
Iustin Pop committed
257
	$(COVERAGE_PY_DIR) \
258
	.hpc
259 260 261

BUILDTIME_DIRS = \
	$(BUILDTIME_DIR_AUTOCREATE) \
262 263
	doc/html \
	doc/man-html
264 265 266 267

DIRCHECK_EXCLUDE = \
	$(BUILDTIME_DIRS) \
	ganeti-[0-9]*.[0-9]*.[0-9]* \
Iustin Pop's avatar
Iustin Pop committed
268
	doc/html/_* \
269
	doc/man-html/_* \
270
	tools/shebang \
Iustin Pop's avatar
Iustin Pop committed
271
	autom4te.cache
272

273 274 275 276 277 278 279 280
# 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
281
MAINTAINERCLEANFILES = \
282
	$(maninput) \
283
	doc/install-quick.rst \
284
	doc/news.rst \
285
	doc/upgrade.rst \
286
	vcs-version
Iustin Pop's avatar
Iustin Pop committed
287

288
maintainer-clean-local:
289
	rm -rf $(BUILDTIME_DIRS)
290

291
CLEANFILES = \
292
	$(addsuffix /*.py[co],$(DIRS)) \
293 294
	$(addsuffix /*.hi,$(HS_DIRS)) \
	$(addsuffix /*.o,$(HS_DIRS)) \
295 296 297 298
	$(addsuffix /*.$(HTEST_SUFFIX)_hi,$(HS_DIRS)) \
	$(addsuffix /*.$(HTEST_SUFFIX)_o,$(HS_DIRS)) \
	Makefile.ghc \
	Makefile.ghc.bak \
299
	$(PYTHON_BOOTSTRAP) \
300
	$(gnt_python_sbin_SCRIPTS) \
301
	epydoc.conf \
Iustin Pop's avatar
Iustin Pop committed
302
	$(REPLACE_VARS_SED) \
303
	$(SHELL_ENV_INIT) \
304
	daemons/daemon-util \
305
	daemons/ganeti-cleaner \
306 307
	devel/squeeze-amd64.tar.gz \
	devel/squeeze-amd64.conf \
308 309
	$(mandocrst) \
	doc/manpages-enabled.rst \
310
	$(BUILT_EXAMPLES) \
311
	doc/examples/bash_completion \
312
	doc/examples/bash_completion-debug \
313
	$(userspecs) \
314
	lib/_generated_rpc.py \
Iustin Pop's avatar
Iustin Pop committed
315 316
	$(man_MANS) \
	$(manhtml) \
317
	tools/kvm-ifup \
318
	tools/kvm-ifup-os \
Jose A. Lopes's avatar
Jose A. Lopes committed
319
	tools/xen-ifup-os \
320
	tools/vif-ganeti \
321
	tools/vif-ganeti-metad \
322
	tools/net-common \
323
	tools/users-setup \
324
	tools/vcluster-setup \
325 326
	tools/prepare-node-join \
	tools/ssh-update \
327
	$(python_scripts_shebang) \
328
	stamp-directories \
329
	stamp-srclinks \
330
	$(nodist_pkgpython_PYTHON) \
331
	$(nodist_pkgpython_rpc_stub_PYTHON) \
332
	$(gnt_scripts) \
333
	$(HS_ALL_PROGS) $(HS_BUILT_SRCS) \
334
	$(HS_BUILT_TEST_HELPERS) \
Iustin Pop's avatar
Iustin Pop committed
335
	src/ganeti-confd \
Petr Pudlak's avatar
Petr Pudlak committed
336
	src/ganeti-wconfd \
Thomas Thrainer's avatar
Thomas Thrainer committed
337
	src/ganeti-luxid \
338
	src/ganeti-metad \
339
	src/ganeti-mond \
340
	.hpc/*.mix src/*.tix test/hs/*.tix *.tix \
341
	doc/hs-lint.html
342

Iustin Pop's avatar
Iustin Pop committed
343
GENERATED_FILES = \
Iustin Pop's avatar
Iustin Pop committed
344
	$(built_base_sources) \
345
	$(built_python_sources) \
346 347
	$(PYTHON_BOOTSTRAP) \
	$(gnt_python_sbin_SCRIPTS)
348

349 350 351
clean-local:
	rm -rf tools/shebang

Niklas Hambuechen's avatar
Niklas Hambuechen committed
352 353
HS_GENERATED_FILES = $(HS_PROGS) src/hluxid src/ganeti-luxid \
	src/hconfd src/ganeti-confd
354 355 356
if ENABLE_MOND
HS_GENERATED_FILES += src/ganeti-mond
endif
357 358 359
if ENABLE_METADATA
HS_GENERATED_FILES += src/ganeti-metad
endif
360

361
built_base_sources = \
362 363
	stamp-directories \
	stamp-srclinks
364

365
built_python_base_sources = \
366
	lib/_constants.py \
Jose A. Lopes's avatar
Jose A. Lopes committed
367
	lib/_vcsversion.py \
368 369
	lib/opcodes.py \
	lib/rpc/stub/wconfd.py
370

371
built_python_sources = \
372 373
	$(nodist_pkgpython_PYTHON) \
	$(nodist_pkgpython_rpc_stub_PYTHON)
374

Iustin Pop's avatar
Iustin Pop committed
375 376
# Generating the RPC wrappers depends on many things, so make sure
# it's built at the end of the built sources
377 378
lib/_generated_rpc.py: | $(built_base_sources) $(built_python_base_sources)

379 380 381 382 383
# 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 \
Apollon Oikonomopoulos's avatar
Apollon Oikonomopoulos committed
384
	doc/examples/ganeti.logrotate \
385
	doc/examples/ganeti-master-role.ocf \
386
	doc/examples/ganeti-node-role.ocf \
387
	doc/examples/gnt-config-backup \
388 389 390 391 392 393 394 395 396 397
	doc/examples/hooks/ipsec \
	doc/examples/systemd/ganeti-common.service \
	doc/examples/systemd/ganeti-confd.service \
	doc/examples/systemd/ganeti-kvmd.service \
	doc/examples/systemd/ganeti-luxid.service \
	doc/examples/systemd/ganeti-metad.service \
	doc/examples/systemd/ganeti-mond.service \
	doc/examples/systemd/ganeti-noded.service \
	doc/examples/systemd/ganeti-rapi.service \
	doc/examples/systemd/ganeti-wconfd.service
398

399
dist_ifup_SCRIPTS = \
Jose A. Lopes's avatar
Jose A. Lopes committed
400 401
	tools/kvm-ifup-os \
	tools/xen-ifup-os
402

403
nodist_pkgpython_PYTHON = \
404 405 406
	$(built_python_base_sources) \
	lib/_generated_rpc.py

407 408
nodist_pkgpython_rpc_stub_PYTHON = \
	lib/rpc/stub/wconfd.py
409

410 411 412 413 414 415
nodist_pkgpython_bin_SCRIPTS = \
	$(nodist_pkglib_python_scripts)

pkgpython_bin_SCRIPTS = \
	$(pkglib_python_scripts)

416
noinst_PYTHON = \
Michael Hanselmann's avatar
Michael Hanselmann committed
417
	lib/build/__init__.py \
Iustin Pop's avatar
Iustin Pop committed
418 419
	lib/build/shell_example_lexer.py \
	lib/build/sphinx_ext.py
420

421 422
pkgpython_PYTHON = \
	lib/__init__.py \
Guido Trotter's avatar
Guido Trotter committed
423
	lib/asyncnotifier.py \
424 425 426
	lib/backend.py \
	lib/bootstrap.py \
	lib/cli.py \
427
	lib/cli_opts.py \
428
	lib/compat.py \
429 430
	lib/config.py \
	lib/constants.py \
431
	lib/daemon.py \
432
	lib/errors.py \
433
	lib/hooksmaster.py \
434
	lib/ht.py \
435
	lib/jstore.py \
436 437 438
	lib/locking.py \
	lib/luxi.py \
	lib/mcpu.py \
439
	lib/netutils.py \
440
	lib/objects.py \
Jose A. Lopes's avatar
Jose A. Lopes committed
441
	lib/opcodes_base.py \
442
	lib/outils.py \
443
	lib/ovf.py \
444
	lib/pathutils.py \
445
	lib/qlang.py \
446
	lib/query.py \
447
	lib/rpc_defs.py \
448
	lib/runtime.py \
449 450 451
	lib/serializer.py \
	lib/ssconf.py \
	lib/ssh.py \
452
	lib/uidpool.py \
453
	lib/vcluster.py \
454
	lib/network.py \
Petr Pudlak's avatar
Petr Pudlak committed
455
	lib/wconfd.py \
456
	lib/workerpool.py
457

458
client_PYTHON = \
459
	lib/client/__init__.py \
460
	lib/client/base.py \
461
	lib/client/gnt_backup.py \
462
	lib/client/gnt_cluster.py \
463
	lib/client/gnt_debug.py \
464
	lib/client/gnt_group.py \
465
	lib/client/gnt_instance.py \
466
	lib/client/gnt_job.py \
467
	lib/client/gnt_node.py \
468
	lib/client/gnt_network.py \
469
	lib/client/gnt_os.py \
470 471
	lib/client/gnt_storage.py \
	lib/client/gnt_filter.py
472

473
cmdlib_PYTHON = \
474
	lib/cmdlib/__init__.py \
475
	lib/cmdlib/backup.py \
476
	lib/cmdlib/base.py \
477
	lib/cmdlib/cluster.py \
478
	lib/cmdlib/common.py \
479
	lib/cmdlib/group.py \
480
	lib/cmdlib/instance.py \
481
	lib/cmdlib/instance_migration.py \
482
	lib/cmdlib/instance_operation.py \
483
	lib/cmdlib/instance_query.py \
484
	lib/cmdlib/instance_storage.py \
485
	lib/cmdlib/instance_utils.py \
486 487 488
	lib/cmdlib/misc.py \
	lib/cmdlib/network.py \
	lib/cmdlib/node.py \
489
	lib/cmdlib/operating_system.py \
490
	lib/cmdlib/query.py \
491
	lib/cmdlib/tags.py \
492
	lib/cmdlib/test.py
493

494 495 496
hypervisor_PYTHON = \
	lib/hypervisor/__init__.py \
	lib/hypervisor/hv_base.py \
497
	lib/hypervisor/hv_chroot.py \
498
	lib/hypervisor/hv_fake.py \
Iustin Pop's avatar
Iustin Pop committed
499
	lib/hypervisor/hv_lxc.py \
500 501
	lib/hypervisor/hv_xen.py

502
hypervisor_hv_kvm_PYTHON = \
503
  lib/hypervisor/hv_kvm/__init__.py \
504 505
  lib/hypervisor/hv_kvm/monitor.py \
  lib/hypervisor/hv_kvm/netdev.py
506

507
jqueue_PYTHON = \
508 509
	lib/jqueue/__init__.py \
	lib/jqueue/exec.py
510

511 512 513 514
storage_PYTHON = \
	lib/storage/__init__.py \
	lib/storage/bdev.py \
	lib/storage/base.py \
515
	lib/storage/container.py \
516 517
	lib/storage/drbd.py \
	lib/storage/drbd_info.py \
518
	lib/storage/drbd_cmdgen.py \
519
	lib/storage/extstorage.py \
Santi Raffa's avatar
Santi Raffa committed
520 521
	lib/storage/filestorage.py \
	lib/storage/gluster.py
522

523 524
rapi_PYTHON = \
	lib/rapi/__init__.py \
525
	lib/rapi/baserlib.py \
David Knowles's avatar
David Knowles committed
526
	lib/rapi/client.py \
527
	lib/rapi/client_utils.py \
528
	lib/rapi/connector.py \
529 530
	lib/rapi/rlib2.py \
	lib/rapi/testutils.py
531

532
http_PYTHON = \
533
	lib/http/__init__.py \
534
	lib/http/auth.py \
535 536
	lib/http/client.py \
	lib/http/server.py
537

Guido Trotter's avatar
Guido Trotter committed
538
confd_PYTHON = \
Guido Trotter's avatar
Guido Trotter committed
539
	lib/confd/__init__.py \
540
	lib/confd/client.py
541

Michael Hanselmann's avatar
Michael Hanselmann committed
542
masterd_PYTHON = \
543
	lib/masterd/__init__.py \
René Nussbaumer's avatar
René Nussbaumer committed
544
	lib/masterd/iallocator.py \
545
	lib/masterd/instance.py
Michael Hanselmann's avatar
Michael Hanselmann committed
546

547 548 549
impexpd_PYTHON = \
	lib/impexpd/__init__.py

550
watcher_PYTHON = \
551
	lib/watcher/__init__.py \
552 553
	lib/watcher/nodemaint.py \
	lib/watcher/state.py
554

555
server_PYTHON = \
556
	lib/server/__init__.py \
557
	lib/server/masterd.py \
558 559
	lib/server/noded.py \
	lib/server/rapi.py
560

561 562
rpc_PYTHON = \
	lib/rpc/__init__.py \
563
	lib/rpc/client.py \
564 565 566
	lib/rpc/errors.py \
	lib/rpc/node.py \
	lib/rpc/transport.py
567

568 569 570
rpc_stub_PYTHON = \
	lib/rpc/stub/__init__.py

571 572
pytools_PYTHON = \
	lib/tools/__init__.py \
573
	lib/tools/burnin.py \
574
	lib/tools/ensure_dirs.py \
Michael Hanselmann's avatar
Michael Hanselmann committed
575
	lib/tools/node_cleanup.py \
576
	lib/tools/node_daemon_setup.py \
577 578 579
	lib/tools/prepare_node_join.py \
	lib/tools/common.py \
	lib/tools/ssh_update.py
580

581
utils_PYTHON = \
582
	lib/utils/__init__.py \
583
	lib/utils/algo.py \
584
	lib/utils/filelock.py \
585
	lib/utils/hash.py \
586
	lib/utils/io.py \
587
	lib/utils/livelock.py \
588
	lib/utils/log.py \
589
	lib/utils/lvm.py \
590
	lib/utils/mlock.py \
591
	lib/utils/nodesetup.py \
592
	lib/utils/process.py \
593
	lib/utils/retry.py \
594
	lib/utils/security.py \
Helga Velroyen's avatar
Helga Velroyen committed
595
	lib/utils/storage.py \
596
	lib/utils/text.py \
597
	lib/utils/version.py \
598 599
	lib/utils/wrapper.py \
	lib/utils/x509.py
600

601
docinput = \
602
	doc/admin.rst \
Jose A. Lopes's avatar
Jose A. Lopes committed
603
	doc/cluster-keys-replacement.rst \
Iustin Pop's avatar
Iustin Pop committed
604
	doc/cluster-merge.rst \
605 606
	doc/conf.py \
	doc/css/style.css \
607
	doc/design-2.0.rst \
608
	doc/design-2.1.rst \
609
	doc/design-2.2.rst \
Guido Trotter's avatar
Guido Trotter committed
610
	doc/design-2.3.rst \
611
	doc/design-2.4.rst \
612
	doc/design-2.5.rst \
613
	doc/design-2.6.rst \
614
	doc/design-2.7.rst \
615
	doc/design-2.8.rst \
Klaus Aehlig's avatar
Klaus Aehlig committed
616
	doc/design-2.9.rst \
617
	doc/design-2.10.rst \
618
	doc/design-2.11.rst \
619
	doc/design-2.12.rst \
Iustin Pop's avatar
Iustin Pop committed
620 621
	doc/design-autorepair.rst \
	doc/design-bulk-create.rst \
622
	doc/design-ceph-ganeti-support.rst \
623
	doc/design-configlock.rst \
Iustin Pop's avatar
Iustin Pop committed
624
	doc/design-chained-jobs.rst \
625
	doc/design-cmdlib-unittests.rst \
Tsachy Shacham's avatar
Tsachy Shacham committed
626
	doc/design-cpu-pinning.rst \
627
	doc/design-cpu-speed.rst \
628
	doc/design-daemons.rst \
629
	doc/design-device-uuid-name.rst \
630
	doc/design-disk-conversion.rst \
631
	doc/design-disks.rst \
Iustin Pop's avatar
Iustin Pop committed
632
	doc/design-draft.rst \
Jose A. Lopes's avatar
Jose A. Lopes committed
633
	doc/design-file-based-storage.rst \
634
	doc/design-glusterfs-ganeti-support.rst \
635 636 637
	doc/design-hotplug.rst \
	doc/design-hroller.rst \
	doc/design-hsqueeze.rst \
Iustin Pop's avatar
Iustin Pop committed
638
	doc/design-htools-2.3.rst \
639
	doc/design-http-server.rst \
640
	doc/design-hugepages-support.rst \
641
	doc/design-ifdown.rst \
642
	doc/design-impexp2.rst \
643
	doc/design-internal-shutdown.rst \
Jose A. Lopes's avatar
Jose A. Lopes committed
644
	doc/design-kvmd.rst \
645
	doc/design-location.rst \
646
	doc/design-linuxha.rst \
647 648
	doc/design-lu-generated-jobs.rst \
	doc/design-monitoring-agent.rst \
649
	doc/design-move-instance-improvements.rst \
650
	doc/design-multi-reloc.rst \
651
	doc/design-multi-version-tests.rst \
652
	doc/design-network.rst \
653
	doc/design-network2.rst \
654
	doc/design-node-add.rst \
655
	doc/design-node-security.rst \
Iustin Pop's avatar
Iustin Pop committed
656
	doc/design-oob.rst \
657
	doc/design-openvswitch.rst \
658
	doc/design-opportunistic-locking.rst \
659
	doc/design-optables.rst \
660
	doc/design-os.rst \
661
	doc/design-ovf-support.rst \
Iustin Pop's avatar
Iustin Pop committed
662
	doc/design-partitioned.rst \
663
	doc/design-performance-tests.rst \
Iustin Pop's avatar
Iustin Pop committed
664 665
	doc/design-query-splitting.rst \
	doc/design-query2.rst \
666
	doc/design-query-splitting.rst \
667
	doc/design-reason-trail.rst \
668
	doc/design-reservations.rst \
669
	doc/design-resource-model.rst \
670
	doc/design-restricted-commands.rst \
671
	doc/design-shared-storage.rst \
672
	doc/design-ssh-ports.rst \
673
	doc/design-storagetypes.rst \
674
	doc/design-systemd.rst \
675
	doc/design-upgrade.rst \
676
	doc/design-virtual-clusters.rst \
Iustin Pop's avatar
Iustin Pop committed
677
	doc/design-x509-ca.rst \
678
	doc/dev-codestyle.rst \
679
	doc/devnotes.rst \
680
	doc/glossary.rst \
681
	doc/hooks.rst \
682
	doc/iallocator.rst \
683
	doc/index.rst \
684
	doc/install-quick.rst \
685
	doc/install.rst \
686
	doc/locking.rst \
687
	doc/manpages-disabled.rst \
688
	doc/monitoring-query-format.rst \
689
	doc/move-instance.rst \
Iustin Pop's avatar
Iustin Pop committed
690
	doc/news.rst \
691
	doc/ovfconverter.rst \
692
	doc/rapi.rst \
693
	doc/security.rst \
694
	doc/upgrade.rst \
695
	doc/virtual-cluster.rst \
Iustin Pop's avatar
Iustin Pop committed
696
	doc/walkthrough.rst
Michael Hanselmann's avatar
Michael Hanselmann committed
697

698 699 700
# Generates file names such as "doc/man-gnt-instance.rst"
mandocrst = $(addprefix doc/man-,$(notdir $(manrst)))

701 702 703 704
# Haskell programs to be installed in $PREFIX/bin
HS_BIN_PROGS=src/htools

# Haskell programs to be installed in the MYEXECLIB dir
705
if ENABLE_MOND
706
HS_MYEXECLIB_PROGS=src/mon-collector
707 708 709
else
HS_MYEXECLIB_PROGS=
endif
710

711
# Haskell programs to be compiled by "make really-all"
712
HS_COMPILE_PROGS = \
Jose A. Lopes's avatar
Jose A. Lopes committed
713
	src/ganeti-kvmd \
Petr Pudlak's avatar
Petr Pudlak committed
714
	src/ganeti-wconfd \
Niklas Hambuechen's avatar
Niklas Hambuechen committed
715
	src/hconfd \
Thomas Thrainer's avatar
Thomas Thrainer committed
716
	src/hluxid \
Jose A. Lopes's avatar
Jose A. Lopes committed
717
	src/hs2py \
718
	src/rpc-test
719 720 721
if ENABLE_MOND
HS_COMPILE_PROGS += src/ganeti-mond
endif