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
sysvrcddir=$(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 121
check_DATA =
noinst_PROGRAMS =
122
TESTS =
123
udevlibexec_PROGRAMS =
124

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

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

169 170
# ------------------------------------------------------------------------------

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

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

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

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

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

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

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

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

CLEANFILES += \
	src/analyze/systemd-analyze

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

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

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

245
dist_systemunit_DATA = \
246 247
	units/graphical.target \
	units/multi-user.target \
248
	units/emergency.service \
249
	units/emergency.target \
250
	units/sysinit.target \
251
	units/basic.target \
252 253
	units/getty.target \
	units/halt.target \
254
	units/kexec.target \
255
	units/local-fs.target \
256
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
257
	units/remote-fs.target \
258
	units/remote-fs-pre.target \
259 260
	units/network.target \
	units/nss-lookup.target \
261
	units/nss-user-lookup.target \
262
	units/mail-transfer-agent.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 \
Kay Sievers's avatar
Kay Sievers committed
295
	units/syslog.target \
296 297
	units/systemd-udevd-control.socket \
	units/systemd-udevd-kernel.socket \
298
	units/system-update.target
299

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

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

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

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

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

380 381 382 383 384
if HAVE_KMOD
EXTRA_DIST += \
	units/systemd-modules-load.service.in
endif

385 386 387 388
if HAVE_SYSV_COMPAT
nodist_systemunit_DATA += \
	units/rc-local.service \
	units/halt-local.service
389

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

394 395
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
396 397
endif

398 399
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
400
	NEWS \
401
	LICENSE.LGPL2.1 \
402 403
	LICENSE.GPL2 \
	LICENSE.MIT \
404
	DISTRO_PORTING
405

406
@INTLTOOL_POLICY_RULE@
407

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

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

571 572 573 574 575 576 577 578 579
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

580 581 582 583 584 585 586 587 588 589
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

590 591 592 593 594
if HAVE_MYHOSTNAME
MANPAGES += \
	man/nss-myhostname.8
endif

595 596 597
man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
598
man/systemd-sysctl.8: man/systemd-sysctl.service.8
599
man/systemd-journald.socket.8: man/systemd-journald.service.8
600
man/systemd-journald.8: man/systemd-journald.service.8
601
man/systemd-remount-fs.8: man/systemd-remount-fs.service.8
602 603
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
604
man/systemd-initctl.socket.8: man/systemd-initctl.service.8
605
man/systemd-initctl.8: man/systemd-initctl.service.8
606
man/systemd-shutdownd.socket.8: man/systemd-shutdownd.service.8
607
man/systemd-shutdownd.8: man/systemd-shutdownd.service.8
608
man/systemd-hibernate.service.8: man/systemd-suspend.service.8
609
man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8
610
man/systemd-sleep.8: man/systemd-suspend.service.8
611 612 613 614
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
615
man/systemd-fsck.8: man/systemd-fsck@.service.8
616
man/systemd-fsck-root.service.8: man/systemd-fsck@.service.8
617 618 619
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
620 621 622
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
623 624
man/sd_id128_t.3: man/sd-id128.3
man/SD_ID128_MAKE.3: man/sd-id128.3
625
man/SD_ID128_CONST_STR.3: man/sd-id128.3
626 627 628
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
629
man/sd_id128_from_string.3: man/sd_id128_to_string.3
630
man/sd_id128_get_boot.3: man/sd_id128_get_machine.3
631 632 633
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
634
man/sd_journal_perror.3: man/sd_journal_print.3
635
man/SD_JOURNAL_SUPPRESS_LOCATION.3: man/sd_journal_print.3
636 637
man/sd_journal_open_directory.3: man/sd_journal_open.3
man/sd_journal_close.3: man/sd_journal_open.3
638 639 640 641
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
642 643 644
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
645 646 647 648 649
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
650
man/sd_journal_get_monotonic_usec.3: man/sd_journal_get_realtime_usec.3
651
man/sd_journal_get_cutoff_monotonic_usec.3: man/sd_journal_get_cutoff_realtime_usec.3
652
man/sd_journal_reliable_fd.3: man/sd_journal_get_fd.3
653 654
man/sd_journal_process.3: man/sd_journal_get_fd.3
man/sd_journal_wait.3: man/sd_journal_get_fd.3
655 656 657
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
658 659
man/sd_journal_add_disjunction.3: man/sd_journal_add_match.3
man/sd_journal_flush_matches.3: man/sd_journal_add_match.3
660 661 662 663
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
664
man/sd_journal_test_cursor.3: man/sd_journal_get_cursor.3
665 666 667
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
668
man/sd_journal_get_catalog_for_message_id.3: man/sd_journal_get_catalog.3
669 670 671 672 673 674 675 676 677 678 679

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}
680 681 682

CLEANFILES += \
	$(MANPAGES) \
683 684 685 686 687 688 689 690 691 692
	$(MANPAGES_ALIAS) \
	${XML_FILES:.xml=.html}

if HAVE_PYTHON
noinst_DATA += \
	man/index.html

CLEANFILES += \
	man/index.html

693
man/index.html: make-man-index.py $(XML_FILES)
694 695
	$(AM_V_at)$(MKDIR_P) $(dir $@)
	$(AM_V_GEN)$(PYTHON) $^ > $@
696

697 698 699
MANPAGES += \
	man/systemd.directives.5

700 701
EXTRA_DIST += \
	man/index.html
702 703 704 705 706 707 708 709 710 711 712 713

XML_DIRECTIVE_FILES = \
	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 \
714
	man/systemd.exec.xml \
715 716
	man/systemd.kill.xml \
	man/systemd.device.xml \
717
	man/systemd.conf.xml \
718 719
	man/systemd.journal-fields.xml \
	man/systemd.time.xml
720 721 722 723 724 725 726 727

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

EXTRA_DIST += \
	man/systemd.directives.xml

728 729
endif

730 731 732 733 734 735
endif

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