Makefile.am 103 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 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
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 =

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))

INSTALL_EXEC_HOOKS += \
	install-target-wants-hook \
	install-directories-hook

224
# ------------------------------------------------------------------------------
225
rootbin_PROGRAMS = \
226
	systemctl \
227
	systemd-notify \
228
	systemd-ask-password \
229
	systemd-tty-ask-password-agent \
230
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
231
	systemd-machine-id-setup
232

233
bin_PROGRAMS = \
234
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
235
	systemd-cgtop \
236
	systemd-stdio-bridge \
237
	systemd-nspawn \
238 239
	systemd-detect-virt \
	systemd-delta
240

241
rootlibexec_PROGRAMS = \
242
	systemd \
243
	systemd-cgroups-agent \
244
	systemd-initctl \
245
	systemd-update-utmp \
246
	systemd-shutdownd \
247
	systemd-shutdown \
248
	systemd-remount-fs \
249
	systemd-reply-password \
250
	systemd-fsck \
251
	systemd-timestamp \
252
	systemd-ac-power \
253 254
	systemd-sysctl \
	systemd-sleep
255

256 257 258 259 260
if HAVE_KMOD
rootlibexec_PROGRAMS += \
	systemd-modules-load
endif

261
systemgenerator_PROGRAMS = \
262
	systemd-getty-generator \
263
	systemd-fstab-generator \
264 265
	systemd-system-update-generator \
	systemd-efi-boot-generator
266

267 268 269 270 271 272 273 274 275
dist_bin_SCRIPTS = \
	src/analyze/systemd-analyze

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

CLEANFILES += \
	src/analyze/systemd-analyze

276
dist_bashcompletion_DATA = \
277
	shell-completion/systemd-bash-completion.sh
278

279 280
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
281
	tmpfiles.d/tmp.conf \
282 283
	tmpfiles.d/x11.conf

284 285
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
286
	tmpfiles.d/legacy.conf
287 288
endif

289
dist_systemunit_DATA = \
290 291
	units/graphical.target \
	units/multi-user.target \
292
	units/emergency.service \
293
	units/emergency.target \
294
	units/sysinit.target \
295
	units/basic.target \
296 297
	units/getty.target \
	units/halt.target \
298
	units/kexec.target \
299
	units/local-fs.target \
300
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
301
	units/remote-fs.target \
302
	units/remote-fs-pre.target \
303 304
	units/network.target \
	units/nss-lookup.target \
305
	units/nss-user-lookup.target \
306
	units/hibernate.target \
307
	units/hybrid-sleep.target \
308 309 310
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
311
	units/rpcbind.target \
312
	units/time-sync.target \
313
	units/shutdown.target \
314
	units/final.target \
315
	units/umount.target \
316
	units/sigpwr.target \
317
	units/sleep.target \
318
	units/sockets.target \
319
	units/suspend.target \
320
	units/swap.target \
321
	units/systemd-initctl.socket \
322
	units/systemd-shutdownd.socket \
323
	units/syslog.socket \
324 325
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
326
	units/sys-kernel-config.mount \
327
	units/sys-kernel-debug.mount \
328
	units/sys-fs-fuse-connections.mount \
Kay Sievers's avatar
Kay Sievers committed
329
	units/tmp.mount \
330
	units/printer.target \
331
	units/sound.target \
332
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
333
	units/smartcard.target \
334
	units/systemd-tmpfiles-clean.timer \
335
	units/quotaon.service \
336
	units/systemd-ask-password-wall.path \
337
	units/systemd-ask-password-console.path \
338 339
	units/systemd-udevd-control.socket \
	units/systemd-udevd-kernel.socket \
340
	units/system-update.target
341

342
nodist_systemunit_DATA = \
343
	units/getty@.service \
344
	units/serial-getty@.service \
345
	units/console-shell.service \
346
	units/console-getty.service \
347
	units/systemd-initctl.service \
348
	units/systemd-shutdownd.service \
349
	units/systemd-remount-fs.service \
350 351
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
352 353
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
354
	units/systemd-ask-password-wall.service \
355
	units/systemd-ask-password-console.service \
356
	units/systemd-sysctl.service \
357
	units/emergency.service \
358
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
359
	units/user@.service \
360
	units/systemd-hibernate.service \
361
	units/systemd-hybrid-sleep.service \
362 363 364 365 366 367 368
	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 \
369
	units/systemd-udevd.service \
370
	units/systemd-udev-trigger.service \
371
	units/systemd-udev-settle.service \
372
	units/debug-shell.service
373

374 375 376 377 378
if HAVE_KMOD
nodist_systemunit_DATA += \
	units/systemd-modules-load.service
endif

379 380 381
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
382

383
nodist_userunit_DATA = \
384
	units/user/systemd-exit.service
385

386
EXTRA_DIST += \
387
	units/getty@.service.m4 \
388
	units/serial-getty@.service.m4 \
389
	units/console-shell.service.m4.in \
390
	units/console-getty.service.m4.in \
391
	units/rescue.service.m4.in \
392
	units/systemd-initctl.service.in \
393
	units/systemd-shutdownd.service.in \
394
	units/systemd-remount-fs.service.in \
395 396
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
397 398
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
399
	units/systemd-ask-password-wall.service.in \
400
	units/systemd-ask-password-console.service.in \
401
	units/systemd-sysctl.service.in \
402
	units/emergency.service.in \
403 404 405 406 407
	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 \
408 409
	units/systemd-fsck@.service.in \
	units/systemd-fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
410
	units/user@.service.in \
411
	units/systemd-udevd.service \
412 413
	units/systemd-udev-trigger.service \
	units/systemd-udev-settle.service \
414
	units/debug-shell.service.in \
415
	units/systemd-hibernate.service.in \
416
	units/systemd-hybrid-sleep.service.in \
417
	units/systemd-suspend.service.in \
418
	units/quotaon.service.in \
419
	introspect.awk \
420
	man/custom-html.xsl
421

422 423 424
EXTRA_DIST += \
	units/systemd-modules-load.service.in

425 426 427 428
if HAVE_SYSV_COMPAT
nodist_systemunit_DATA += \
	units/rc-local.service \
	units/halt-local.service
429

430 431
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
432 433
endif

434 435 436 437
EXTRA_DIST += \
	units/rc-local.service.in \
	units/halt-local.service.in

438 439
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
440
	NEWS \
441
	LICENSE.LGPL2.1 \
442 443
	LICENSE.GPL2 \
	LICENSE.MIT \
444
	DISTRO_PORTING
445

446
@INTLTOOL_POLICY_RULE@
447

448 449 450 451 452
# ------------------------------------------------------------------------------
MANPAGES = \
	man/systemd.1 \
	man/systemctl.1 \
	man/systemd-cgls.1 \
453
	man/systemd-delta.1 \
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469
	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 \
470
	man/systemd.kill.5 \
471 472
	man/systemd.special.7 \
	man/systemd.journal-fields.7 \
473
	man/systemd.time.7 \
474
	man/kernel-command-line.7 \
475
	man/daemon.7 \
Lennart Poettering's avatar
Lennart Poettering committed
476
	man/bootup.7 \
477 478 479 480 481 482 483 484
	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 \
485
	man/localtime.5 \
486 487 488 489 490
	man/machine-id.5 \
	man/locale.conf.5 \
	man/os-release.5 \
	man/machine-info.5 \
	man/sysctl.d.5 \
491
	man/systemd-sysctl.service.8 \
492 493 494
	man/systemd-ask-password.1 \
	man/systemd-cat.1 \
	man/systemd-machine-id-setup.1 \
495
	man/systemd-detect-virt.1 \
496
	man/journald.conf.5 \
497
	man/systemd-journald.service.8 \
498
	man/journalctl.1 \
499
	man/systemd-coredumpctl.1 \
500
	man/systemd-inhibit.1 \
501
	man/systemd-remount-fs.service.8 \
502
	man/systemd-update-utmp-runlevel.service.8 \
503
	man/systemd-initctl.service.8 \
504
	man/systemd-shutdownd.service.8 \
505
	man/systemd-suspend.service.8 \
506
	man/systemd-halt.service.8 \
507
	man/systemd-fsck@.service.8 \
508
	man/systemd-ask-password-console.service.8 \
509
	man/systemd-analyze.1 \
510
	man/systemd-tty-ask-password-agent.1 \
511
	man/systemd-getty-generator.8 \
512
	man/systemd-system-update-generator.8 \
513
	man/systemd-fstab-generator.8 \
514
	man/systemd.preset.5 \
515
	man/sd-id128.3 \
516
	man/sd_id128_to_string.3 \
517
	man/sd_id128_randomize.3 \
518
	man/sd_id128_get_machine.3 \
519
	man/sd-journal.3 \
520
	man/sd_journal_print.3 \
521
	man/sd_journal_stream_fd.3 \
522
	man/sd_journal_open.3 \
523
	man/sd_journal_next.3 \
524
	man/sd_journal_get_data.3 \
525
	man/sd_journal_get_realtime_usec.3 \
526
	man/sd_journal_get_cutoff_realtime_usec.3 \
527
	man/sd_journal_get_cursor.3 \
528
	man/sd_journal_get_fd.3 \
529
	man/sd_journal_get_usage.3 \
530
	man/sd_journal_add_match.3 \
531
	man/sd_journal_seek_head.3 \
532 533
	man/sd_journal_query_unique.3 \
	man/sd_journal_get_catalog.3
534 535 536 537

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
538
	man/init.1 \
539
	man/systemd-sysctl.8 \
540
	man/systemd-journald.socket.8 \
541
	man/systemd-journald.8 \
542 543
	man/systemd-remount-fs.8 \
	man/systemd-update-utmp-shutdown.service.8 \
544
	man/systemd-update-utmp.8 \
545
	man/systemd-initctl.socket.8 \
546
	man/systemd-initctl.8 \
547
	man/systemd-shutdownd.socket.8 \
548 549
	man/systemd-shutdownd.8 \
	man/systemd-hibernate.service.8 \
550
	man/systemd-hybrid-sleep.service.8 \
551 552 553 554
	man/systemd-sleep.8 \
	man/systemd-shutdown.8 \
	man/systemd-poweroff.service.8 \
	man/systemd-reboot.service.8 \
555
	man/systemd-kexec.service.8 \
556
	man/systemd-fsck.8 \
557 558 559
	man/systemd-fsck-root.service.8 \
	man/systemd-ask-password-console.path.8 \
	man/systemd-ask-password-wall.service.8 \
560 561 562
	man/systemd-ask-password-wall.path.8 \
	man/systemd-tmpfiles-setup.service.8 \
	man/systemd-tmpfiles-clean.service.8 \
563
	man/systemd-tmpfiles-clean.timer.8 \
564 565
	man/sd_id128_t.3 \
	man/SD_ID128_MAKE.3 \
566
	man/SD_ID128_CONST_STR.3 \
567 568 569
	man/SD_ID128_FORMAT_STR.3 \
	man/SD_ID128_FORMAT_VAL.3 \
	man/sd_id128_equal.3 \
570
	man/sd_id128_from_string.3 \
571 572 573
	man/sd_id128_get_boot.3 \
	man/sd_journal_printv.3 \
	man/sd_journal_send.3 \
574
	man/sd_journal_sendv.3 \
575
	man/sd_journal_perror.3 \
576
	man/SD_JOURNAL_SUPPRESS_LOCATION.3 \
577
	man/sd_journal_open_directory.3 \
578
	man/sd_journal_close.3 \
579 580 581 582
	man/sd_journal.3 \
	man/SD_JOURNAL_RUNTIME_ONLY.3 \
	man/SD_JOURNAL_SYSTEM_ONLY.3 \
	man/SD_JOURNAL_LOCAL_ONLY.3 \
583 584
	man/sd_journal_previous.3 \
	man/sd_journal_next_skip.3 \
585 586 587 588 589
	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 \
590
	man/SD_JOURNAL_FOREACH_DATA.3 \
591
	man/sd_journal_get_monotonic_usec.3 \
592
	man/sd_journal_get_cutoff_monotonic_usec.3 \
593
	man/sd_journal_reliable_fd.3 \
594
	man/sd_journal_process.3 \
595
	man/sd_journal_wait.3 \
596 597 598
	man/SD_JOURNAL_NOP.3 \
	man/SD_JOURNAL_APPEND.3 \
	man/SD_JOURNAL_INVALIDATE.3 \
599
	man/sd_journal_add_disjunction.3 \
600 601 602 603
	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 \
604
	man/sd_journal_seek_cursor.3 \
605 606 607
	man/sd_journal_test_cursor.3 \
	man/sd_journal_enumerate_unique.3 \
	man/sd_journal_restart_unique.3 \
608 609
	man/SD_JOURNAL_FOREACH_UNIQUE.3 \
	man/sd_journal_get_catalog_for_message_id.3
610

611 612 613 614 615 616 617 618 619
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

620 621 622 623 624 625 626 627 628 629
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

630 631 632 633 634
if HAVE_MYHOSTNAME
MANPAGES += \
	man/nss-myhostname.8
endif

635 636 637
man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
638
man/systemd-sysctl.8: man/systemd-sysctl.service.8
639
man/systemd-journald.socket.8: man/systemd-journald.service.8
640
man/systemd-journald.8: man/systemd-journald.service.8
641
man/systemd-remount-fs.8: man/systemd-remount-fs.service.8
642 643
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
644
man/systemd-initctl.socket.8: man/systemd-initctl.service.8
645
man/systemd-initctl.8: man/systemd-initctl.service.8
646
man/systemd-shutdownd.socket.8: man/systemd-shutdownd.service.8
647
man/systemd-shutdownd.8: man/systemd-shutdownd.service.8
648
man/systemd-hibernate.service.8: man/systemd-suspend.service.8
649
man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8
650
man/systemd-sleep.8: man/systemd-suspend.service.8
651 652 653 654
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
655
man/systemd-fsck.8: man/systemd-fsck@.service.8
656
man/systemd-fsck-root.service.8: man/systemd-fsck@.service.8
657 658 659
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
660 661 662
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
663 664
man/sd_id128_t.3: man/sd-id128.3
man/SD_ID128_MAKE.3: man/sd-id128.3
665
man/SD_ID128_CONST_STR.3: man/sd-id128.3
666 667 668
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
669
man/sd_id128_from_string.3: man/sd_id128_to_string.3
670
man/sd_id128_get_boot.3: man/sd_id128_get_machine.3
671 672 673
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
674
man/sd_journal_perror.3: man/sd_journal_print.3
675
man/SD_JOURNAL_SUPPRESS_LOCATION.3: man/sd_journal_print.3
676 677
man/sd_journal_open_directory.3: man/sd_journal_open.3
man/sd_journal_close.3: man/sd_journal_open.3
678 679 680 681
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
682 683 684
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
685 686 687 688 689
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
690
man/sd_journal_get_monotonic_usec.3: man/sd_journal_get_realtime_usec.3
691
man/sd_journal_get_cutoff_monotonic_usec.3: man/sd_journal_get_cutoff_realtime_usec.3
692
man/sd_journal_reliable_fd.3: man/sd_journal_get_fd.3
693 694
man/sd_journal_process.3: man/sd_journal_get_fd.3
man/sd_journal_wait.3: man/sd_journal_get_fd.3
695 696 697
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
698 699
man/sd_journal_add_disjunction.3: man/sd_journal_add_match.3
man/sd_journal_flush_matches.3: man/sd_journal_add_match.3
700 701 702 703
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
704
man/sd_journal_test_cursor.3: man/sd_journal_get_cursor.3
705 706 707
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
708
man/sd_journal_get_catalog_for_message_id.3: man/sd_journal_get_catalog.3
709 710 711 712 713 714 715 716 717 718 719

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}
720 721 722

CLEANFILES += \
	$(MANPAGES) \
723 724 725 726
	$(MANPAGES_ALIAS) \
	${XML_FILES:.xml=.html}

if HAVE_PYTHON
727
MANPAGES += \
728
	man/systemd.index.7 \
729
	man/systemd.directives.7
730 731

XML_DIRECTIVE_FILES = \
732
	man/systemd.xml \
733 734 735 736 737 738 739 740 741 742
	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 \
743
	man/systemd.exec.xml \
744 745
	man/systemd.kill.xml \
	man/systemd.device.xml \
746
	man/systemd.conf.xml \
747
	man/systemd.journal-fields.xml