Makefile.am 96.2 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

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

26
LIBUDEV_CURRENT=1
Lennart Poettering's avatar
Lennart Poettering committed
27
LIBUDEV_REVISION=2
28
LIBUDEV_AGE=0
Kay Sievers's avatar
Kay Sievers committed
29 30

LIBGUDEV_CURRENT=1
31
LIBGUDEV_REVISION=2
Kay Sievers's avatar
Kay Sievers committed
32
LIBGUDEV_AGE=1
33

Lennart Poettering's avatar
Lennart Poettering committed
34 35 36
LIBSYSTEMD_LOGIN_CURRENT=3
LIBSYSTEMD_LOGIN_REVISION=0
LIBSYSTEMD_LOGIN_AGE=3
37

38
LIBSYSTEMD_DAEMON_CURRENT=0
39
LIBSYSTEMD_DAEMON_REVISION=2
40 41
LIBSYSTEMD_DAEMON_AGE=0

42
LIBSYSTEMD_ID128_CURRENT=0
Lennart Poettering's avatar
Lennart Poettering committed
43
LIBSYSTEMD_ID128_REVISION=6
44 45
LIBSYSTEMD_ID128_AGE=0

Lennart Poettering's avatar
Lennart Poettering committed
46 47 48
LIBSYSTEMD_JOURNAL_CURRENT=2
LIBSYSTEMD_JOURNAL_REVISION=0
LIBSYSTEMD_JOURNAL_AGE=2
49

50
# Dirs of external packages
51 52 53 54
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
55 56
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
57
pkgconfiglibdir=$(libdir)/pkgconfig
58
polkitpolicydir=$(datadir)/polkit-1/actions
59
bashcompletiondir=$(sysconfdir)/bash_completion.d
60
rpmmacrosdir=$(sysconfdir)/rpm
61

62
# Our own, non-special dirs
63
pkgsysconfdir=$(sysconfdir)/systemd
64
userunitdir=$(prefix)/lib/systemd/user
65
tmpfilesdir=$(prefix)/lib/tmpfiles.d
66
sysctldir=$(prefix)/lib/sysctl.d
67
usergeneratordir=$(prefix)/lib/systemd/user-generators
68
pkgincludedir=$(includedir)/systemd
69 70
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
71
systemsleepdir=$(rootlibexecdir)/system-sleep
72
systemunitdir=$(rootprefix)/lib/systemd/system
Kay Sievers's avatar
Kay Sievers committed
73
udevlibexecdir=$(rootprefix)/lib/udev
74 75
udevhomedir = $(udevlibexecdir)
udevrulesdir = $(udevlibexecdir)/rules.d
76 77

# And these are the special ones for /
78 79 80
rootprefix=@rootprefix@
rootbindir=$(rootprefix)/bin
rootlibexecdir=$(rootprefix)/lib/systemd
81

82 83
CLEANFILES =
EXTRA_DIST =
Kay Sievers's avatar
Kay Sievers committed
84
BUILT_SOURCES =
85 86 87
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
Kay Sievers's avatar
Kay Sievers committed
88
DISTCLEAN_LOCAL_HOOKS =
89
pkginclude_HEADERS =
90
noinst_LTLIBRARIES =
91
lib_LTLIBRARIES =
Kay Sievers's avatar
Kay Sievers committed
92
include_HEADERS =
93
pkgconfiglib_DATA =
94
polkitpolicy_in_files =
95
dist_udevrules_DATA =
Kay Sievers's avatar
Kay Sievers committed
96 97
nodist_udevrules_DATA =
dist_man_MANS =
98
dist_pkgsysconf_DATA =
99
dist_pkgdata_DATA =
100 101 102
dist_dbuspolicy_DATA =
dbusinterface_DATA =
dist_dbussystemservice_DATA =
103
check_PROGRAMS =
104 105
check_DATA =
noinst_PROGRAMS =
106
TESTS =
107
udevlibexec_PROGRAMS =
108

109
AM_CPPFLAGS = \
110
	-include $(top_builddir)/config.h \
Kay Sievers's avatar
Kay Sievers committed
111
	-DSYSCONFDIR=\""$(sysconfdir)"\" \
112
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
113
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
114
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
115
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
116
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
117 118 119
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
120
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
121
	-DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
122
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
123
	-DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
124
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
125
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
126
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
127
	-DROOTPREFIX=\"$(rootprefix)\" \
128
	-DRUNTIME_DIR=\"/run\" \
129
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
130
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
131
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
132
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
133
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
134
	-DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
135
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
Kay Sievers's avatar
Kay Sievers committed
136
	-DX_SERVER=\"$(bindir)/X\" \
137
	-DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
138
	-DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
139
	-I $(top_srcdir)/src \
140
	-I $(top_srcdir)/src/shared \
141
	-I $(top_srcdir)/src/login \
142
	-I $(top_srcdir)/src/journal \
Kay Sievers's avatar
Kay Sievers committed
143
	-I $(top_srcdir)/src/systemd \
144
	-I $(top_builddir)/src/core \
145
	-I $(top_srcdir)/src/core \
146 147
	-I $(top_srcdir)/src/libudev \
	-I $(top_srcdir)/src/udev
148

149
AM_CFLAGS = $(WARNINGFLAGS)
150
AM_LDFLAGS = $(GCLDFLAGS)
151

152
# ------------------------------------------------------------------------------
153 154 155 156 157 158
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
159 160 161 162 163 164
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
165 166 167 168 169 170
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
171 172 173 174 175 176
if TARGET_MANDRIVA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
Koen Kooi's avatar
Koen Kooi committed
177 178 179 180 181 182
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
183
if TARGET_MAGEIA
184 185 186
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
187
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
Dexter Morgan's avatar
Dexter Morgan committed
188 189 190 191
else
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
192
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
193
endif
194
endif
195
endif
196
endif
197
endif
Chris E Ferron's avatar
Chris E Ferron committed
198
endif
199

200
# ------------------------------------------------------------------------------
201
rootbin_PROGRAMS = \
202
	systemctl \
203
	systemd-notify \
204
	systemd-ask-password \
205
	systemd-tty-ask-password-agent \
206
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
207
	systemd-machine-id-setup
208

209
bin_PROGRAMS = \
210
	systemd-cgls \
Lennart Poettering's avatar
Lennart Poettering committed
211
	systemd-cgtop \
212
	systemd-stdio-bridge \
213
	systemd-nspawn \
214 215
	systemd-detect-virt \
	systemd-delta
216

217
dist_bin_SCRIPTS = \
218
	src/analyze/systemd-analyze
219

220
rootlibexec_PROGRAMS = \
221
	systemd \
222
	systemd-cgroups-agent \
223
	systemd-initctl \
224
	systemd-update-utmp \
225
	systemd-shutdownd \
226
	systemd-shutdown \
227
	systemd-modules-load \
228
	systemd-remount-fs \
229
	systemd-reply-password \
230
	systemd-fsck \
231
	systemd-timestamp \
232
	systemd-ac-power \
233 234
	systemd-sysctl \
	systemd-sleep
235

236
systemgenerator_PROGRAMS = \
237
	systemd-getty-generator \
238 239
	systemd-fstab-generator \
	systemd-system-update-generator
240

241
dist_bashcompletion_DATA = \
242
	bash-completion/systemd-bash-completion.sh
243

244 245
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
246
	tmpfiles.d/tmp.conf \
247 248
	tmpfiles.d/x11.conf

249 250
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
251
	tmpfiles.d/legacy.conf
252 253
endif

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

309
nodist_systemunit_DATA = \
310
	units/getty@.service \
311
	units/serial-getty@.service \
312
	units/console-shell.service \
313
	units/console-getty.service \
314
	units/systemd-initctl.service \
315
	units/systemd-shutdownd.service \
316
	units/systemd-modules-load.service \
317
	units/systemd-remount-fs.service \
318 319
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
320 321
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
322
	units/systemd-ask-password-wall.service \
323
	units/systemd-ask-password-console.service \
324
	units/systemd-sysctl.service \
325
	units/emergency.service \
326
	units/rescue.service \
Kay Sievers's avatar
Kay Sievers committed
327
	units/user@.service \
328 329 330 331 332 333 334 335
	units/systemd-hibernate.service \
	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 \
336
	units/systemd-udevd.service \
337
	units/systemd-udev-trigger.service \
338
	units/systemd-udev-settle.service \
339
	units/debug-shell.service
340

341 342 343
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
344

345
nodist_userunit_DATA = \
346
	units/user/systemd-exit.service
347

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

383 384 385 386
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
387
	units/fedora/halt-local.service
388 389
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
390 391
endif

392 393 394 395 396
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
397 398
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
399 400
endif

401 402 403 404 405
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

406 407 408 409
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
410 411
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
412 413
endif

Dexter Morgan's avatar
Dexter Morgan committed
414 415 416 417 418
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
419 420
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
421 422
endif

423 424
dist_doc_DATA = \
	README \
Kay Sievers's avatar
Kay Sievers committed
425
	NEWS \
426
	LICENSE.LGPL2.1 \
427 428
	LICENSE.GPL2 \
	LICENSE.MIT \
429
	DISTRO_PORTING
430

431
@INTLTOOL_POLICY_RULE@
432

433 434 435 436 437
# ------------------------------------------------------------------------------
MANPAGES = \
	man/systemd.1 \
	man/systemctl.1 \
	man/systemd-cgls.1 \
438
	man/systemd-delta.1 \
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456
	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 \
	man/systemd.special.7 \
	man/systemd.journal-fields.7 \
457
	man/kernel-command-line.7 \
458
	man/daemon.7 \
Lennart Poettering's avatar
Lennart Poettering committed
459
	man/bootup.7 \
460 461 462 463 464 465 466 467 468 469 470 471 472 473
	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 \
	man/timezone.5 \
	man/machine-id.5 \
	man/locale.conf.5 \
	man/os-release.5 \
	man/machine-info.5 \
	man/modules-load.d.5 \
474
	man/systemd-modules-load.service.8 \
475
	man/sysctl.d.5 \
476
	man/systemd-sysctl.service.8 \
477 478 479
	man/systemd-ask-password.1 \
	man/systemd-cat.1 \
	man/systemd-machine-id-setup.1 \
480
	man/systemd-detect-virt.1 \
481
	man/journald.conf.5 \
482
	man/systemd-journald.service.8 \
483
	man/journalctl.1 \
484
	man/systemd-inhibit.1 \
485
	man/systemd-remount-fs.service.8 \
486
	man/systemd-update-utmp-runlevel.service.8 \
487
	man/systemd-initctl.service.8 \
488
	man/systemd-shutdownd.service.8 \
489
	man/systemd-suspend.service.8 \
490
	man/systemd-halt.service.8 \
491
	man/systemd-fsck@.service.8 \
492
	man/systemd-ask-password-console.service.8 \
493
	man/systemd-analyze.1 \
494
	man/systemd-tty-ask-password-agent.1 \
495
	man/systemd-getty-generator.8 \
496
	man/systemd-system-update-generator.8 \
497
	man/systemd-fstab-generator.8 \
498
	man/systemd.preset.5 \
499
	man/sd-id128.3 \
500
	man/sd_id128_to_string.3 \
501
	man/sd_id128_randomize.3 \
502
	man/sd_id128_get_machine.3 \
503
	man/sd-journal.3 \
504
	man/sd_journal_print.3 \
505
	man/sd_journal_stream_fd.3 \
506
	man/sd_journal_open.3 \
507
	man/sd_journal_next.3 \
508
	man/sd_journal_get_data.3 \
509
	man/sd_journal_get_realtime_usec.3 \
510
	man/sd_journal_get_cutoff_realtime_usec.3 \
511
	man/sd_journal_get_cursor.3 \
512
	man/sd_journal_get_fd.3 \
513 514
	man/sd_journal_add_match.3 \
	man/sd_journal_seek_head.3
515 516 517 518

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
519 520
	man/init.1 \
	man/systemd-modules-load.8 \
521
	man/systemd-sysctl.8 \
522
	man/systemd-journald.socket.8 \
523
	man/systemd-journald.8 \
524 525
	man/systemd-remount-fs.8 \
	man/systemd-update-utmp-shutdown.service.8 \
526
	man/systemd-update-utmp.8 \
527
	man/systemd-initctl.socket.8 \
528
	man/systemd-initctl.8 \
529
	man/systemd-shutdownd.socket.8 \
530 531
	man/systemd-shutdownd.8 \
	man/systemd-hibernate.service.8 \
532 533 534 535
	man/systemd-sleep.8 \
	man/systemd-shutdown.8 \
	man/systemd-poweroff.service.8 \
	man/systemd-reboot.service.8 \
536
	man/systemd-kexec.service.8 \
537 538 539
	man/systemd-fsck-root.service.8 \
	man/systemd-ask-password-console.path.8 \
	man/systemd-ask-password-wall.service.8 \
540 541 542
	man/systemd-ask-password-wall.path.8 \
	man/systemd-tmpfiles-setup.service.8 \
	man/systemd-tmpfiles-clean.service.8 \
543
	man/systemd-tmpfiles-clean.timer.8 \
544 545 546 547 548
	man/sd_id128_t.3 \
	man/SD_ID128_MAKE.3 \
	man/SD_ID128_FORMAT_STR.3 \
	man/SD_ID128_FORMAT_VAL.3 \
	man/sd_id128_equal.3 \
549
	man/sd_id128_from_string.3 \
550 551 552
	man/sd_id128_get_boot.3 \
	man/sd_journal_printv.3 \
	man/sd_journal_send.3 \
553
	man/sd_journal_sendv.3 \
554
	man/SD_JOURNAL_SUPPRESS_LOCATION.3 \
555
	man/sd_journal_open_directory.3 \
556
	man/sd_journal_close.3 \
557 558 559 560
	man/sd_journal.3 \
	man/SD_JOURNAL_RUNTIME_ONLY.3 \
	man/SD_JOURNAL_SYSTEM_ONLY.3 \
	man/SD_JOURNAL_LOCAL_ONLY.3 \
561 562
	man/sd_journal_previous.3 \
	man/sd_journal_next_skip.3 \
563 564 565 566 567
	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 \
568
	man/SD_JOURNAL_FOREACH_DATA.3 \
569
	man/sd_journal_get_monotonic_usec.3 \
570 571
	man/sd_journal_get_cutoff_monotonic_usec.3 \
	man/sd_journal_process.3 \
572
	man/sd_journal_wait.3 \
573 574 575
	man/SD_JOURNAL_NOP.3 \
	man/SD_JOURNAL_APPEND.3 \
	man/SD_JOURNAL_INVALIDATE.3 \
576
	man/sd_journal_add_disjunction.3 \
577 578 579 580 581
	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 \
	man/sd_journal_seek_cursor.3
582 583 584 585

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

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}
659 660 661

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

if HAVE_PYTHON
noinst_DATA += \
	man/index.html

CLEANFILES += \
	man/index.html

672
$(builddir)/man/index.html: $(XML_FILES:.xml=.html) $(top_srcdir)/make-man-index.py
673
	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
674 675 676
	$(PYTHON) $(top_srcdir)/make-man-index.py $(XML_FILES) > $@ || rm $@

EXTRA_DIST += man/index.html
677 678
endif

679 680 681 682 683 684
endif

EXTRA_DIST += \
	$(XML_FILES) \
	${XML_FILES:.xml=.html} \
	$(MANPAGES) \
685 686
	$(MANPAGES_ALIAS) \
	make-man-index.py
687 688

# ------------------------------------------------------------------------------
689
noinst_LTLIBRARIES += \
690
	libsystemd-shared.la
691

692
libsystemd_shared_la_SOURCES = \
693 694
	src/shared/linux/auto_dev-ioctl.h \
	src/shared/linux/fanotify.h \
695 696
	src/shared/linux/seccomp.h \
	src/shared/linux/seccomp-bpf.h \
697
	src/shared/missing.h \
698 699 700
	src/shared/list.h \
	src/shared/macro.h \
	src/shared/def.h \
701 702 703 704
	src/shared/util.c \
	src/shared/util.h \
	src/shared/virt.c \
	src/shared/virt.h \
Kay Sievers's avatar
Kay Sievers committed
705 706
	src/shared/path-util.c \
	src/shared/path-util.h \
707 708 709 710 711 712 713 714 715 716 717 718 719 720 721
	src/shared/hashmap.c \
	src/shared/hashmap.h \
	src/shared/set.c \
	src/shared/set.h \
	src/shared/strv.c \
	src/shared/strv.h \
	src/shared/conf-parser.c \
	src/shared/conf-parser.h \
	src/shared/log.c \
	src/shared/log.h \
	src/shared/ratelimit.h \
	src/shared/ratelimit.c \
	src/shared/exit-status.c \
	src/shared/exit-status.h \
	src/shared/utf8.c \
Kay Sievers's avatar
Kay Sievers committed
722
	src/shared/utf8.h \
Kay Sievers's avatar
Kay Sievers committed
723
	src/shared/pager.c \
724 725
	src/shared/pager.h \
	src/shared/ioprio.h \
726 727
	src/shared/socket-util.c \
	src/shared/socket-util.h \
Kay Sievers's avatar
Kay Sievers committed
728 729
	src/shared/conf-files.c \
	src/shared/conf-files.h \
730 731
	src/shared/cgroup-util.c \
	src/shared/cgroup-util.h \
732 733 734 735 736 737 738 739 740 741 742 743 744
	src/shared/cgroup-show.c \
	src/shared/cgroup-show.h \
	src/shared/unit-name.c \
	src/shared/unit-name.h \
	src/shared/utmp-wtmp.c \
	src/shared/utmp-wtmp.h \
	src/shared/watchdog.c \
	src/shared/watchdog.h \
	src/shared/spawn-ask-password-agent.c \
	src/shared/spawn-ask-password-agent.h \
	src/shared/specifier.c \
	src/shared/specifier.h \
	src/shared/spawn-polkit-agent.c \
Kay Sievers's avatar
Kay Sievers committed
745 746 747
	src/shared/spawn-polkit-agent.h \
	src/shared/hwclock.c \
	src/shared/hwclock.h
748 749 750 751 752 753 754 755 756 757

#-------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
	libsystemd-dbus.la

libsystemd_dbus_la_SOURCES = \
	src/shared/dbus-common.c \
	src/shared/dbus-common.h \
	src/shared/dbus-loop.c \
	src/shared/dbus-loop.h \
758 759
	src/shared/polkit.c \
	src/shared/polkit.h
760

761
libsystemd_dbus_la_CFLAGS = \
762 763 764
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS)

765 766 767
libsystemd_dbus_la_LIBADD = \
	$(DBUS_LIBS)

768 769
# ------------------------------------------------------------------------------
noinst_LTLIBRARIES += \
770
	libsystemd-units.la
771

772
libsystemd_units_la_SOURCES = \