Makefile.am 106 KB
Newer Older
1
#  -*- Mode: makefile; indent-tabs-mode: t -*-
2
#
3 4
#  This file is part of systemd.
#
Kay Sievers's avatar
Kay Sievers committed
5 6
#  Copyright 2010-2012 Lennart Poettering
#  Copyright 2010-2012 Kay Sievers
7 8
#
#  systemd is free software; you can redistribute it and/or modify it
9 10
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
11 12 13 14 15
#  (at your option) any later version.
#
#  systemd is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
#  Lesser General Public License for more details.
17
#
18
#  You should have received a copy of the GNU Lesser General Public License
19 20
#  along with systemd; If not, see <http://www.gnu.org/licenses/>.

Kay Sievers's avatar
Kay Sievers committed
21 22
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
23
AUTOMAKE_OPTIONS = color-tests parallel-tests
24

Kay Sievers's avatar
Kay Sievers committed
25 26
SUBDIRS = . po

27 28 29
# remove targets if the command fails
.DELETE_ON_ERROR:

30
LIBUDEV_CURRENT=3
31
LIBUDEV_REVISION=1
32
LIBUDEV_AGE=2
Kay Sievers's avatar
Kay Sievers committed
33 34

LIBGUDEV_CURRENT=1
35
LIBGUDEV_REVISION=3
Kay Sievers's avatar
Kay Sievers committed
36
LIBGUDEV_AGE=1
37

Lennart Poettering's avatar
Lennart Poettering committed
38
LIBSYSTEMD_LOGIN_CURRENT=3
39
LIBSYSTEMD_LOGIN_REVISION=11
Lennart Poettering's avatar
Lennart Poettering committed
40
LIBSYSTEMD_LOGIN_AGE=3
41

42
LIBSYSTEMD_DAEMON_CURRENT=0
43
LIBSYSTEMD_DAEMON_REVISION=7
44 45
LIBSYSTEMD_DAEMON_AGE=0

46
LIBSYSTEMD_ID128_CURRENT=0
47
LIBSYSTEMD_ID128_REVISION=17
48 49
LIBSYSTEMD_ID128_AGE=0

Lennart Poettering's avatar
Lennart Poettering committed
50
LIBSYSTEMD_JOURNAL_CURRENT=7
51
LIBSYSTEMD_JOURNAL_REVISION=1
Lennart Poettering's avatar
Lennart Poettering committed
52
LIBSYSTEMD_JOURNAL_AGE=7
53

54
# Dirs of external packages
55 56 57 58
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
59 60
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
61
pkgconfiglibdir=$(libdir)/pkgconfig
62
polkitpolicydir=$(datadir)/polkit-1/actions
63
bashcompletiondir=$(sysconfdir)/bash_completion.d
64
rpmmacrosdir=$(sysconfdir)/rpm
65
sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
66
sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
67
varlogdir=$(localstatedir)/log
68 69
systemdstatedir=$(localstatedir)/lib/systemd
catalogstatedir=$(systemdstatedir)/catalog
70
hwdb_bin=/etc/udev/hwdb.bin
71

72
# Our own, non-special dirs
73
pkgsysconfdir=$(sysconfdir)/systemd
74
userunitdir=$(prefix)/lib/systemd/user
75
userpresetdir=$(prefix)/lib/systemd/user-preset
76
tmpfilesdir=$(prefix)/lib/tmpfiles.d
77
sysctldir=$(prefix)/lib/sysctl.d
78
usergeneratordir=$(prefix)/lib/systemd/user-generators
79
pkgincludedir=$(includedir)/systemd
80 81
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
82
systemsleepdir=$(rootlibexecdir)/system-sleep
83
systemunitdir=$(rootprefix)/lib/systemd/system
84
systempresetdir=$(rootprefix)/lib/systemd/system-preset
Kay Sievers's avatar
Kay Sievers committed
85
udevlibexecdir=$(rootprefix)/lib/udev
86 87 88 89
udevhomedir=$(udevlibexecdir)
udevrulesdir=$(udevlibexecdir)/rules.d
udevhwdbdir=$(udevlibexecdir)/hwdb.d
catalogdir=$(prefix)/lib/systemd/catalog
90 91

# And these are the special ones for /
92 93 94
rootprefix=@rootprefix@
rootbindir=$(rootprefix)/bin
rootlibexecdir=$(rootprefix)/lib/systemd
95

96
CLEANFILES = $(BUILT_SOURCES)
97
EXTRA_DIST =
Kay Sievers's avatar
Kay Sievers committed
98
BUILT_SOURCES =
99 100 101
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
102
UNINSTALL_DATA_HOOKS =
Kay Sievers's avatar
Kay Sievers committed
103
DISTCLEAN_LOCAL_HOOKS =
104
pkginclude_HEADERS =
105
noinst_LTLIBRARIES =
106
lib_LTLIBRARIES =
Kay Sievers's avatar
Kay Sievers committed
107
include_HEADERS =
108
pkgconfiglib_DATA =
109
polkitpolicy_in_files =
110
polkitpolicy_files =
111
dist_udevrules_DATA =
Kay Sievers's avatar
Kay Sievers committed
112 113
nodist_udevrules_DATA =
dist_man_MANS =
114
dist_pkgsysconf_DATA =
115
dist_pkgdata_DATA =
116 117 118
dist_dbuspolicy_DATA =
dbusinterface_DATA =
dist_dbussystemservice_DATA =
119
check_PROGRAMS =
120
check_DATA =
121 122 123
noinst_tests=
noinst_PROGRAMS = $(noinst_tests)
TESTS = $(noinst_tests)
124
udevlibexec_PROGRAMS =
125

126
AM_CPPFLAGS = \
127
	-include $(top_builddir)/config.h \
128
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
129
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
130
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
131
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
132
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
133 134 135
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
136
	-DCATALOG_PATH=\"$(catalogstatedir)\" \
137
	-DHWDB_BIN=\"$(hwdb_bin)\" \
138
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
139
	-DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
140
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
141
	-DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
142
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
143
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
144
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
145
	-DROOTPREFIX=\"$(rootprefix)\" \
146
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
147
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
148
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
149
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
150
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
151
	-DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
152
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
Kay Sievers's avatar
Kay Sievers committed
153
	-DX_SERVER=\"$(bindir)/X\" \
154
	-DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
155
	-DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
156
	-I $(top_srcdir)/src \
157
	-I $(top_srcdir)/src/shared \
158
	-I $(top_srcdir)/src/login \
159
	-I $(top_srcdir)/src/journal \
Kay Sievers's avatar
Kay Sievers committed
160
	-I $(top_srcdir)/src/systemd \
161
	-I $(top_builddir)/src/core \
162
	-I $(top_srcdir)/src/core \
163
	-I $(top_srcdir)/src/libudev \
164 165
	-I $(top_srcdir)/src/udev \
	$(OUR_CPPFLAGS)
166

Lennart Poettering's avatar
Lennart Poettering committed
167
AM_CFLAGS = $(OUR_CFLAGS)
168
AM_LDFLAGS = $(OUR_LDFLAGS)
169

170 171
# ------------------------------------------------------------------------------

172
define move-to-rootlibdir
173 174 175 176 177 178 179 180 181
	if test "$(libdir)" != "$(rootlibdir)"; then \
		$(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
		so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
		so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
		ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
		mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
	fi
endef

182
# ------------------------------------------------------------------------------
183
rootbin_PROGRAMS = \
184
	systemctl \
185
	systemd-notify \
186
	systemd-ask-password \
187
	systemd-tty-ask-password-agent \
188
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
189
	systemd-machine-id-setup
190

191
bin_PROGRAMS = \
192
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
193
	systemd-cgtop \
194
	systemd-stdio-bridge \
195
	systemd-nspawn \
196 197
	systemd-detect-virt \
	systemd-delta
198

199
rootlibexec_PROGRAMS = \
200
	systemd \
201
	systemd-cgroups-agent \
202
	systemd-initctl \
203
	systemd-update-utmp \
204
	systemd-shutdownd \
205
	systemd-shutdown \
206
	systemd-remount-fs \
207
	systemd-reply-password \
208
	systemd-fsck \
209
	systemd-timestamp \
210
	systemd-ac-power \
211 212
	systemd-sysctl \
	systemd-sleep
213

214 215 216 217 218
if HAVE_KMOD
rootlibexec_PROGRAMS += \
	systemd-modules-load
endif

219
systemgenerator_PROGRAMS = \
220
	systemd-getty-generator \
221 222
	systemd-fstab-generator \
	systemd-system-update-generator
223

224 225 226 227 228 229 230 231 232
dist_bin_SCRIPTS = \
	src/analyze/systemd-analyze

EXTRA_DIST += \
	src/analyze/systemd-analyze.in

CLEANFILES += \
	src/analyze/systemd-analyze

233
dist_bashcompletion_DATA = \
234
	shell-completion/systemd-bash-completion.sh
235

236 237
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
238
	tmpfiles.d/tmp.conf \
239 240
	tmpfiles.d/x11.conf

241 242
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
243
	tmpfiles.d/legacy.conf
244 245
endif

246
dist_systemunit_DATA = \
247 248
	units/graphical.target \
	units/multi-user.target \
249
	units/emergency.service \
250
	units/emergency.target \
251
	units/sysinit.target \
252
	units/basic.target \
253 254
	units/getty.target \
	units/halt.target \
255
	units/kexec.target \
256
	units/local-fs.target \
257
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
258
	units/remote-fs.target \
259
	units/remote-fs-pre.target \
260 261
	units/network.target \
	units/nss-lookup.target \
262
	units/nss-user-lookup.target \
263
	units/hibernate.target \
264
	units/hybrid-sleep.target \
265 266 267
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
268
	units/rpcbind.target \
269
	units/time-sync.target \
270
	units/shutdown.target \
271
	units/final.target \
272
	units/umount.target \
273
	units/sigpwr.target \
274
	units/sleep.target \
275
	units/sockets.target \
276
	units/suspend.target \
277
	units/swap.target \
278
	units/systemd-initctl.socket \
279
	units/systemd-shutdownd.socket \
280
	units/syslog.socket \
281 282
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
283
	units/sys-kernel-config.mount \
284
	units/sys-kernel-debug.mount \
285
	units/sys-fs-fuse-connections.mount \
Kay Sievers's avatar
Kay Sievers committed
286
	units/tmp.mount \
287
	units/printer.target \
288
	units/sound.target \
289
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
290
	units/smartcard.target \
291
	units/systemd-tmpfiles-clean.timer \
292
	units/quotaon.service \
293
	units/systemd-ask-password-wall.path \
294
	units/systemd-ask-password-console.path \
295 296
	units/systemd-udevd-control.socket \
	units/systemd-udevd-kernel.socket \
297
	units/system-update.target
298

299
nodist_systemunit_DATA = \
300
	units/getty@.service \
301
	units/serial-getty@.service \
302
	units/console-shell.service \
303
	units/console-getty.service \
304
	units/systemd-initctl.service \
305
	units/systemd-shutdownd.service \
306
	units/systemd-remount-fs.service \
307 308
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
309 310
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
311
	units/systemd-ask-password-wall.service \
312
	units/systemd-ask-password-console.service \
313
	units/systemd-sysctl.service \
314
	units/emergency.service \
315
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
316
	units/user@.service \
317
	units/systemd-hibernate.service \
318
	units/systemd-hybrid-sleep.service \
319 320 321 322 323 324 325
	units/systemd-suspend.service \
	units/systemd-halt.service \
	units/systemd-poweroff.service \
	units/systemd-reboot.service \
	units/systemd-kexec.service \
	units/systemd-fsck@.service \
	units/systemd-fsck-root.service \
326
	units/systemd-udevd.service \
327
	units/systemd-udev-trigger.service \
328
	units/systemd-udev-settle.service \
329
	units/debug-shell.service
330

331 332 333 334 335
if HAVE_KMOD
nodist_systemunit_DATA += \
	units/systemd-modules-load.service
endif

336 337 338
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
339

340
nodist_userunit_DATA = \
341
	units/user/systemd-exit.service
342

343
EXTRA_DIST += \
344
	units/getty@.service.m4 \
345
	units/serial-getty@.service.m4 \
346
	units/console-shell.service.m4.in \
347
	units/console-getty.service.m4.in \
348
	units/rescue.service.m4.in \
349
	units/systemd-initctl.service.in \
350
	units/systemd-shutdownd.service.in \
351
	units/systemd-remount-fs.service.in \
352 353
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
354 355
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
356
	units/systemd-ask-password-wall.service.in \
357
	units/systemd-ask-password-console.service.in \
358
	units/systemd-sysctl.service.in \
359
	units/emergency.service.in \
360 361 362 363 364
	units/systemd-halt.service.in \
	units/systemd-poweroff.service.in \
	units/systemd-reboot.service.in \
	units/systemd-kexec.service.in \
	units/user/systemd-exit.service.in \
365 366
	units/systemd-fsck@.service.in \
	units/systemd-fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
367
	units/user@.service.in \
368
	units/systemd-udevd.service \
369 370
	units/systemd-udev-trigger.service \
	units/systemd-udev-settle.service \
371
	units/debug-shell.service.in \
372
	units/systemd-hibernate.service.in \
373
	units/systemd-hybrid-sleep.service.in \
374
	units/systemd-suspend.service.in \
375
	units/quotaon.service.in \
376
	introspect.awk \
377
	man/custom-html.xsl
378

379 380 381
EXTRA_DIST += \
	units/systemd-modules-load.service.in

382 383 384 385
if HAVE_SYSV_COMPAT
nodist_systemunit_DATA += \
	units/rc-local.service \
	units/halt-local.service
386

387 388
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
389 390
endif

391 392 393 394
EXTRA_DIST += \
	units/rc-local.service.in \
	units/halt-local.service.in

395 396
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
397
	NEWS \
398
	LICENSE.LGPL2.1 \
399 400
	LICENSE.GPL2 \
	LICENSE.MIT \
401
	DISTRO_PORTING
402

403
@INTLTOOL_POLICY_RULE@
404

405 406 407 408 409
# ------------------------------------------------------------------------------
MANPAGES = \
	man/systemd.1 \
	man/systemctl.1 \
	man/systemd-cgls.1 \
410
	man/systemd-delta.1 \
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426
	man/systemd-cgtop.1 \
	man/systemd-nspawn.1 \
	man/systemd-tmpfiles.8 \
	man/systemd-notify.1 \
	man/systemd.unit.5 \
	man/systemd.service.5 \
	man/systemd.socket.5 \
	man/systemd.mount.5 \
	man/systemd.automount.5 \
	man/systemd.swap.5 \
	man/systemd.timer.5 \
	man/systemd.path.5 \
	man/systemd.target.5 \
	man/systemd.device.5 \
	man/systemd.snapshot.5 \
	man/systemd.exec.5 \
427
	man/systemd.kill.5 \
428 429
	man/systemd.special.7 \
	man/systemd.journal-fields.7 \
430
	man/systemd.time.7 \
431
	man/kernel-command-line.7 \
432
	man/daemon.7 \
Lennart Poettering's avatar
Lennart Poettering committed
433
	man/bootup.7 \
434 435 436 437 438 439 440 441
	man/runlevel.8 \
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
	man/pam_systemd.8 \
	man/systemd.conf.5 \
	man/tmpfiles.d.5 \
	man/hostname.5 \
442
	man/localtime.5 \
443 444 445 446 447
	man/machine-id.5 \
	man/locale.conf.5 \
	man/os-release.5 \
	man/machine-info.5 \
	man/sysctl.d.5 \
448
	man/systemd-sysctl.service.8 \
449 450 451
	man/systemd-ask-password.1 \
	man/systemd-cat.1 \
	man/systemd-machine-id-setup.1 \
452
	man/systemd-detect-virt.1 \
453
	man/journald.conf.5 \
454
	man/systemd-journald.service.8 \
455
	man/journalctl.1 \
456
	man/systemd-coredumpctl.1 \
457
	man/systemd-inhibit.1 \
458
	man/systemd-remount-fs.service.8 \
459
	man/systemd-update-utmp-runlevel.service.8 \
460
	man/systemd-initctl.service.8 \
461
	man/systemd-shutdownd.service.8 \
462
	man/systemd-suspend.service.8 \
463
	man/systemd-halt.service.8 \
464
	man/systemd-fsck@.service.8 \
465
	man/systemd-ask-password-console.service.8 \
466
	man/systemd-analyze.1 \
467
	man/systemd-tty-ask-password-agent.1 \
468
	man/systemd-getty-generator.8 \
469
	man/systemd-system-update-generator.8 \
470
	man/systemd-fstab-generator.8 \
471
	man/systemd.preset.5 \
472
	man/sd-id128.3 \
473
	man/sd_id128_to_string.3 \
474
	man/sd_id128_randomize.3 \
475
	man/sd_id128_get_machine.3 \
476
	man/sd-journal.3 \
477
	man/sd_journal_print.3 \
478
	man/sd_journal_stream_fd.3 \
479
	man/sd_journal_open.3 \
480
	man/sd_journal_next.3 \
481
	man/sd_journal_get_data.3 \
482
	man/sd_journal_get_realtime_usec.3 \
483
	man/sd_journal_get_cutoff_realtime_usec.3 \
484
	man/sd_journal_get_cursor.3 \
485
	man/sd_journal_get_fd.3 \
486
	man/sd_journal_get_usage.3 \
487
	man/sd_journal_add_match.3 \
488
	man/sd_journal_seek_head.3 \
489 490
	man/sd_journal_query_unique.3 \
	man/sd_journal_get_catalog.3
491 492 493 494

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
495
	man/init.1 \
496
	man/systemd-sysctl.8 \
497
	man/systemd-journald.socket.8 \
498
	man/systemd-journald.8 \
499 500
	man/systemd-remount-fs.8 \
	man/systemd-update-utmp-shutdown.service.8 \
501
	man/systemd-update-utmp.8 \
502
	man/systemd-initctl.socket.8 \
503
	man/systemd-initctl.8 \
504
	man/systemd-shutdownd.socket.8 \
505 506
	man/systemd-shutdownd.8 \
	man/systemd-hibernate.service.8 \
507
	man/systemd-hybrid-sleep.service.8 \
508 509 510 511
	man/systemd-sleep.8 \
	man/systemd-shutdown.8 \
	man/systemd-poweroff.service.8 \
	man/systemd-reboot.service.8 \
512
	man/systemd-kexec.service.8 \
513
	man/systemd-fsck.8 \
514 515 516
	man/systemd-fsck-root.service.8 \
	man/systemd-ask-password-console.path.8 \
	man/systemd-ask-password-wall.service.8 \
517 518 519
	man/systemd-ask-password-wall.path.8 \
	man/systemd-tmpfiles-setup.service.8 \
	man/systemd-tmpfiles-clean.service.8 \
520
	man/systemd-tmpfiles-clean.timer.8 \
521 522
	man/sd_id128_t.3 \
	man/SD_ID128_MAKE.3 \
523
	man/SD_ID128_CONST_STR.3 \
524 525 526
	man/SD_ID128_FORMAT_STR.3 \
	man/SD_ID128_FORMAT_VAL.3 \
	man/sd_id128_equal.3 \
527
	man/sd_id128_from_string.3 \
528 529 530
	man/sd_id128_get_boot.3 \
	man/sd_journal_printv.3 \
	man/sd_journal_send.3 \
531
	man/sd_journal_sendv.3 \
532
	man/sd_journal_perror.3 \
533
	man/SD_JOURNAL_SUPPRESS_LOCATION.3 \
534
	man/sd_journal_open_directory.3 \
535
	man/sd_journal_close.3 \
536 537 538 539
	man/sd_journal.3 \
	man/SD_JOURNAL_RUNTIME_ONLY.3 \
	man/SD_JOURNAL_SYSTEM_ONLY.3 \
	man/SD_JOURNAL_LOCAL_ONLY.3 \
540 541
	man/sd_journal_previous.3 \
	man/sd_journal_next_skip.3 \
542 543 544 545 546
	man/sd_journal_previous_skip.3 \
	man/SD_JOURNAL_FOREACH.3 \
	man/SD_JOURNAL_FOREACH_BACKWARDS.3 \
	man/sd_journal_enumerate_data.3 \
	man/sd_journal_restart_data.3 \
547
	man/SD_JOURNAL_FOREACH_DATA.3 \
548
	man/sd_journal_get_monotonic_usec.3 \
549
	man/sd_journal_get_cutoff_monotonic_usec.3 \
550
	man/sd_journal_reliable_fd.3 \
551
	man/sd_journal_process.3 \
552
	man/sd_journal_wait.3 \
553 554 555
	man/SD_JOURNAL_NOP.3 \
	man/SD_JOURNAL_APPEND.3 \
	man/SD_JOURNAL_INVALIDATE.3 \
556
	man/sd_journal_add_disjunction.3 \
557 558 559 560
	man/sd_journal_flush_matches.3 \
	man/sd_journal_seek_tail.3 \
	man/sd_journal_seek_monotonic_usec.3 \
	man/sd_journal_seek_realtime_usec.3 \
561
	man/sd_journal_seek_cursor.3 \
562 563 564
	man/sd_journal_test_cursor.3 \
	man/sd_journal_enumerate_unique.3 \
	man/sd_journal_restart_unique.3 \
565 566
	man/SD_JOURNAL_FOREACH_UNIQUE.3 \
	man/sd_journal_get_catalog_for_message_id.3
567

568 569 570 571 572 573 574 575 576
if HAVE_KMOD
MANPAGES += \
	man/modules-load.d.5 \
	man/systemd-modules-load.service.8
MANPAGES_ALIAS += \
	man/systemd-modules-load.8
man/systemd-modules-load.8: man/systemd-modules-load.service.8
endif

577 578 579 580 581 582 583 584 585 586
if HAVE_MICROHTTPD
MANPAGES += \
	man/systemd-journal-gatewayd.service.8
MANPAGES_ALIAS += \
	man/systemd-journal-gatewayd.socket.8 \
	man/systemd-journal-gatewayd.8
man/systemd-journal-gatewayd.socket.8: man/systemd-journal-gatewayd.service.8
man/systemd-journal-gatewayd.8: man/systemd-journal-gatewayd.service.8
endif

587 588 589 590 591
if HAVE_MYHOSTNAME
MANPAGES += \
	man/nss-myhostname.8
endif

592 593 594
man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
595
man/systemd-sysctl.8: man/systemd-sysctl.service.8
596
man/systemd-journald.socket.8: man/systemd-journald.service.8
597
man/systemd-journald.8: man/systemd-journald.service.8
598
man/systemd-remount-fs.8: man/systemd-remount-fs.service.8
599 600
man/systemd-update-utmp-shutdown.service.8: man/systemd-update-utmp-runlevel.service.8
man/systemd-update-utmp.8: man/systemd-update-utmp-runlevel.service.8
601
man/systemd-initctl.socket.8: man/systemd-initctl.service.8
602
man/systemd-initctl.8: man/systemd-initctl.service.8
603
man/systemd-shutdownd.socket.8: man/systemd-shutdownd.service.8
604
man/systemd-shutdownd.8: man/systemd-shutdownd.service.8
605
man/systemd-hibernate.service.8: man/systemd-suspend.service.8
606
man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8
607
man/systemd-sleep.8: man/systemd-suspend.service.8
608 609 610 611
man/systemd-shutdown.8: man/systemd-halt.service.8
man/systemd-poweroff.service.8: man/systemd-halt.service.8
man/systemd-reboot.service.8: man/systemd-halt.service.8
man/systemd-kexec.service.8: man/systemd-halt.service.8
612
man/systemd-fsck.8: man/systemd-fsck@.service.8
613
man/systemd-fsck-root.service.8: man/systemd-fsck@.service.8
614 615 616
man/systemd-ask-password-console.path.8: man/systemd-ask-password-console.service.8
man/systemd-ask-password-wall.service.8: man/systemd-ask-password-console.service.8
man/systemd-ask-password-wall.path.8: man/systemd-ask-password-console.service.8
617 618 619
man/systemd-tmpfiles-setup.service.8: man/systemd-tmpfiles.8
man/systemd-tmpfiles-clean.service.8: man/systemd-tmpfiles.8
man/systemd-tmpfiles-clean.timer.8: man/systemd-tmpfiles.8
620 621
man/sd_id128_t.3: man/sd-id128.3
man/SD_ID128_MAKE.3: man/sd-id128.3
622
man/SD_ID128_CONST_STR.3: man/sd-id128.3
623 624 625
man/SD_ID128_FORMAT_STR.3: man/sd-id128.3
man/SD_ID128_FORMAT_VAL.3: man/sd-id128.3
man/sd_id128_equal.3: man/sd-id128.3
626
man/sd_id128_from_string.3: man/sd_id128_to_string.3
627
man/sd_id128_get_boot.3: man/sd_id128_get_machine.3
628 629 630
man/sd_journal_printv.3: man/sd_journal_print.3
man/sd_journal_send.3: man/sd_journal_print.3
man/sd_journal_sendv.3: man/sd_journal_print.3
631
man/sd_journal_perror.3: man/sd_journal_print.3
632
man/SD_JOURNAL_SUPPRESS_LOCATION.3: man/sd_journal_print.3
633 634
man/sd_journal_open_directory.3: man/sd_journal_open.3
man/sd_journal_close.3: man/sd_journal_open.3
635 636 637 638
man/sd_journal.3: man/sd_journal_open.3
man/SD_JOURNAL_RUNTIME_ONLY.3: man/sd_journal_open.3
man/SD_JOURNAL_SYSTEM_ONLY.3: man/sd_journal_open.3
man/SD_JOURNAL_LOCAL_ONLY.3: man/sd_journal_open.3
639 640 641
man/sd_journal_previous.3: man/sd_journal_next.3
man/sd_journal_next_skip.3: man/sd_journal_next.3
man/sd_journal_previous_skip.3: man/sd_journal_next.3
642 643 644 645 646
man/SD_JOURNAL_FOREACH.3: man/sd_journal_next.3
man/SD_JOURNAL_FOREACH_BACKWARDS.3: man/sd_journal_next.3
man/sd_journal_enumerate_data.3: man/sd_journal_get_data.3
man/sd_journal_restart_data.3: man/sd_journal_get_data.3
man/SD_JOURNAL_FOREACH_DATA.3: man/sd_journal_get_data.3
647
man/sd_journal_get_monotonic_usec.3: man/sd_journal_get_realtime_usec.3
648
man/sd_journal_get_cutoff_monotonic_usec.3: man/sd_journal_get_cutoff_realtime_usec.3
649
man/sd_journal_reliable_fd.3: man/sd_journal_get_fd.3
650 651
man/sd_journal_process.3: man/sd_journal_get_fd.3
man/sd_journal_wait.3: man/sd_journal_get_fd.3
652 653 654
man/SD_JOURNAL_NOP.3: man/sd_journal_get_fd.3
man/SD_JOURNAL_APPEND.3: man/sd_journal_get_fd.3
man/SD_JOURNAL_INVALIDATE.3: man/sd_journal_get_fd.3
655 656
man/sd_journal_add_disjunction.3: man/sd_journal_add_match.3
man/sd_journal_flush_matches.3: man/sd_journal_add_match.3
657 658 659 660
man/sd_journal_seek_tail.3: man/sd_journal_seek_head.3
man/sd_journal_seek_monotonic_usec.3: man/sd_journal_seek_head.3
man/sd_journal_seek_realtime_usec.3: man/sd_journal_seek_head.3
man/sd_journal_seek_cursor.3: man/sd_journal_seek_head.3
661
man/sd_journal_test_cursor.3: man/sd_journal_get_cursor.3
662 663 664
man/sd_journal_enumerate_unique.3: man/sd_journal_query_unique.3
man/sd_journal_restart_unique.3: man/sd_journal_query_unique.3
man/SD_JOURNAL_FOREACH_UNIQUE.3: man/sd_journal_query_unique.3
665
man/sd_journal_get_catalog_for_message_id.3: man/sd_journal_get_catalog.3
666 667 668 669 670 671 672 673 674 675 676

XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

if ENABLE_MANPAGES
man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)

noinst_DATA = \
	${XML_FILES:.xml=.html}
677 678 679

CLEANFILES += \
	$(MANPAGES) \
680 681 682 683
	$(MANPAGES_ALIAS) \
	${XML_FILES:.xml=.html}

if HAVE_PYTHON
684
MANPAGES += \
685
	man/systemd.index.7 \
686
	man/systemd.directives.7
687 688

XML_DIRECTIVE_FILES = \
689
	man/systemd.xml \
690 691 692 693 694 695 696 697 698 699
	man/systemd.unit.xml \
	man/systemd.service.xml \
	man/systemd.socket.xml \
	man/systemd.mount.xml \
	man/systemd.automount.xml \
	man/systemd.swap.xml \
	man/systemd.target.xml \
	man/systemd.path.xml \
	man/systemd.timer.xml \
	man/systemd.snapshot.xml \
700
	man/systemd.exec.xml \
701 702
	man/systemd.kill.xml \
	man/systemd.device.xml \
703
	man/systemd.conf.xml \
704
	man/systemd.journal-fields.xml \
705 706
	man/systemd.time.xml \
	man/bootchart.conf.xml
707

708 709 710 711
man/systemd.index.xml: make-man-index.py $(filter-out man/systemd.index.xml,$(XML_FILES))
	$(AM_V_at)$(MKDIR_P) $(dir $@)
	$(AM_V_GEN)$(PYTHON) $^ > $@

712 713 714 715 716
man/systemd.directives.xml: make-directive-index.py $(XML_DIRECTIVE_FILES)
	$(AM_V_at)$(MKDIR_P) $(dir $@)
	$(AM_V_GEN)$(PYTHON) $^ > $@

EXTRA_DIST += \
717
	man/systemd.index.xml \
718 719
	man/systemd.directives.xml

720 721
endif

722 723 724 725 726 727
endif

EXTRA_DIST += \
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
728
	$(MANPAGES_ALIAS) \