Makefile.am 58.9 KB
Newer Older
1 2
#  This file is part of systemd.
#
3 4
#  Copyright 2011 Lennart Poettering
#  Copyright 2011 Kay Sievers
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (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
#  General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with systemd; If not, see <http://www.gnu.org/licenses/>.

ACLOCAL_AMFLAGS = -I m4

21 22
SUBDIRS = po

23
LIBSYSTEMD_LOGIN_CURRENT=0
24
LIBSYSTEMD_LOGIN_REVISION=6
25 26
LIBSYSTEMD_LOGIN_AGE=0

27 28 29 30
LIBSYSTEMD_DAEMON_CURRENT=0
LIBSYSTEMD_DAEMON_REVISION=0
LIBSYSTEMD_DAEMON_AGE=0

31 32 33 34 35 36 37 38
LIBSYSTEMD_ID128_CURRENT=0
LIBSYSTEMD_ID128_REVISION=0
LIBSYSTEMD_ID128_AGE=0

LIBSYSTEMD_JOURNAL_CURRENT=0
LIBSYSTEMD_JOURNAL_REVISION=0
LIBSYSTEMD_JOURNAL_AGE=0

39
# Dirs of external packages
40 41 42 43
dbuspolicydir=@dbuspolicydir@
dbussessionservicedir=@dbussessionservicedir@
dbussystemservicedir=@dbussystemservicedir@
dbusinterfacedir=@dbusinterfacedir@
44
udevrulesdir=@udevrulesdir@
45 46
pamlibdir=@pamlibdir@
pkgconfigdatadir=$(datadir)/pkgconfig
47
pkgconfiglibdir=$(libdir)/pkgconfig
48
polkitpolicydir=$(datadir)/polkit-1/actions
49
bashcompletiondir=$(sysconfdir)/bash_completion.d
50

51
# Our own, non-special dirs
52
pkgsysconfdir=$(sysconfdir)/systemd
53
userunitdir=$(prefix)/lib/systemd/user
54
tmpfilesdir=$(prefix)/lib/tmpfiles.d
55
usergeneratordir=$(pkglibexecdir)/user-generators
56
pkgincludedir=$(includedir)/systemd
57 58 59 60 61

# And these are the special ones for /
rootdir=@rootdir@
rootbindir=$(rootdir)/bin
rootlibexecdir=$(rootdir)/lib/systemd
62 63
systemgeneratordir=$(rootlibexecdir)/system-generators
systemshutdowndir=$(rootlibexecdir)/system-shutdown
64
systemunitdir=$(rootdir)/lib/systemd/system
65

66 67 68 69 70
CLEANFILES =
EXTRA_DIST =
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
INSTALL_DATA_HOOKS =
71
pkginclude_HEADERS =
72 73
polkitpolicy_in_files =

74
AM_CPPFLAGS = \
75
	-include $(top_builddir)/config.h \
76
	-DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
77
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
78
	-DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
79
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
80
	-DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
81 82 83
	-DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
	-DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
	-DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
84
	-DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
85
	-DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
86
	-DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
87
	-DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
88
	-DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
89
	-DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
90
	-DRUNTIME_DIR=\"/run\" \
91
	-DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
92
	-DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
93
	-DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
94
	-DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
95
	-DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
96
	-DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
97
	-I $(top_srcdir)/src
98

99 100 101 102 103 104
if TARGET_GENTOO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
105 106 107 108 109 110
if TARGET_ARCH
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
111 112 113 114 115 116
if TARGET_FRUGALWARE
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
117 118 119 120 121 122
if TARGET_MANDRIVA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
Chris E Ferron's avatar
Chris E Ferron committed
123 124 125 126 127 128
if TARGET_MEEGO
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
Koen Kooi's avatar
Koen Kooi committed
129 130 131 132 133 134
if TARGET_ANGSTROM
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
	-DKBD_SETFONT=\"/usr/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
else
135 136 137 138
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"latarcyrheb-sun16\"
Dexter Morgan's avatar
Dexter Morgan committed
139 140 141 142 143 144 145
else
if TARGET_MAGEIA
AM_CPPFLAGS += \
	-DKBD_LOADKEYS=\"/bin/loadkeys\" \
	-DKBD_SETFONT=\"/bin/setfont\" \
	-DDEFAULT_FONT=\"LatArCyrHeb-16\"
endif
146
endif
147
endif
148
endif
149
endif
Chris E Ferron's avatar
Chris E Ferron committed
150
endif
Koen Kooi's avatar
Koen Kooi committed
151
endif
152

153
rootbin_PROGRAMS = \
154
	systemd \
155
	systemctl \
156
	systemd-notify \
157
	systemd-ask-password \
158
	systemd-tty-ask-password-agent \
159
	systemd-tmpfiles \
Kay Sievers's avatar
Kay Sievers committed
160
	systemd-machine-id-setup
161

162
bin_PROGRAMS = \
163
	systemd-cgls \
164
	systemd-stdio-bridge \
165
	systemd-nspawn
166

167
dist_bin_SCRIPTS = \
168
	src/systemd-analyze
169

170 171
if HAVE_GTK
bin_PROGRAMS += \
172
	systemadm \
173
	systemd-gnome-ask-password-agent
174
endif
175

176
rootlibexec_PROGRAMS = \
177
	systemd-stdout-syslog-bridge \
178
	systemd-cgroups-agent \
179
	systemd-initctl \
180
	systemd-update-utmp \
181
	systemd-random-seed \
182
	systemd-shutdownd \
183
	systemd-shutdown \
184
	systemd-modules-load \
185
	systemd-remount-api-vfs \
186
	systemd-kmsg-syslogd \
187
	systemd-vconsole-setup \
188 189
	systemd-reply-password \
	systemd-readahead-collect \
190
	systemd-readahead-replay \
191 192
	systemd-user-sessions \
	systemd-fsck \
193
	systemd-quotacheck \
194
	systemd-timestamp \
195
	systemd-ac-power \
196
	systemd-detect-virt \
Kay Sievers's avatar
Kay Sievers committed
197
	systemd-sysctl
198

199
systemgenerator_PROGRAMS = \
200
	systemd-getty-generator
201

202 203 204 205
if HAVE_LIBCRYPTSETUP
rootlibexec_PROGRAMS += \
	systemd-cryptsetup

206
systemgenerator_PROGRAMS += \
207
	systemd-cryptsetup-generator
208
endif
209

210
lib_LTLIBRARIES = \
211
	libsystemd-daemon.la
212

213 214
noinst_PROGRAMS = \
	test-engine \
215
	test-job-type \
216
	test-ns \
217
	test-loopback \
218
	test-hostname \
219
	test-daemon \
220
	test-cgroup \
221
	test-env-replace \
222
	test-strv \
223
	test-install
224

225
dist_pkgsysconf_DATA = \
226
	src/system.conf \
227
	src/user.conf
228

229
dist_dbuspolicy_DATA = \
230
	src/org.freedesktop.systemd1.conf
231

232
dist_dbussystemservice_DATA = \
233
	src/org.freedesktop.systemd1.service
234

235
dist_udevrules_DATA = \
236
	src/71-seat.rules
237

238
nodist_udevrules_DATA = \
239 240
	src/73-seat-late.rules \
	src/99-systemd.rules
241

242
dbusinterface_DATA = \
243 244 245 246 247
	org.freedesktop.systemd1.Manager.xml \
	org.freedesktop.systemd1.Job.xml \
	org.freedesktop.systemd1.Unit.xml \
	org.freedesktop.systemd1.Service.xml \
	org.freedesktop.systemd1.Socket.xml \
248
	org.freedesktop.systemd1.Timer.xml \
249 250 251 252 253
	org.freedesktop.systemd1.Target.xml \
	org.freedesktop.systemd1.Device.xml \
	org.freedesktop.systemd1.Mount.xml \
	org.freedesktop.systemd1.Automount.xml \
	org.freedesktop.systemd1.Snapshot.xml \
254
	org.freedesktop.systemd1.Swap.xml \
255
	org.freedesktop.systemd1.Path.xml
256

257
dist_bashcompletion_DATA = \
258
	src/systemd-bash-completion.sh
259

260 261
dist_tmpfiles_DATA = \
	tmpfiles.d/systemd.conf \
262
	tmpfiles.d/tmp.conf \
263 264
	tmpfiles.d/x11.conf

265 266
if HAVE_SYSV_COMPAT
dist_tmpfiles_DATA += \
267
	tmpfiles.d/legacy.conf
268 269
endif

270
dist_systemunit_DATA = \
271 272
	units/graphical.target \
	units/multi-user.target \
273
	units/emergency.service \
274
	units/emergency.target \
275
	units/sysinit.target \
276
	units/basic.target \
277 278
	units/getty.target \
	units/halt.target \
279
	units/kexec.target \
280
	units/local-fs.target \
281
	units/local-fs-pre.target \
Lennart Poettering's avatar
Lennart Poettering committed
282
	units/remote-fs.target \
283
	units/remote-fs-pre.target \
284
	units/cryptsetup.target \
285 286
	units/network.target \
	units/nss-lookup.target \
287
	units/mail-transfer-agent.target \
288
	units/http-daemon.target \
289 290 291
	units/poweroff.target \
	units/reboot.target \
	units/rescue.target \
292
	units/rpcbind.target \
293
	units/time-sync.target \
294
	units/shutdown.target \
295
	units/final.target \
296
	units/umount.target \
297 298 299
	units/sigpwr.target \
	units/sockets.target \
	units/swap.target \
300
	units/systemd-initctl.socket \
301
	units/systemd-stdout-syslog-bridge.socket \
302
	units/systemd-shutdownd.socket \
303
	units/syslog.socket \
304 305
	units/dev-hugepages.mount \
	units/dev-mqueue.mount \
306
	units/sys-kernel-config.mount \
307
	units/sys-kernel-debug.mount \
308
	units/sys-kernel-security.mount \
309
	units/sys-fs-fuse-connections.mount \
310
	units/var-run.mount \
311
	units/media.mount \
312
	units/remount-rootfs.service \
313
	units/printer.target \
314
	units/sound.target \
315
	units/bluetooth.target \
Kay Sievers's avatar
Kay Sievers committed
316
	units/smartcard.target \
317
	units/systemd-readahead-done.timer \
318
	units/systemd-tmpfiles-clean.timer \
319
	units/quotaon.service \
320
	units/systemd-ask-password-wall.path \
321
	units/systemd-ask-password-console.path \
Kay Sievers's avatar
Kay Sievers committed
322
	units/syslog.target
323

324 325 326 327 328
if HAVE_SYSV_COMPAT
dist_systemunit_DATA += \
	units/var-lock.mount
endif

329
nodist_systemunit_DATA = \
330
	units/getty@.service \
331
	units/serial-getty@.service \
332
	units/console-shell.service \
333
	units/systemd-initctl.service \
334
	units/systemd-stdout-syslog-bridge.service \
335
	units/systemd-shutdownd.service \
336
	units/systemd-kmsg-syslogd.service \
337
	units/systemd-modules-load.service \
338
	units/systemd-vconsole-setup.service \
339
	units/systemd-remount-api-vfs.service \
340 341
	units/systemd-update-utmp-runlevel.service \
	units/systemd-update-utmp-shutdown.service \
342 343
	units/systemd-random-seed-save.service \
	units/systemd-random-seed-load.service \
344 345
	units/systemd-readahead-collect.service \
	units/systemd-readahead-replay.service \
346
	units/systemd-readahead-done.service \
347 348
	units/systemd-tmpfiles-setup.service \
	units/systemd-tmpfiles-clean.service \
349
	units/systemd-user-sessions.service \
350
	units/systemd-ask-password-wall.service \
351
	units/systemd-ask-password-console.service \
352
	units/systemd-sysctl.service \
353 354 355
	units/halt.service \
	units/poweroff.service \
	units/reboot.service \
356 357
	units/kexec.service \
	units/fsck@.service \
358
	units/fsck-root.service \
359
	units/quotacheck.service \
360
	units/rescue.service \
361
	units/user@.service
362

363 364 365
dist_userunit_DATA = \
	units/user/default.target \
	units/user/exit.target
366

367 368
nodist_userunit_DATA = \
	units/user/exit.service
369

370
EXTRA_DIST += \
371
	units/getty@.service.m4 \
372
	units/serial-getty@.service.m4 \
373
	units/console-shell.service.m4 \
374
	units/rescue.service.m4 \
375
	units/systemd-initctl.service.in \
376
	units/systemd-stdout-syslog-bridge.service.in \
377
	units/systemd-shutdownd.service.in \
378
	units/systemd-kmsg-syslogd.service.in \
379
	units/systemd-modules-load.service.in \
380
	units/systemd-vconsole-setup.service.in \
381
	units/systemd-remount-api-vfs.service.in \
382 383
	units/systemd-update-utmp-runlevel.service.in \
	units/systemd-update-utmp-shutdown.service.in \
384 385
	units/systemd-random-seed-save.service.in \
	units/systemd-random-seed-load.service.in \
386 387
	units/systemd-readahead-collect.service.in \
	units/systemd-readahead-replay.service.in \
388
	units/systemd-readahead-done.service.in \
389 390
	units/systemd-tmpfiles-setup.service.in \
	units/systemd-tmpfiles-clean.service.in \
391
	units/systemd-user-sessions.service.in \
392
	units/systemd-ask-password-wall.service.in \
393
	units/systemd-ask-password-console.service.in \
394
	units/systemd-sysctl.service.in \
395 396 397
	units/halt.service.in \
	units/poweroff.service.in \
	units/reboot.service.in \
398
	units/kexec.service.in \
399
	units/user/exit.service.in \
400 401
	units/fsck@.service.in \
	units/fsck-root.service.in \
402
	units/quotacheck.service.in \
Kay Sievers's avatar
Kay Sievers committed
403
	units/user@.service.in \
404
	systemd.pc.in \
Kay Sievers's avatar
Kay Sievers committed
405 406
	libsystemd-daemon.pc.in \
	src/libsystemd-daemon.sym \
407
	introspect.awk \
408
	src/73-seat-late.rules.in \
409 410
	src/99-systemd.rules.in \
	man/custom-html.xsl
411

412 413 414 415
if TARGET_FEDORA
dist_systemunit_DATA += \
	units/fedora/prefdm.service \
	units/fedora/rc-local.service \
416
	units/fedora/halt-local.service
417 418
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
419 420
endif

421 422 423 424 425
if TARGET_MANDRIVA
dist_systemunit_DATA += \
	units/mandriva/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
426 427
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
428 429
endif

430 431 432 433 434
if TARGET_FRUGALWARE
dist_systemunit_DATA += \
	units/frugalware/display-manager.service
endif

435 436 437 438
if TARGET_SUSE
dist_systemunit_DATA += \
	units/suse/rc-local.service \
	units/suse/halt-local.service
439 440
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
441 442
endif

Dexter Morgan's avatar
Dexter Morgan committed
443 444 445 446 447
if TARGET_MAGEIA
dist_systemunit_DATA += \
	units/mageia/prefdm.service \
	units/fedora/rc-local.service \
	units/fedora/halt-local.service
448 449
systemgenerator_PROGRAMS += \
	systemd-rc-local-generator
Dexter Morgan's avatar
Dexter Morgan committed
450 451
endif

452 453 454 455 456
if HAVE_PLYMOUTH
dist_systemunit_DATA += \
	units/plymouth-start.service \
	units/plymouth-read-write.service \
	units/plymouth-quit.service \
457
	units/plymouth-quit-wait.service \
458 459 460
	units/plymouth-reboot.service \
	units/plymouth-kexec.service \
	units/plymouth-poweroff.service \
461 462 463 464 465 466 467 468
	units/plymouth-halt.service \
	units/systemd-ask-password-plymouth.path

nodist_systemunit_DATA += \
	units/systemd-ask-password-plymouth.service

EXTRA_DIST += \
	units/systemd-ask-password-plymouth.service.in
469 470
endif

471 472
dist_doc_DATA = \
	README \
473 474
	LICENSE \
	DISTRO_PORTING \
475
	src/sd-daemon.h \
476 477 478
	src/sd-daemon.c \
	src/sd-readahead.h \
	src/sd-readahead.c
479

480
pkgconfigdata_DATA = \
481 482 483
	systemd.pc

pkgconfiglib_DATA = \
484
	libsystemd-daemon.pc
485

486 487 488 489 490
# First passed through sed, followed by intltool
polkitpolicy_in_in_files = \
	src/org.freedesktop.systemd1.policy.in.in

nodist_polkitpolicy_DATA = \
491 492
	$(polkitpolicy_in_files:.policy.in=.policy) \
	$(polkitpolicy_in_in_files:.policy.in.in=.policy)
493 494

EXTRA_DIST += \
495 496
	$(polkitpolicy_in_files) \
	$(polkitpolicy_in_in_files)
497

498
@INTLTOOL_POLICY_RULE@
499

500 501
noinst_LTLIBRARIES = \
	libsystemd-basic.la \
502
	libsystemd-core.la
503 504

libsystemd_basic_la_SOURCES = \
505
	src/util.c \
506
	src/virt.c \
507
	src/label.c \
508 509 510 511 512 513
	src/hashmap.c \
	src/set.c \
	src/strv.c \
	src/conf-parser.c \
	src/socket-util.c \
	src/log.c \
514 515
	src/ratelimit.c \
	src/exit-status.c
516

517 518 519 520 521
libsystemd_basic_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(SELINUX_CFLAGS)

libsystemd_basic_la_LIBADD = \
522 523
	$(SELINUX_LIBS) \
	$(CAP_LIBS)
524

525
libsystemd_core_la_SOURCES = \
526
	src/unit.c \
527 528
	src/job.c \
	src/manager.c \
529
	src/path-lookup.c \
530 531 532 533 534 535 536 537 538 539
	src/load-fragment.c \
	src/service.c \
	src/automount.c \
	src/mount.c \
	src/swap.c \
	src/device.c \
	src/target.c \
	src/snapshot.c \
	src/socket.c \
	src/timer.c \
540
	src/path.c \
541 542
	src/load-dropin.c \
	src/execute.c \
543
	src/utmp-wtmp.c \
544 545 546 547
	src/dbus.c \
	src/dbus-manager.c \
	src/dbus-unit.c \
	src/dbus-job.c \
548 549
	src/dbus-service.c \
	src/dbus-socket.c \
550
	src/dbus-timer.c \
551 552 553 554 555 556 557
	src/dbus-target.c \
	src/dbus-mount.c \
	src/dbus-automount.c \
	src/dbus-swap.c \
	src/dbus-snapshot.c \
	src/dbus-device.c \
	src/dbus-execute.c \
558
	src/dbus-path.c \
559 560 561
	src/cgroup.c \
	src/mount-setup.c \
	src/hostname-setup.c \
562
	src/selinux-setup.c \
563
	src/loopback-setup.c \
564
	src/kmod-setup.c \
565
	src/locale-setup.c \
566
	src/machine-id-setup.c \
567 568 569
	src/specifier.c \
	src/unit-name.c \
	src/fdset.c \
570
	src/namespace.c \
571
	src/tcpwrap.c \
572
	src/cgroup-util.c \
573
	src/condition.c \
574 575 576 577 578
	src/dbus-common.c \
	src/sd-daemon.c \
	src/install.c \
	src/cgroup-attr.c \
	src/sd-id128.c
579

580
nodist_libsystemd_core_la_SOURCES = \
581 582
	src/load-fragment-gperf.c \
	src/load-fragment-gperf-nulstr.c
583

584
EXTRA_DIST += \
585
	src/load-fragment-gperf.gperf.m4
586

587 588 589
libsystemd_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(DBUS_CFLAGS) \
590 591 592 593
	$(UDEV_CFLAGS) \
	$(LIBWRAP_CFLAGS) \
	$(PAM_CFLAGS) \
	$(AUDIT_CFLAGS)
594 595 596 597 598 599

libsystemd_core_la_LIBADD = \
	libsystemd-basic.la \
	$(DBUS_LIBS) \
	$(UDEV_LIBS) \
	$(LIBWRAP_LIBS) \
600
	$(PAM_LIBS) \
601 602
	$(AUDIT_LIBS) \
	$(CAP_LIBS)
603

604 605 606 607
# This is needed because automake is buggy in how it generates the
# rules for C programs, but not Vala programs.  We therefore can't
# list the .h files as dependencies if we want make dist to work.

608
EXTRA_DIST += \
609 610
	${libsystemd_basic_la_SOURCES:.c=.h} \
	${libsystemd_core_la_SOURCES:.c=.h} \
611
	src/macro.h \
612
	src/def.h \
613 614 615 616 617
	src/ioprio.h \
	src/missing.h \
	src/list.h \
	src/securebits.h \
	src/linux/auto_dev-ioctl.h \
618
	src/linux/fanotify.h \
619
	src/initreq.h \
620
	src/sd-readahead.h \
621
	src/special.h \
622
	src/dbus-common.h \
623
	src/bus-errors.h \
624
	src/cgroup-show.h \
625
	src/build.h \
626
	src/shutdownd.h \
627
	src/umount.h \
628
	src/readahead-common.h \
629
	src/ask-password-api.h \
630 631 632 633 634 635
	src/pager.h \
	src/sysfs-show.h \
	src/polkit.h \
	src/dbus-loop.h \
	src/spawn-agent.h \
	src/acl-util.h
636 637

MANPAGES = \
Lennart Poettering's avatar
Lennart Poettering committed
638
	man/systemd.1 \
639 640
	man/systemctl.1 \
	man/systemadm.1 \
641
	man/systemd-cgls.1 \
642
	man/systemd-nspawn.1 \
643
	man/systemd-tmpfiles.8 \
644
	man/systemd-notify.1 \
645
	man/sd_notify.3 \
646
	man/sd_readahead.3 \
647 648 649
	man/sd_booted.3 \
	man/sd_listen_fds.3 \
	man/sd_is_fifo.3 \
650 651
	man/systemd.unit.5 \
	man/systemd.service.5 \
652
	man/systemd.socket.5 \
Lennart Poettering's avatar
Lennart Poettering committed
653
	man/systemd.mount.5 \
654
	man/systemd.automount.5 \
Lennart Poettering's avatar
Lennart Poettering committed
655
	man/systemd.swap.5 \
Lennart Poettering's avatar
Lennart Poettering committed
656
	man/systemd.timer.5 \
Lennart Poettering's avatar
Lennart Poettering committed
657
	man/systemd.path.5 \
658
	man/systemd.target.5 \
659
	man/systemd.device.5 \
660
	man/systemd.snapshot.5 \
661
	man/systemd.exec.5 \
662
	man/daemon.7 \
663
	man/sd-daemon.7 \
664
	man/sd-readahead.7 \
665
	man/runlevel.8 \
Lennart Poettering's avatar
Lennart Poettering committed
666 667 668
	man/telinit.8 \
	man/halt.8 \
	man/shutdown.8 \
669
	man/pam_systemd.8 \
670
	man/systemd.conf.5 \
671
	man/tmpfiles.d.5 \
672
	man/hostname.5 \
673
	man/timezone.5 \
674
	man/machine-id.5 \
Lennart Poettering's avatar
Lennart Poettering committed
675
	man/vconsole.conf.5 \
676
	man/locale.conf.5 \
677
	man/os-release.5 \
678
	man/machine-info.5 \
679
	man/modules-load.d.5 \
680
	man/sysctl.d.5 \
681 682 683 684 685
	man/systemd-ask-password.1 \
	man/sd_pid_get_session.3 \
	man/sd_uid_get_state.3 \
	man/sd_session_is_active.3 \
	man/sd_seat_get_active.3 \
686
	man/sd_get_seats.3
687 688 689 690 691 692 693

MANPAGES_ALIAS = \
	man/reboot.8 \
	man/poweroff.8 \
	man/sd_is_socket.3 \
	man/sd_is_socket_unix.3 \
	man/sd_is_socket_inet.3 \
Lennart Poettering's avatar
Lennart Poettering committed
694
	man/sd_is_mq.3 \
695
	man/sd_notifyf.3 \
Lennart Poettering's avatar
Lennart Poettering committed
696
	man/init.1 \
697 698 699 700 701 702 703 704 705
	man/sd_session_get_uid.3 \
	man/sd_session_get_seat.3 \
	man/sd_pid_get_owner_uid.3 \
	man/sd_uid_is_on_seat.3 \
	man/sd_uid_get_sessions.3 \
	man/sd_uid_get_seats.3 \
	man/sd_seat_get_sessions.3 \
	man/sd_seat_can_multi_session.3 \
	man/sd_get_sessions.3 \
706
	man/sd_get_uids.3
707 708 709 710 711 712

man/reboot.8: man/halt.8
man/poweroff.8: man/halt.8
man/sd_is_socket.3: man/sd_is_fifo.3
man/sd_is_socket_unix.3: man/sd_is_fifo.3
man/sd_is_socket_inet.3: man/sd_is_fifo.3
713
man/sd_is_mq.3: man/sd_is_fifo.3
714 715
man/sd_notifyf.3: man/sd_notify.3
man/init.1: man/systemd.1
716 717 718 719 720 721 722 723 724 725
man/sd_session_get_uid.3: man/sd_session_is_active.3
man/sd_session_get_seat.3: man/sd_session_is_active.3
man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
man/sd_uid_get_seats.3: man/sd_uid_get_state.3
man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
man/sd_get_sessions.3: man/sd_get_seats.3
man/sd_get_uids.3: man/sd_get_seats.3
726 727 728 729

dist_man_MANS = \
	$(MANPAGES) \
	$(MANPAGES_ALIAS)
730 731

nodist_man_MANS = \
732
	man/systemd.special.7
733

734 735 736 737 738 739
XML_FILES = \
	${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}

XML_IN_FILES = \
	${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}

740
dist_noinst_DATA = \
741
	${XML_FILES:.xml=.html}
742

743
nodist_noinst_DATA = \
744
	${XML_IN_FILES:.xml.in=.html}
745 746

EXTRA_DIST += \
747 748 749 750
	$(XML_FILES) \
	$(XML_IN_FILES) \
	${nodist_man_MANS:=.in} \
	${XML_IN_FILES:.xml.in=.html.in}
751

752
systemd_SOURCES = \
753
	src/main.c
754

755 756
systemd_CFLAGS = \
	$(AM_CFLAGS) \
757
	$(DBUS_CFLAGS) \
758
	$(UDEV_CFLAGS)
759 760

systemd_LDADD = \
761
	libsystemd-core.la
762 763

test_engine_SOURCES = \
764
	src/test-engine.c