Makefile.am 107 KB
Newer Older
1 2
#  -*- Mode: makefile; indent-tabs-mode: t -*- */
#
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 31 32
LIBUDEV_CURRENT=3
LIBUDEV_REVISION=0
LIBUDEV_AGE=2
Kay Sievers's avatar
Kay Sievers committed
33 34

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

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

42
LIBSYSTEMD_DAEMON_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
43
LIBSYSTEMD_DAEMON_REVISION=6
44 45
LIBSYSTEMD_DAEMON_AGE=0

46
LIBSYSTEMD_ID128_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
47
LIBSYSTEMD_ID128_REVISION=16
48 49
LIBSYSTEMD_ID128_AGE=0

Lennart Poettering's avatar
Lennart Poettering committed
50
LIBSYSTEMD_JOURNAL_CURRENT=7
Lennart Poettering's avatar
Lennart Poettering committed
51
LIBSYSTEMD_JOURNAL_REVISION=0
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
rootbin_PROGRAMS = \
171
	systemctl \
172
	systemd-notify \
173
	systemd-ask-password \
174
	systemd-tty-ask-password-agent \
175
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
176
	systemd-machine-id-setup
177

178
bin_PROGRAMS = \
179
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
180
	systemd-cgtop \
181
	systemd-stdio-bridge \
182
	systemd-nspawn \
183 184
	systemd-detect-virt \
	systemd-delta
185

186
dist_bin_SCRIPTS = \
187
	src/analyze/systemd-analyze
188

189
rootlibexec_PROGRAMS = \
190
	systemd \
191
	systemd-cgroups-agent \
192
	systemd-initctl \
193
	systemd-update-utmp \
194
	systemd-shutdownd \
195
	systemd-shutdown \
196
	systemd-remount-fs \
197
	systemd-reply-password \
198
	systemd-fsck \
199
	systemd-timestamp \
200
	systemd-ac-power \
201 202
	systemd-sysctl \
	systemd-sleep
203

204 205 206 207 208
if HAVE_KMOD
rootlibexec_PROGRAMS += \
	systemd-modules-load
endif

209
systemgenerator_PROGRAMS = \
210
	systemd-getty-generator \
211 212
	systemd-fstab-generator \
	systemd-system-update-generator
213

214
dist_bashcompletion_DATA = \
215
	shell-completion/systemd-bash-completion.sh
216

217 218
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
219
	tmpfiles.d/tmp.conf \
220 221
	tmpfiles.d/x11.conf

222 223
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
224
	tmpfiles.d/legacy.conf
225 226
endif

227
dist_systemunit_DATA = \
228 229
	units/graphical.target \
	units/multi-user.target \
230
	units/emergency.service \
231
	units/emergency.target \
232
	units/sysinit.target \
233
	units/basic.target \
234 235
	units/getty.target \
	units/halt.target \
236
	units/kexec.target \
237
	units/local-fs.target \
238
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
239
	units/remote-fs.target \
240
	units/remote-fs-pre.target \
241 242
	units/network.target \
	units/nss-lookup.target \
243
	units/nss-user-lookup.target \
244
	units/mail-transfer-agent.target \
245
	units/hibernate.target \
246
	units/hybrid-sleep.target \
247 248 249
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
250
	units/rpcbind.target \
251
	units/time-sync.target \
252
	units/shutdown.target \
253
	units/final.target \
254
	units/umount.target \
255
	units/sigpwr.target \
256
	units/sleep.target \
257
	units/sockets.target \
258
	units/suspend.target \
259
	units/swap.target \
260
	units/systemd-initctl.socket \
261
	units/systemd-shutdownd.socket \
262
	units/syslog.socket \
263 264
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
265
	units/sys-kernel-config.mount \
266
	units/sys-kernel-debug.mount \
267
	units/sys-fs-fuse-connections.mount \
Kay Sievers's avatar
Kay Sievers committed
268
	units/tmp.mount \
269
	units/printer.target \
270
	units/sound.target \
271
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
272
	units/smartcard.target \
273
	units/systemd-tmpfiles-clean.timer \
274
	units/quotaon.service \
275
	units/systemd-ask-password-wall.path \
276
	units/systemd-ask-password-console.path \
Kay Sievers's avatar
Kay Sievers committed
277
	units/syslog.target \
278 279
	units/systemd-udevd-control.socket \
	units/systemd-udevd-kernel.socket \
280
	units/system-update.target
281

282
nodist_systemunit_DATA = \
283
	units/getty@.service \
284
	units/serial-getty@.service \
285
	units/console-shell.service \
286
	units/console-getty.service \
287
	units/systemd-initctl.service \
288
	units/systemd-shutdownd.service \
289
	units/systemd-remount-fs.service \
290 291
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
292 293
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
294
	units/systemd-ask-password-wall.service \
295
	units/systemd-ask-password-console.service \
296
	units/systemd-sysctl.service \
297
	units/emergency.service \
298
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
299
	units/user@.service \
300
	units/systemd-hibernate.service \
301
	units/systemd-hybrid-sleep.service \
302 303 304 305 306 307 308
	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 \
309
	units/systemd-udevd.service \
310
	units/systemd-udev-trigger.service \
311
	units/systemd-udev-settle.service \
312
	units/debug-shell.service
313

314 315 316 317 318
if HAVE_KMOD
nodist_systemunit_DATA += \
	units/systemd-modules-load.service
endif

319 320 321
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
322

323
nodist_userunit_DATA = \
324
	units/user/systemd-exit.service
325

326
EXTRA_DIST += \
327
	units/getty@.service.m4 \
328
	units/serial-getty@.service.m4 \
329
	units/console-shell.service.m4.in \
330
	units/console-getty.service.m4.in \
331
	units/rescue.service.m4.in \
332
	units/systemd-initctl.service.in \
333
	units/systemd-shutdownd.service.in \
334
	units/systemd-remount-fs.service.in \
335 336
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
337 338
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
339
	units/systemd-ask-password-wall.service.in \
340
	units/systemd-ask-password-console.service.in \
341
	units/systemd-sysctl.service.in \
342
	units/emergency.service.in \
343 344 345 346 347
	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 \
348 349
	units/systemd-fsck@.service.in \
	units/systemd-fsck-root.service.in \
Kay Sievers's avatar
Kay Sievers committed
350
	units/user@.service.in \
351
	units/systemd-udevd.service \
352 353
	units/systemd-udev-trigger.service \
	units/systemd-udev-settle.service \
354
	units/debug-shell.service.in \
355
	units/systemd-hibernate.service.in \
356
	units/systemd-hybrid-sleep.service.in \
357
	units/systemd-suspend.service.in \
358
	units/quotaon.service.in \
359
	introspect.awk \
360
	man/custom-html.xsl
361

362 363 364 365 366
if HAVE_KMOD
EXTRA_DIST += \
	units/systemd-modules-load.service.in
endif

367 368 369 370
if HAVE_SYSV_COMPAT
nodist_systemunit_DATA += \
	units/rc-local.service \
	units/halt-local.service
371

372 373 374
EXTRA_DIST += \
	units/rc-local.service.in \
	units/halt-local.service.in
375

376 377
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
378 379
endif

380 381
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
382
	NEWS \
383
	LICENSE.LGPL2.1 \
384 385
	LICENSE.GPL2 \
	LICENSE.MIT \
386
	DISTRO_PORTING
387

388
@INTLTOOL_POLICY_RULE@
389

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

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
480
	man/init.1 \
481
	man/systemd-sysctl.8 \
482
	man/systemd-journald.socket.8 \
483
	man/systemd-journald.8 \
484 485
	man/systemd-remount-fs.8 \
	man/systemd-update-utmp-shutdown.service.8 \
486
	man/systemd-update-utmp.8 \
487
	man/systemd-initctl.socket.8 \
488
	man/systemd-initctl.8 \
489
	man/systemd-shutdownd.socket.8 \
490 491
	man/systemd-shutdownd.8 \
	man/systemd-hibernate.service.8 \
492
	man/systemd-hybrid-sleep.service.8 \
493 494 495 496
	man/systemd-sleep.8 \
	man/systemd-shutdown.8 \
	man/systemd-poweroff.service.8 \
	man/systemd-reboot.service.8 \
497
	man/systemd-kexec.service.8 \
498
	man/systemd-fsck.8 \
499 500 501
	man/systemd-fsck-root.service.8 \
	man/systemd-ask-password-console.path.8 \
	man/systemd-ask-password-wall.service.8 \
502 503 504
	man/systemd-ask-password-wall.path.8 \
	man/systemd-tmpfiles-setup.service.8 \
	man/systemd-tmpfiles-clean.service.8 \
505
	man/systemd-tmpfiles-clean.timer.8 \
506 507
	man/sd_id128_t.3 \
	man/SD_ID128_MAKE.3 \
508
	man/SD_ID128_CONST_STR.3 \
509 510 511
	man/SD_ID128_FORMAT_STR.3 \
	man/SD_ID128_FORMAT_VAL.3 \
	man/sd_id128_equal.3 \
512
	man/sd_id128_from_string.3 \
513 514 515
	man/sd_id128_get_boot.3 \
	man/sd_journal_printv.3 \
	man/sd_journal_send.3 \
516
	man/sd_journal_sendv.3 \
517
	man/sd_journal_perror.3 \
518
	man/SD_JOURNAL_SUPPRESS_LOCATION.3 \
519
	man/sd_journal_open_directory.3 \
520
	man/sd_journal_close.3 \
521 522 523 524
	man/sd_journal.3 \
	man/SD_JOURNAL_RUNTIME_ONLY.3 \
	man/SD_JOURNAL_SYSTEM_ONLY.3 \
	man/SD_JOURNAL_LOCAL_ONLY.3 \
525 526
	man/sd_journal_previous.3 \
	man/sd_journal_next_skip.3 \
527 528 529 530 531
	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 \
532
	man/SD_JOURNAL_FOREACH_DATA.3 \
533
	man/sd_journal_get_monotonic_usec.3 \
534
	man/sd_journal_get_cutoff_monotonic_usec.3 \
535
	man/sd_journal_reliable_fd.3 \
536
	man/sd_journal_process.3 \
537
	man/sd_journal_wait.3 \
538 539 540
	man/SD_JOURNAL_NOP.3 \
	man/SD_JOURNAL_APPEND.3 \
	man/SD_JOURNAL_INVALIDATE.3 \
541
	man/sd_journal_add_disjunction.3 \
542 543 544 545
	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 \
546
	man/sd_journal_seek_cursor.3 \
547 548 549
	man/sd_journal_test_cursor.3 \
	man/sd_journal_enumerate_unique.3 \
	man/sd_journal_restart_unique.3 \
550 551
	man/SD_JOURNAL_FOREACH_UNIQUE.3 \
	man/sd_journal_get_catalog_for_message_id.3
552

553 554 555 556 557 558 559 560 561
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

562 563 564 565 566 567 568 569 570 571
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

572 573 574
man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/init.1: man/systemd.1
575
man/systemd-sysctl.8: man/systemd-sysctl.service.8
576
man/systemd-journald.socket.8: man/systemd-journald.service.8
577
man/systemd-journald.8: man/systemd-journald.service.8
578
man/systemd-remount-fs.8: man/systemd-remount-fs.service.8
579 580
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
581
man/systemd-initctl.socket.8: man/systemd-initctl.service.8
582
man/systemd-initctl.8: man/systemd-initctl.service.8
583
man/systemd-shutdownd.socket.8: man/systemd-shutdownd.service.8
584
man/systemd-shutdownd.8: man/systemd-shutdownd.service.8
585
man/systemd-hibernate.service.8: man/systemd-suspend.service.8
586
man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8
587
man/systemd-sleep.8: man/systemd-suspend.service.8
588 589 590 591
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
592
man/systemd-fsck.8: man/systemd-fsck@.service.8
593
man/systemd-fsck-root.service.8: man/systemd-fsck@.service.8
594 595 596
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
597 598 599
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
600 601
man/sd_id128_t.3: man/sd-id128.3
man/SD_ID128_MAKE.3: man/sd-id128.3
602
man/SD_ID128_CONST_STR.3: man/sd-id128.3
603 604 605
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
606
man/sd_id128_from_string.3: man/sd_id128_to_string.3
607
man/sd_id128_get_boot.3: man/sd_id128_get_machine.3
608 609 610
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
611
man/sd_journal_perror.3: man/sd_journal_print.3
612
man/SD_JOURNAL_SUPPRESS_LOCATION.3: man/sd_journal_print.3
613 614
man/sd_journal_open_directory.3: man/sd_journal_open.3
man/sd_journal_close.3: man/sd_journal_open.3
615 616 617 618
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
619 620 621
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
622 623 624 625 626
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
627
man/sd_journal_get_monotonic_usec.3: man/sd_journal_get_realtime_usec.3
628
man/sd_journal_get_cutoff_monotonic_usec.3: man/sd_journal_get_cutoff_realtime_usec.3
629
man/sd_journal_reliable_fd.3: man/sd_journal_get_fd.3
630 631
man/sd_journal_process.3: man/sd_journal_get_fd.3
man/sd_journal_wait.3: man/sd_journal_get_fd.3
632 633 634
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
635 636
man/sd_journal_add_disjunction.3: man/sd_journal_add_match.3
man/sd_journal_flush_matches.3: man/sd_journal_add_match.3
637 638 639 640
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
641
man/sd_journal_test_cursor.3: man/sd_journal_get_cursor.3
642 643 644
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
645
man/sd_journal_get_catalog_for_message_id.3: man/sd_journal_get_catalog.3
646 647 648 649 650 651 652 653 654 655 656

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}
657 658 659

CLEANFILES += \
	$(MANPAGES) \
660 661 662 663 664 665 666 667 668 669
	$(MANPAGES_ALIAS) \
	${XML_FILES:.xml=.html}

if HAVE_PYTHON
noinst_DATA += \
	man/index.html

CLEANFILES += \
	man/index.html

670
man/index.html: make-man-index.py $(XML_FILES)
671 672
	$(AM_V_at)$(MKDIR_P) $(dir $@)
	$(AM_V_GEN)$(PYTHON) $^ > $@
673

674 675 676
MANPAGES += \
	man/systemd.directives.5

677 678
EXTRA_DIST += \
	man/index.html
679 680 681 682 683 684 685 686 687 688 689 690

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 \
691
	man/systemd.exec.xml \
692 693
	man/systemd.kill.xml \
	man/systemd.device.xml \
694
	man/systemd.conf.xml \
695 696
	man/systemd.journal-fields.xml \
	man/systemd.time.xml
697 698 699 700 701 702 703 704

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

705 706
endif

707 708 709 710 711 712
endif

EXTRA_DIST += \
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
713
	$(MANPAGES_ALIAS) \
714 715
	make-man-index.py \
	make-directive-index.py
716 717

# ------------------------------------------------------------------------------
718
noinst_LTLIBRARIES += \
719
	libsystemd-shared.la
720

721
libsystemd_shared_la_SOURCES = \
722 723
	src/shared/linux/auto_dev-ioctl.h \
	src/shared/linux/fanotify.h \
724 725
	src/shared/linux/seccomp.h \
	src/shared/linux/seccomp-bpf.h \
726
	src/shared/missing.h \
Kay Sievers's avatar