Makefile.am 102 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
#  Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 9
#
#  systemd is free software; you can redistribute it and/or modify it
10 11
#  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
12 13 14 15 16
#  (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
17
#  Lesser General Public License for more details.
18
#
19
#  You should have received a copy of the GNU Lesser General Public License
20 21
#  along with systemd; If not, see <http://www.gnu.org/licenses/>.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

171 172
# ------------------------------------------------------------------------------

173
define move-to-rootlibdir
174 175 176 177 178 179 180 181 182
	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

183 184 185 186 187 188 189 190 191 192 193 194 195 196
INSTALL_DIRS =

RUNLEVEL1_TARGET_WANTS =
RUNLEVEL2_TARGET_WANTS =
RUNLEVEL3_TARGET_WANTS =
RUNLEVEL4_TARGET_WANTS =
RUNLEVEL5_TARGET_WANTS =
SHUTDOWN_TARGET_WANTS =
LOCAL_FS_TARGET_WANTS =
MULTI_USER_TARGET_WANTS =
SYSINIT_TARGET_WANTS =
BASIC_TARGET_WANTS =
SOCKETS_TARGET_WANTS =

197 198 199 200 201
SYSTEM_UNIT_ALIASES =
USER_UNIT_ALIASES =

GENERAL_ALIASES =

202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
install-target-wants-hook:
	what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
	what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
	what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
	what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
	what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
	what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
	what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
	what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
	what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
	what="$(BASIC_TARGET_WANTS)" && wants=basic.target && $(add-wants)
	what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)

define add-wants
	dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
	$(MKDIR_P) -m 0755 $$dir && \
	( cd $$dir && \
	  rm -f $$what && \
	  for i in $$what; do ln -s ../$$i . || exit $$? ; done )
endef

install-directories-hook:
	$(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))

226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
install-aliases-hook:
	set -- $(SYSTEM_UNIT_ALIASES) && \
		dir=$(systemunitdir) && $(install-aliases)
	set -- $(USER_UNIT_ALIASES) && \
		dir=$(userunitdir) && $(install-aliases)
	set -- $(GENERAL_ALIASES) && \
		dir= && $(install-aliases)

define install-aliases
	$(MKDIR_P) /$(DESTDIR)$$dir && \
	while [ -n "$$1" ]; do \
		rm -f $(DESTDIR)$$dir/$$2 && \
		ln -s $$1 $(DESTDIR)$$dir/$$2 && \
		shift 2 || exit $$?; \
	done
endef

243 244
INSTALL_EXEC_HOOKS += \
	install-target-wants-hook \
245 246
	install-directories-hook \
	install-aliases-hook
247

248
# ------------------------------------------------------------------------------
249
rootbin_PROGRAMS = \
250
	systemctl \
251
	systemd-notify \
252
	systemd-ask-password \
253
	systemd-tty-ask-password-agent \
254
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
255
	systemd-machine-id-setup
256

257
bin_PROGRAMS = \
258
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
259
	systemd-cgtop \
260
	systemd-stdio-bridge \
261
	systemd-nspawn \
262 263
	systemd-detect-virt \
	systemd-delta
264

265
rootlibexec_PROGRAMS = \
266
	systemd \
267
	systemd-cgroups-agent \
268
	systemd-initctl \
269
	systemd-update-utmp \
270
	systemd-shutdownd \
271
	systemd-shutdown \
272
	systemd-remount-fs \
273
	systemd-reply-password \
274
	systemd-fsck \
275
	systemd-timestamp \
276
	systemd-ac-power \
277 278
	systemd-sysctl \
	systemd-sleep
279

280 281 282 283 284
if HAVE_KMOD
rootlibexec_PROGRAMS += \
	systemd-modules-load
endif

285
systemgenerator_PROGRAMS = \
286
	systemd-getty-generator \
287
	systemd-fstab-generator \
288 289
	systemd-system-update-generator \
	systemd-efi-boot-generator
290

291 292 293 294 295 296 297 298 299
dist_bin_SCRIPTS = \
	src/analyze/systemd-analyze

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

CLEANFILES += \
	src/analyze/systemd-analyze

300
dist_bashcompletion_DATA = \
301
	shell-completion/systemd-bash-completion.sh
302

303 304
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
305
	tmpfiles.d/tmp.conf \
306 307
	tmpfiles.d/x11.conf

308 309
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
310
	tmpfiles.d/legacy.conf
311 312
endif

313
dist_systemunit_DATA = \
314 315
	units/graphical.target \
	units/multi-user.target \
316
	units/emergency.service \
317
	units/emergency.target \
318
	units/sysinit.target \
319
	units/basic.target \
320 321
	units/getty.target \
	units/halt.target \
322
	units/kexec.target \
323
	units/local-fs.target \
324
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
325
	units/remote-fs.target \
326
	units/remote-fs-pre.target \
327 328
	units/network.target \
	units/nss-lookup.target \
329
	units/nss-user-lookup.target \
330
	units/hibernate.target \
331
	units/hybrid-sleep.target \
332 333 334
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
335
	units/rpcbind.target \
336
	units/time-sync.target \
337
	units/shutdown.target \
338
	units/final.target \
339
	units/umount.target \
340
	units/sigpwr.target \
341
	units/sleep.target \
342
	units/sockets.target \
343
	units/suspend.target \
344
	units/swap.target \
345
	units/systemd-initctl.socket \
346
	units/systemd-shutdownd.socket \
347
	units/syslog.socket \
348 349
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
350
	units/sys-kernel-config.mount \
351
	units/sys-kernel-debug.mount \
352
	units/sys-fs-fuse-connections.mount \
Kay Sievers's avatar
Kay Sievers committed
353
	units/tmp.mount \
354
	units/printer.target \
355
	units/sound.target \
356
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
357
	units/smartcard.target \
358
	units/systemd-tmpfiles-clean.timer \
359
	units/quotaon.service \
360
	units/systemd-ask-password-wall.path \
361
	units/systemd-ask-password-console.path \
362 363
	units/systemd-udevd-control.socket \
	units/systemd-udevd-kernel.socket \
364
	units/system-update.target
365

366
nodist_systemunit_DATA = \
367
	units/getty@.service \
368
	units/serial-getty@.service \
369
	units/console-shell.service \
370
	units/console-getty.service \
371
	units/systemd-initctl.service \
372
	units/systemd-shutdownd.service \
373
	units/systemd-remount-fs.service \
374 375
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
376 377
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
378
	units/systemd-ask-password-wall.service \
379
	units/systemd-ask-password-console.service \
380
	units/systemd-sysctl.service \
381
	units/emergency.service \
382
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
383
	units/user@.service \
384
	units/systemd-hibernate.service \
385
	units/systemd-hybrid-sleep.service \
386 387 388 389 390 391 392
	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 \
393
	units/systemd-udevd.service \
394
	units/systemd-udev-trigger.service \
395
	units/systemd-udev-settle.service \
396
	units/debug-shell.service
397

398 399 400 401 402
if HAVE_KMOD
nodist_systemunit_DATA += \
	units/systemd-modules-load.service
endif

403 404 405
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
406

407
nodist_userunit_DATA = \
408
	units/user/systemd-exit.service
409

410
EXTRA_DIST += \
411
	units/getty@.service.m4 \
412
	units/serial-getty@.service.m4 \
413
	units/console-shell.service.m4.in \
414
	units/console-getty.service.m4.in \
415
	units/rescue.service.m4.in \
416
	units/systemd-initctl.service.in \
417
	units/systemd-shutdownd.service.in \
418
	units/systemd-remount-fs.service.in \
419 420
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
421 422
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
423
	units/systemd-ask-password-wall.service.in \
424
	units/systemd-ask-password-console.service.in \
425
	units/systemd-sysctl.service.in \
426
	units/emergency.service.in \
427 428 429 430 431
	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 \
432 433
	units/systemd-fsck@.service.in \
	units/systemd-fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
434
	units/user@.service.in \
435
	units/systemd-udevd.service \
436 437
	units/systemd-udev-trigger.service \
	units/systemd-udev-settle.service \
438
	units/debug-shell.service.in \
439
	units/systemd-hibernate.service.in \
440
	units/systemd-hybrid-sleep.service.in \
441
	units/systemd-suspend.service.in \
442
	units/quotaon.service.in \
443
	introspect.awk \
444
	man/custom-html.xsl
445

446 447 448
EXTRA_DIST += \
	units/systemd-modules-load.service.in

449 450 451 452
if HAVE_SYSV_COMPAT
nodist_systemunit_DATA += \
	units/rc-local.service \
	units/halt-local.service
453

454 455
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
456 457
endif

458 459 460 461
EXTRA_DIST += \
	units/rc-local.service.in \
	units/halt-local.service.in

462 463
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
464
	NEWS \
465
	LICENSE.LGPL2.1 \
466 467
	LICENSE.GPL2 \
	LICENSE.MIT \
468
	DISTRO_PORTING
469

470
@INTLTOOL_POLICY_RULE@
471

472 473 474 475 476
# ------------------------------------------------------------------------------
MANPAGES = \
	man/systemd.1 \
	man/systemctl.1 \
	man/systemd-cgls.1 \
477
	man/systemd-delta.1 \
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493
	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 \
494
	man/systemd.kill.5 \
495 496
	man/systemd.special.7 \
	man/systemd.journal-fields.7 \
497
	man/systemd.time.7 \
498
	man/kernel-command-line.7 \
499
	man/daemon.7 \
Lennart Poettering's avatar
Lennart Poettering committed
500
	man/bootup.7 \
501 502 503 504 505 506 507 508
	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 \
509
	man/localtime.5 \
510 511 512 513 514
	man/machine-id.5 \
	man/locale.conf.5 \
	man/os-release.5 \
	man/machine-info.5 \
	man/sysctl.d.5 \
515
	man/systemd-sysctl.service.8 \
516 517 518
	man/systemd-ask-password.1 \
	man/systemd-cat.1 \
	man/systemd-machine-id-setup.1 \
519
	man/systemd-detect-virt.1 \
520
	man/journald.conf.5 \
521
	man/systemd-journald.service.8 \
522
	man/journalctl.1 \
523
	man/systemd-coredumpctl.1 \
524
	man/systemd-inhibit.1 \
525
	man/systemd-remount-fs.service.8 \
526
	man/systemd-update-utmp-runlevel.service.8 \
527
	man/systemd-initctl.service.8 \
528
	man/systemd-shutdownd.service.8 \
529
	man/systemd-suspend.service.8 \
530
	man/systemd-halt.service.8 \
531
	man/systemd-fsck@.service.8 \
532
	man/systemd-ask-password-console.service.8 \
533
	man/systemd-analyze.1 \
534
	man/systemd-tty-ask-password-agent.1 \
535
	man/systemd-getty-generator.8 \
536
	man/systemd-system-update-generator.8 \
537
	man/systemd-fstab-generator.8 \
538
	man/systemd.preset.5 \
539
	man/sd-id128.3 \
540
	man/sd_id128_to_string.3 \
541
	man/sd_id128_randomize.3 \
542
	man/sd_id128_get_machine.3 \
543
	man/sd-journal.3 \
544
	man/sd_journal_print.3 \
545
	man/sd_journal_stream_fd.3 \
546
	man/sd_journal_open.3 \
547
	man/sd_journal_next.3 \
548
	man/sd_journal_get_data.3 \
549
	man/sd_journal_get_realtime_usec.3 \
550
	man/sd_journal_get_cutoff_realtime_usec.3 \
551
	man/sd_journal_get_cursor.3 \
552
	man/sd_journal_get_fd.3 \
553
	man/sd_journal_get_usage.3 \
554
	man/sd_journal_add_match.3 \
555
	man/sd_journal_seek_head.3 \
556 557
	man/sd_journal_query_unique.3 \
	man/sd_journal_get_catalog.3
558 559 560 561

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
562
	man/init.1 \
563
	man/systemd-sysctl.8 \
564
	man/systemd-journald.socket.8 \
565
	man/systemd-journald.8 \
566 567
	man/systemd-remount-fs.8 \
	man/systemd-update-utmp-shutdown.service.8 \
568
	man/systemd-update-utmp.8 \
569
	man/systemd-initctl.socket.8 \
570
	man/systemd-initctl.8 \
571
	man/systemd-shutdownd.socket.8 \
572 573
	man/systemd-shutdownd.8 \
	man/systemd-hibernate.service.8 \
574
	man/systemd-hybrid-sleep.service.8 \
575 576 577 578
	man/systemd-sleep.8 \
	man/systemd-shutdown.8 \
	man/systemd-poweroff.service.8 \
	man/systemd-reboot.service.8 \
579
	man/systemd-kexec.service.8 \
580
	man/systemd-fsck.8 \
581 582 583
	man/systemd-fsck-root.service.8 \
	man/systemd-ask-password-console.path.8 \
	man/systemd-ask-password-wall.service.8 \
584 585 586
	man/systemd-ask-password-wall.path.8 \
	man/systemd-tmpfiles-setup.service.8 \
	man/systemd-tmpfiles-clean.service.8 \
587
	man/systemd-tmpfiles-clean.timer.8 \
588 589
	man/sd_id128_t.3 \
	man/SD_ID128_MAKE.3 \
590
	man/SD_ID128_CONST_STR.3 \
591 592 593
	man/SD_ID128_FORMAT_STR.3 \
	man/SD_ID128_FORMAT_VAL.3 \
	man/sd_id128_equal.3 \
594
	man/sd_id128_from_string.3 \
595 596 597
	man/sd_id128_get_boot.3 \
	man/sd_journal_printv.3 \
	man/sd_journal_send.3 \
598
	man/sd_journal_sendv.3 \
599
	man/sd_journal_perror.3 \
600
	man/SD_JOURNAL_SUPPRESS_LOCATION.3 \
601
	man/sd_journal_open_directory.3 \
602
	man/sd_journal_close.3 \
603 604 605 606
	man/sd_journal.3 \
	man/SD_JOURNAL_RUNTIME_ONLY.3 \
	man/SD_JOURNAL_SYSTEM_ONLY.3 \
	man/SD_JOURNAL_LOCAL_ONLY.3 \
607 608
	man/sd_journal_previous.3 \
	man/sd_journal_next_skip.3 \
609 610 611 612 613
	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 \
614
	man/SD_JOURNAL_FOREACH_DATA.3 \
615
	man/sd_journal_get_monotonic_usec.3 \
616
	man/sd_journal_get_cutoff_monotonic_usec.3 \
617
	man/sd_journal_reliable_fd.3 \
618
	man/sd_journal_process.3 \
619
	man/sd_journal_wait.3 \
620 621 622
	man/SD_JOURNAL_NOP.3 \
	man/SD_JOURNAL_APPEND.3 \
	man/SD_JOURNAL_INVALIDATE.3 \
623
	man/sd_journal_add_disjunction.3 \
624 625 626 627
	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 \
628
	man/sd_journal_seek_cursor.3 \
629 630 631
	man/sd_journal_test_cursor.3 \
	man/sd_journal_enumerate_unique.3 \
	man/sd_journal_restart_unique.3 \
632 633
	man/SD_JOURNAL_FOREACH_UNIQUE.3 \
	man/sd_journal_get_catalog_for_message_id.3
634

635 636 637 638 639 640 641 642 643
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

644 645 646 647 648 649 650 651 652 653
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

654 655 656 657 658
if HAVE_MYHOSTNAME
MANPAGES += \
	man/nss-myhostname.8
endif

659 660 661
man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
662
man/systemd-sysctl.8: man/systemd-sysctl.service.8
663
man/systemd-journald.socket.8: man/systemd-journald.service.8
664
man/systemd-journald.8: man/systemd-journald.service.8
665
man/systemd-remount-fs.8: man/systemd-remount-fs.service.8
666 667
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
668
man/systemd-initctl.socket.8: man/systemd-initctl.service.8
669
man/systemd-initctl.8: man/systemd-initctl.service.8
670
man/systemd-shutdownd.socket.8: man/systemd-shutdownd.service.8
671
man/systemd-shutdownd.8: man/systemd-shutdownd.service.8
672
man/systemd-hibernate.service.8: man/systemd-suspend.service.8
673
man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8
674
man/systemd-sleep.8: man/systemd-suspend.service.8
675 676 677 678
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
679
man/systemd-fsck.8: man/systemd-fsck@.service.8
680
man/systemd-fsck-root.service.8: man/systemd-fsck@.service.8
681 682 683
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
684 685 686
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
687 688
man/sd_id128_t.3: man/sd-id128.3
man/SD_ID128_MAKE.3: man/sd-id128.3
689
man/SD_ID128_CONST_STR.3: man/sd-id128.3
690 691 692
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
693
man/sd_id128_from_string.3: man/sd_id128_to_string.3
694
man/sd_id128_get_boot.3: man/sd_id128_get_machine.3
695 696 697
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
698
man/sd_journal_perror.3: man/sd_journal_print.3
699
man/SD_JOURNAL_SUPPRESS_LOCATION.3: man/sd_journal_print.3
700 701
man/sd_journal_open_directory.3: man/sd_journal_open.3
man/sd_journal_close.3: man/sd_journal_open.3
702 703 704 705
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
706 707 708
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
709 710 711 712 713
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
714
man/sd_journal_get_monotonic_usec.3: man/sd_journal_get_realtime_usec.3
715
man/sd_journal_get_cutoff_monotonic_usec.3: man/sd_journal_get_cutoff_realtime_usec.3
716
man/sd_journal_reliable_fd.3: man/sd_journal_get_fd.3
717 718
man/sd_journal_process.3: man/sd_journal_get_fd.3
man/sd_journal_wait.3: man/sd_journal_get_fd.3
719 720 721
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
722 723
man/sd_journal_add_disjunction.3: man/sd_journal_add_match.3
man/sd_journal_flush_matches.3: man/sd_journal_add_match.3
724 725 726 727
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
728
man/sd_journal_test_cursor.3: man/sd_journal_get_cursor.3
729 730 731
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
732
man/sd_journal_get_catalog_for_message_id.3: man/sd_journal_get_catalog.3
733 734 735 736 737 738 739 740 741 742 743

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}
744 745 746

CLEANFILES += \
	$(MANPAGES) \
747 748 749 750
	$(MANPAGES_ALIAS) \
	${XML_FILES:.xml=.html}

if HAVE_PYTHON
751
MANPAGES