chiark / gitweb /
add sparse support to detect endianness bug
[elogind.git] / Makefile.am
1 #  This file is part of systemd.
2 #
3 #  Copyright 2011 Lennart Poettering
4 #  Copyright 2011 Kay Sievers
5 #
6 #  systemd is free software; you can redistribute it and/or modify it
7 #  under the terms of the GNU General Public License as published by
8 #  the Free Software Foundation; either version 2 of the License, or
9 #  (at your option) any later version.
10 #
11 #  systemd is distributed in the hope that it will be useful, but
12 #  WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 #  General Public License for more details.
15 #
16 #  You should have received a copy of the GNU General Public License
17 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
18
19 ACLOCAL_AMFLAGS = -I m4
20
21 SUBDIRS = po
22
23 LIBSYSTEMD_LOGIN_CURRENT=2
24 LIBSYSTEMD_LOGIN_REVISION=1
25 LIBSYSTEMD_LOGIN_AGE=2
26
27 LIBSYSTEMD_DAEMON_CURRENT=0
28 LIBSYSTEMD_DAEMON_REVISION=1
29 LIBSYSTEMD_DAEMON_AGE=0
30
31 LIBSYSTEMD_ID128_CURRENT=0
32 LIBSYSTEMD_ID128_REVISION=3
33 LIBSYSTEMD_ID128_AGE=0
34
35 LIBSYSTEMD_JOURNAL_CURRENT=0
36 LIBSYSTEMD_JOURNAL_REVISION=3
37 LIBSYSTEMD_JOURNAL_AGE=0
38
39 # Dirs of external packages
40 dbuspolicydir=@dbuspolicydir@
41 dbussessionservicedir=@dbussessionservicedir@
42 dbussystemservicedir=@dbussystemservicedir@
43 dbusinterfacedir=@dbusinterfacedir@
44 udevrulesdir=@udevrulesdir@
45 pamlibdir=@pamlibdir@
46 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 sysctldir=$(prefix)/lib/sysctl.d
56 usergeneratordir=$(pkglibexecdir)/user-generators
57 pkgincludedir=$(includedir)/systemd
58
59 # And these are the special ones for /
60 rootprefix=@rootprefix@
61 rootbindir=$(rootprefix)/bin
62 rootlibexecdir=$(rootprefix)/lib/systemd
63 systemgeneratordir=$(rootlibexecdir)/system-generators
64 systemshutdowndir=$(rootlibexecdir)/system-shutdown
65 systemunitdir=$(rootprefix)/lib/systemd/system
66
67 CLEANFILES =
68 EXTRA_DIST =
69 INSTALL_EXEC_HOOKS =
70 UNINSTALL_EXEC_HOOKS =
71 INSTALL_DATA_HOOKS =
72 pkginclude_HEADERS =
73 lib_LTLIBRARIES =
74 pkgconfiglib_DATA =
75 polkitpolicy_in_files =
76 dist_udevrules_DATA =
77
78 AM_CPPFLAGS = \
79         -include $(top_builddir)/config.h \
80         -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
81         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
82         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
83         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
84         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
85         -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
86         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
87         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
88         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
89         -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
90         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
91         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
92         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
93         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
94         -DROOTPREFIX=\"$(rootprefix)\" \
95         -DRUNTIME_DIR=\"/run\" \
96         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
97         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
98         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
99         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
100         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
101         -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
102         -DX_SERVER=\"$(bindir)/X\" \
103         -I $(top_srcdir)/src \
104         -I $(top_srcdir)/src/readahead \
105         -I $(top_srcdir)/src/login \
106         -I $(top_srcdir)/src/journal \
107         -I $(top_srcdir)/src/systemd
108
109 if TARGET_GENTOO
110 AM_CPPFLAGS += \
111         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
112         -DKBD_SETFONT=\"/usr/bin/setfont\" \
113         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
114 else
115 if TARGET_ARCH
116 AM_CPPFLAGS += \
117         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
118         -DKBD_SETFONT=\"/usr/bin/setfont\" \
119         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
120 else
121 if TARGET_FRUGALWARE
122 AM_CPPFLAGS += \
123         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
124         -DKBD_SETFONT=\"/usr/bin/setfont\" \
125         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
126 else
127 if TARGET_MANDRIVA
128 AM_CPPFLAGS += \
129         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
130         -DKBD_SETFONT=\"/bin/setfont\" \
131         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
132 else
133 if TARGET_MEEGO
134 AM_CPPFLAGS += \
135         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
136         -DKBD_SETFONT=\"/bin/setfont\" \
137         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
138 else
139 if TARGET_ANGSTROM
140 AM_CPPFLAGS += \
141         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
142         -DKBD_SETFONT=\"/usr/bin/setfont\" \
143         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
144 else
145 if TARGET_MAGEIA
146 AM_CPPFLAGS += \
147         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
148         -DKBD_SETFONT=\"/bin/setfont\" \
149         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
150 else
151 AM_CPPFLAGS += \
152         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
153         -DKBD_SETFONT=\"/bin/setfont\" \
154         -DDEFAULT_FONT=\"latarcyrheb-sun16\"
155 endif
156 endif
157 endif
158 endif
159 endif
160 endif
161 endif
162
163 rootbin_PROGRAMS = \
164         systemctl \
165         systemd-notify \
166         systemd-ask-password \
167         systemd-tty-ask-password-agent \
168         systemd-tmpfiles \
169         systemd-machine-id-setup
170
171 bin_PROGRAMS = \
172         systemd-cgls \
173         systemd-cgtop \
174         systemd-stdio-bridge \
175         systemd-nspawn
176
177 dist_bin_SCRIPTS = \
178         src/systemd-analyze
179
180 rootlibexec_PROGRAMS = \
181         systemd \
182         systemd-cgroups-agent \
183         systemd-initctl \
184         systemd-update-utmp \
185         systemd-shutdownd \
186         systemd-shutdown \
187         systemd-modules-load \
188         systemd-remount-api-vfs \
189         systemd-reply-password \
190         systemd-fsck \
191         systemd-timestamp \
192         systemd-ac-power \
193         systemd-detect-virt \
194         systemd-sysctl
195
196 systemgenerator_PROGRAMS = \
197         systemd-getty-generator
198
199 noinst_PROGRAMS = \
200         test-engine \
201         test-job-type \
202         test-ns \
203         test-loopback \
204         test-hostname \
205         test-daemon \
206         test-cgroup \
207         test-env-replace \
208         test-strv \
209         test-install
210
211 dist_pkgsysconf_DATA = \
212         src/system.conf \
213         src/user.conf
214
215 dist_dbuspolicy_DATA = \
216         src/org.freedesktop.systemd1.conf
217
218 dist_dbussystemservice_DATA = \
219         src/org.freedesktop.systemd1.service
220
221 nodist_udevrules_DATA = \
222         src/99-systemd.rules
223
224 dbusinterface_DATA = \
225         org.freedesktop.systemd1.Manager.xml \
226         org.freedesktop.systemd1.Job.xml \
227         org.freedesktop.systemd1.Unit.xml \
228         org.freedesktop.systemd1.Service.xml \
229         org.freedesktop.systemd1.Socket.xml \
230         org.freedesktop.systemd1.Timer.xml \
231         org.freedesktop.systemd1.Target.xml \
232         org.freedesktop.systemd1.Device.xml \
233         org.freedesktop.systemd1.Mount.xml \
234         org.freedesktop.systemd1.Automount.xml \
235         org.freedesktop.systemd1.Snapshot.xml \
236         org.freedesktop.systemd1.Swap.xml \
237         org.freedesktop.systemd1.Path.xml
238
239 dist_bashcompletion_DATA = \
240         src/systemd-bash-completion.sh
241
242 dist_tmpfiles_DATA = \
243         tmpfiles.d/systemd.conf \
244         tmpfiles.d/tmp.conf \
245         tmpfiles.d/x11.conf
246
247 if HAVE_SYSV_COMPAT
248 dist_tmpfiles_DATA += \
249         tmpfiles.d/legacy.conf
250 endif
251
252 dist_systemunit_DATA = \
253         units/graphical.target \
254         units/multi-user.target \
255         units/emergency.service \
256         units/emergency.target \
257         units/sysinit.target \
258         units/basic.target \
259         units/getty.target \
260         units/halt.target \
261         units/kexec.target \
262         units/local-fs.target \
263         units/local-fs-pre.target \
264         units/remote-fs.target \
265         units/remote-fs-pre.target \
266         units/network.target \
267         units/nss-lookup.target \
268         units/mail-transfer-agent.target \
269         units/http-daemon.target \
270         units/poweroff.target \
271         units/reboot.target \
272         units/rescue.target \
273         units/rpcbind.target \
274         units/time-sync.target \
275         units/shutdown.target \
276         units/final.target \
277         units/umount.target \
278         units/sigpwr.target \
279         units/sockets.target \
280         units/swap.target \
281         units/systemd-initctl.socket \
282         units/systemd-shutdownd.socket \
283         units/syslog.socket \
284         units/dev-hugepages.mount \
285         units/dev-mqueue.mount \
286         units/sys-kernel-config.mount \
287         units/sys-kernel-debug.mount \
288         units/sys-fs-fuse-connections.mount \
289         units/var-run.mount \
290         units/media.mount \
291         units/remount-rootfs.service \
292         units/printer.target \
293         units/sound.target \
294         units/bluetooth.target \
295         units/smartcard.target \
296         units/systemd-tmpfiles-clean.timer \
297         units/quotaon.service \
298         units/systemd-ask-password-wall.path \
299         units/systemd-ask-password-console.path \
300         units/syslog.target
301
302 if HAVE_SYSV_COMPAT
303 dist_systemunit_DATA += \
304         units/var-lock.mount
305 endif
306
307 nodist_systemunit_DATA = \
308         units/getty@.service \
309         units/serial-getty@.service \
310         units/console-shell.service \
311         units/systemd-initctl.service \
312         units/systemd-shutdownd.service \
313         units/systemd-modules-load.service \
314         units/systemd-remount-api-vfs.service \
315         units/systemd-update-utmp-runlevel.service \
316         units/systemd-update-utmp-shutdown.service \
317         units/systemd-tmpfiles-setup.service \
318         units/systemd-tmpfiles-clean.service \
319         units/systemd-ask-password-wall.service \
320         units/systemd-ask-password-console.service \
321         units/systemd-sysctl.service \
322         units/halt.service \
323         units/poweroff.service \
324         units/reboot.service \
325         units/kexec.service \
326         units/fsck@.service \
327         units/fsck-root.service \
328         units/rescue.service \
329         units/user@.service
330
331 dist_userunit_DATA = \
332         units/user/default.target \
333         units/user/exit.target
334
335 nodist_userunit_DATA = \
336         units/user/exit.service
337
338 EXTRA_DIST += \
339         units/getty@.service.m4 \
340         units/serial-getty@.service.m4 \
341         units/console-shell.service.m4 \
342         units/rescue.service.m4 \
343         units/systemd-initctl.service.in \
344         units/systemd-shutdownd.service.in \
345         units/systemd-modules-load.service.in \
346         units/systemd-remount-api-vfs.service.in \
347         units/systemd-update-utmp-runlevel.service.in \
348         units/systemd-update-utmp-shutdown.service.in \
349         units/systemd-tmpfiles-setup.service.in \
350         units/systemd-tmpfiles-clean.service.in \
351         units/systemd-ask-password-wall.service.in \
352         units/systemd-ask-password-console.service.in \
353         units/systemd-sysctl.service.in \
354         units/halt.service.in \
355         units/poweroff.service.in \
356         units/reboot.service.in \
357         units/kexec.service.in \
358         units/user/exit.service.in \
359         units/fsck@.service.in \
360         units/fsck-root.service.in \
361         units/user@.service.in \
362         src/systemd.pc.in \
363         introspect.awk \
364         src/99-systemd.rules.in \
365         man/custom-html.xsl
366
367 if TARGET_FEDORA
368 dist_systemunit_DATA += \
369         units/fedora/prefdm.service \
370         units/fedora/rc-local.service \
371         units/fedora/halt-local.service
372 systemgenerator_PROGRAMS += \
373         systemd-rc-local-generator
374 endif
375
376 if TARGET_MANDRIVA
377 dist_systemunit_DATA += \
378         units/mandriva/prefdm.service \
379         units/fedora/rc-local.service \
380         units/fedora/halt-local.service
381 systemgenerator_PROGRAMS += \
382         systemd-rc-local-generator
383 endif
384
385 if TARGET_FRUGALWARE
386 dist_systemunit_DATA += \
387         units/frugalware/display-manager.service
388 endif
389
390 if TARGET_SUSE
391 dist_systemunit_DATA += \
392         units/suse/rc-local.service \
393         units/suse/halt-local.service
394 systemgenerator_PROGRAMS += \
395         systemd-rc-local-generator
396 endif
397
398 if TARGET_MAGEIA
399 dist_systemunit_DATA += \
400         units/mageia/prefdm.service \
401         units/fedora/rc-local.service \
402         units/fedora/halt-local.service
403 systemgenerator_PROGRAMS += \
404         systemd-rc-local-generator
405 endif
406
407 if HAVE_PLYMOUTH
408 dist_systemunit_DATA += \
409         units/plymouth-start.service \
410         units/plymouth-read-write.service \
411         units/plymouth-quit.service \
412         units/plymouth-quit-wait.service \
413         units/plymouth-reboot.service \
414         units/plymouth-kexec.service \
415         units/plymouth-poweroff.service \
416         units/plymouth-halt.service \
417         units/systemd-ask-password-plymouth.path
418
419 nodist_systemunit_DATA += \
420         units/systemd-ask-password-plymouth.service
421
422 EXTRA_DIST += \
423         units/systemd-ask-password-plymouth.service.in
424 endif
425
426 dist_doc_DATA = \
427         README \
428         NEWS \
429         LICENSE \
430         DISTRO_PORTING
431
432 pkgconfigdata_DATA = \
433         src/systemd.pc
434
435 # First passed through sed, followed by intltool
436 polkitpolicy_in_in_files = \
437         src/org.freedesktop.systemd1.policy.in.in
438
439 nodist_polkitpolicy_DATA = \
440         $(polkitpolicy_in_files:.policy.in=.policy) \
441         $(polkitpolicy_in_in_files:.policy.in.in=.policy)
442
443 EXTRA_DIST += \
444         $(polkitpolicy_in_files) \
445         $(polkitpolicy_in_in_files)
446
447 @INTLTOOL_POLICY_RULE@
448
449 noinst_LTLIBRARIES = \
450         libsystemd-basic.la \
451         libsystemd-core.la
452
453 libsystemd_basic_la_SOURCES = \
454         src/util.c \
455         src/virt.c \
456         src/label.c \
457         src/hashmap.c \
458         src/set.c \
459         src/strv.c \
460         src/conf-parser.c \
461         src/socket-util.c \
462         src/log.c \
463         src/ratelimit.c \
464         src/exit-status.c \
465         src/utf8.c
466
467 libsystemd_basic_la_CFLAGS = \
468         $(AM_CFLAGS) \
469         $(SELINUX_CFLAGS)
470
471 libsystemd_basic_la_LIBADD = \
472         $(SELINUX_LIBS) \
473         $(CAP_LIBS)
474
475 libsystemd_core_la_SOURCES = \
476         src/unit.c \
477         src/job.c \
478         src/manager.c \
479         src/path-lookup.c \
480         src/load-fragment.c \
481         src/service.c \
482         src/automount.c \
483         src/mount.c \
484         src/swap.c \
485         src/device.c \
486         src/target.c \
487         src/snapshot.c \
488         src/socket.c \
489         src/timer.c \
490         src/path.c \
491         src/load-dropin.c \
492         src/execute.c \
493         src/utmp-wtmp.c \
494         src/dbus.c \
495         src/dbus-manager.c \
496         src/dbus-unit.c \
497         src/dbus-job.c \
498         src/dbus-service.c \
499         src/dbus-socket.c \
500         src/dbus-timer.c \
501         src/dbus-target.c \
502         src/dbus-mount.c \
503         src/dbus-automount.c \
504         src/dbus-swap.c \
505         src/dbus-snapshot.c \
506         src/dbus-device.c \
507         src/dbus-execute.c \
508         src/dbus-path.c \
509         src/cgroup.c \
510         src/mount-setup.c \
511         src/hostname-setup.c \
512         src/selinux-setup.c \
513         src/ima-setup.c \
514         src/loopback-setup.c \
515         src/kmod-setup.c \
516         src/locale-setup.c \
517         src/machine-id-setup.c \
518         src/specifier.c \
519         src/unit-name.c \
520         src/fdset.c \
521         src/namespace.c \
522         src/tcpwrap.c \
523         src/cgroup-util.c \
524         src/condition.c \
525         src/dbus-common.c \
526         src/sd-daemon.c \
527         src/install.c \
528         src/cgroup-attr.c \
529         src/sd-id128.c
530
531 nodist_libsystemd_core_la_SOURCES = \
532         src/load-fragment-gperf.c \
533         src/load-fragment-gperf-nulstr.c
534
535 EXTRA_DIST += \
536         src/load-fragment-gperf.gperf.m4
537
538 libsystemd_core_la_CFLAGS = \
539         $(AM_CFLAGS) \
540         $(DBUS_CFLAGS) \
541         $(UDEV_CFLAGS) \
542         $(LIBWRAP_CFLAGS) \
543         $(PAM_CFLAGS) \
544         $(AUDIT_CFLAGS) \
545         $(KMOD_CFLAGS)
546
547 libsystemd_core_la_LIBADD = \
548         libsystemd-basic.la \
549         $(DBUS_LIBS) \
550         $(UDEV_LIBS) \
551         $(LIBWRAP_LIBS) \
552         $(PAM_LIBS) \
553         $(AUDIT_LIBS) \
554         $(CAP_LIBS) \
555         $(KMOD_LIBS)
556
557 # This is needed because automake is buggy in how it generates the
558 # rules for C programs, but not Vala programs.  We therefore can't
559 # list the .h files as dependencies if we want make dist to work.
560
561 EXTRA_DIST += \
562         src/util.h \
563         src/virt.h \
564         src/label.h \
565         src/hashmap.h \
566         src/set.h \
567         src/strv.h \
568         src/conf-parser.h \
569         src/socket-util.h \
570         src/log.h \
571         src/ratelimit.h \
572         src/exit-status.h \
573         src/unit.h \
574         src/job.h \
575         src/manager.h \
576         src/path-lookup.h \
577         src/load-fragment.h \
578         src/service.h \
579         src/automount.h \
580         src/mount.h \
581         src/swap.h \
582         src/device.h \
583         src/target.h \
584         src/snapshot.h \
585         src/socket.h \
586         src/timer.h \
587         src/path.h \
588         src/load-dropin.h \
589         src/execute.h \
590         src/utmp-wtmp.h \
591         src/dbus.h \
592         src/dbus-manager.h \
593         src/dbus-unit.h \
594         src/dbus-job.h \
595         src/dbus-service.h \
596         src/dbus-socket.h \
597         src/dbus-timer.h \
598         src/dbus-target.h \
599         src/dbus-mount.h \
600         src/dbus-automount.h \
601         src/dbus-swap.h \
602         src/dbus-snapshot.h \
603         src/dbus-device.h \
604         src/dbus-execute.h \
605         src/dbus-path.h \
606         src/cgroup.h \
607         src/mount-setup.h \
608         src/hostname-setup.h \
609         src/selinux-setup.h \
610         src/loopback-setup.h \
611         src/kmod-setup.h \
612         src/locale-setup.h \
613         src/machine-id-setup.h \
614         src/specifier.h \
615         src/unit-name.h \
616         src/fdset.h \
617         src/namespace.h \
618         src/tcpwrap.h \
619         src/cgroup-util.h \
620         src/condition.h \
621         src/dbus-common.h \
622         src/install.h \
623         src/cgroup-attr.h \
624         src/macro.h \
625         src/def.h \
626         src/ioprio.h \
627         src/missing.h \
628         src/list.h \
629         src/securebits.h \
630         src/linux/auto_dev-ioctl.h \
631         src/linux/fanotify.h \
632         src/initreq.h \
633         src/special.h \
634         src/dbus-common.h \
635         src/bus-errors.h \
636         src/cgroup-show.h \
637         src/build.h \
638         src/shutdownd.h \
639         src/umount.h \
640         src/ask-password-api.h \
641         src/pager.h \
642         src/sysfs-show.h \
643         src/polkit.h \
644         src/dbus-loop.h \
645         src/spawn-agent.h \
646         src/acl-util.h \
647         src/logs-show.h \
648         src/utf8.h
649
650 MANPAGES = \
651         man/systemd.1 \
652         man/systemctl.1 \
653         man/systemd-cgls.1 \
654         man/systemd-cgtop.1 \
655         man/systemd-nspawn.1 \
656         man/systemd-tmpfiles.8 \
657         man/systemd-notify.1 \
658         man/systemd.unit.5 \
659         man/systemd.service.5 \
660         man/systemd.socket.5 \
661         man/systemd.mount.5 \
662         man/systemd.automount.5 \
663         man/systemd.swap.5 \
664         man/systemd.timer.5 \
665         man/systemd.path.5 \
666         man/systemd.target.5 \
667         man/systemd.device.5 \
668         man/systemd.snapshot.5 \
669         man/systemd.exec.5 \
670         man/systemd.special.7 \
671         man/daemon.7 \
672         man/runlevel.8 \
673         man/telinit.8 \
674         man/halt.8 \
675         man/shutdown.8 \
676         man/pam_systemd.8 \
677         man/systemd.conf.5 \
678         man/tmpfiles.d.5 \
679         man/hostname.5 \
680         man/timezone.5 \
681         man/machine-id.5 \
682         man/locale.conf.5 \
683         man/os-release.5 \
684         man/machine-info.5 \
685         man/modules-load.d.5 \
686         man/sysctl.d.5 \
687         man/systemd-ask-password.1 \
688         man/systemd-cat.1 \
689         man/systemd-machine-id-setup.1 \
690         man/systemd-journald.conf.5 \
691         man/systemd-journalctl.1
692
693 MANPAGES_ALIAS = \
694         man/reboot.8 \
695         man/poweroff.8 \
696         man/init.1
697
698 man/reboot.8: man/halt.8
699 man/poweroff.8: man/halt.8
700 man/init.1: man/systemd.1
701
702 XML_FILES = \
703         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
704
705 if ENABLE_MANPAGES
706 man_MANS = \
707         $(MANPAGES) \
708         $(MANPAGES_ALIAS)
709
710 noinst_DATA = \
711         ${XML_FILES:.xml=.html}
712 endif
713
714 EXTRA_DIST += \
715         $(XML_FILES) \
716         ${XML_FILES:.xml=.html} \
717         $(MANPAGES) \
718         $(MANPAGES_ALIAS)
719
720 systemd_SOURCES = \
721         src/main.c
722
723 systemd_CFLAGS = \
724         $(AM_CFLAGS) \
725         $(DBUS_CFLAGS) \
726         $(UDEV_CFLAGS)
727
728 systemd_LDADD = \
729         libsystemd-core.la
730
731 test_engine_SOURCES = \
732         src/test-engine.c
733
734 test_engine_CFLAGS = $(systemd_CFLAGS)
735 test_engine_LDADD = $(systemd_LDADD)
736
737 test_job_type_SOURCES = \
738         src/test-job-type.c
739
740 test_job_type_CFLAGS = $(systemd_CFLAGS)
741 test_job_type_LDADD = $(systemd_LDADD)
742
743 test_ns_SOURCES = \
744         src/test-ns.c
745
746 test_ns_CFLAGS = $(systemd_CFLAGS)
747 test_ns_LDADD = $(systemd_LDADD)
748
749 test_loopback_SOURCES = \
750         src/test-loopback.c \
751         src/loopback-setup.c
752
753 test_loopback_LDADD = \
754         libsystemd-basic.la
755
756 test_hostname_SOURCES = \
757         src/test-hostname.c \
758         src/hostname-setup.c
759
760 test_hostname_LDADD = \
761         libsystemd-basic.la
762
763 test_daemon_SOURCES = \
764         src/test-daemon.c
765
766 test_daemon_LDADD = \
767         libsystemd-basic.la \
768         libsystemd-daemon.la
769
770 test_cgroup_SOURCES = \
771         src/test-cgroup.c \
772         src/cgroup-util.c
773
774 test_cgroup_LDADD = \
775         libsystemd-basic.la
776
777 test_env_replace_SOURCES = \
778         src/test-env-replace.c
779
780 test_env_replace_LDADD = \
781         libsystemd-basic.la
782
783 test_strv_SOURCES = \
784         src/test-strv.c \
785         src/specifier.c
786
787 test_strv_LDADD = \
788         libsystemd-basic.la
789
790 test_install_SOURCES = \
791         src/test-install.c \
792         src/install.c \
793         src/path-lookup.c \
794         src/unit-name.c
795
796 test_install_CFLAGS = \
797         $(AM_CFLAGS) \
798         $(DBUS_CFLAGS)
799
800 test_install_LDADD = \
801         libsystemd-basic.la
802
803 systemd_initctl_SOURCES = \
804         src/initctl.c \
805         src/dbus-common.c
806
807 systemd_initctl_CFLAGS = \
808         $(AM_CFLAGS) \
809         $(DBUS_CFLAGS)
810
811 systemd_initctl_LDADD = \
812         libsystemd-basic.la \
813         libsystemd-daemon.la \
814         $(DBUS_LIBS)
815
816 systemd_update_utmp_SOURCES = \
817         src/update-utmp.c \
818         src/dbus-common.c \
819         src/utmp-wtmp.c
820
821 systemd_update_utmp_CFLAGS = \
822         $(AM_CFLAGS) \
823         $(DBUS_CFLAGS) \
824         $(AUDIT_CFLAGS)
825
826 systemd_update_utmp_LDADD = \
827         libsystemd-basic.la \
828         $(DBUS_LIBS) \
829         $(AUDIT_LIBS)
830
831 systemd_shutdownd_SOURCES = \
832         src/utmp-wtmp.c \
833         src/shutdownd.c
834
835 systemd_shutdownd_CFLAGS = \
836         $(AM_CFLAGS)
837
838 systemd_shutdownd_LDADD = \
839         libsystemd-basic.la \
840         libsystemd-daemon.la
841
842 systemd_shutdown_SOURCES = \
843         src/mount-setup.c \
844         src/umount.c \
845         src/shutdown.c
846
847 systemd_shutdown_CFLAGS = \
848         $(AM_CFLAGS) \
849         $(UDEV_CFLAGS)
850
851 systemd_shutdown_LDADD = \
852         libsystemd-basic.la \
853         $(UDEV_LIBS)
854
855 systemd_modules_load_SOURCES = \
856         src/modules-load.c
857
858 systemd_modules_load_CFLAGS = \
859         $(KMOD_CFLAGS)
860
861 systemd_modules_load_LDADD = \
862         libsystemd-basic.la \
863         $(KMOD_LIBS)
864
865 systemd_tmpfiles_SOURCES = \
866         src/tmpfiles.c
867
868 systemd_tmpfiles_LDADD = \
869         libsystemd-basic.la
870
871 systemd_machine_id_setup_SOURCES = \
872         src/machine-id-setup.c \
873         src/machine-id-main.c \
874         src/sd-id128.c
875
876 systemd_machine_id_setup_LDADD = \
877         libsystemd-basic.la
878
879 systemd_sysctl_SOURCES = \
880         src/sysctl.c
881
882 systemd_sysctl_LDADD = \
883         libsystemd-basic.la
884
885 systemd_fsck_SOURCES = \
886         src/fsck.c \
887         src/dbus-common.c
888
889 systemd_fsck_CFLAGS = \
890         $(AM_CFLAGS) \
891         $(UDEV_CFLAGS) \
892         $(DBUS_CFLAGS)
893
894 systemd_fsck_LDADD = \
895         libsystemd-basic.la \
896         $(UDEV_LIBS) \
897         $(DBUS_LIBS)
898
899 systemd_timestamp_SOURCES = \
900         src/timestamp.c
901
902 systemd_timestamp_LDADD = \
903         libsystemd-basic.la
904
905 systemd_ac_power_SOURCES = \
906         src/ac-power.c
907
908 systemd_ac_power_CFLAGS = \
909         $(AM_CFLAGS) \
910         $(UDEV_CFLAGS)
911
912 systemd_ac_power_LDADD = \
913         libsystemd-basic.la \
914         $(UDEV_LIBS)
915
916 systemd_detect_virt_SOURCES = \
917         src/detect-virt.c
918
919 systemd_detect_virt_LDADD = \
920         libsystemd-basic.la
921
922 systemd_getty_generator_SOURCES = \
923         src/getty-generator.c \
924         src/unit-name.c
925
926 systemd_getty_generator_LDADD = \
927         libsystemd-basic.la
928
929 systemd_rc_local_generator_SOURCES = \
930         src/rc-local-generator.c
931
932 systemd_rc_local_generator_LDADD = \
933         libsystemd-basic.la
934
935 systemd_remount_api_vfs_SOURCES = \
936         src/remount-api-vfs.c \
937         src/mount-setup.c \
938         src/exit-status.c
939
940 systemd_remount_api_vfs_LDADD = \
941         libsystemd-basic.la
942
943 systemd_cgroups_agent_SOURCES = \
944         src/cgroups-agent.c \
945         src/dbus-common.c
946
947 systemd_cgroups_agent_CFLAGS = \
948         $(AM_CFLAGS) \
949         $(DBUS_CFLAGS)
950
951 systemd_cgroups_agent_LDADD = \
952         libsystemd-basic.la \
953         $(DBUS_LIBS)
954
955 systemctl_SOURCES = \
956         src/systemctl.c \
957         src/utmp-wtmp.c \
958         src/dbus-common.c \
959         src/path-lookup.c \
960         src/cgroup-show.c \
961         src/cgroup-util.c \
962         src/exit-status.c \
963         src/unit-name.c \
964         src/pager.c \
965         src/install.c \
966         src/spawn-agent.c \
967         src/logs-show.c
968
969 systemctl_CFLAGS = \
970         $(AM_CFLAGS) \
971         $(DBUS_CFLAGS)
972
973 systemctl_LDADD = \
974         libsystemd-basic.la \
975         libsystemd-daemon.la \
976         libsystemd-journal.la \
977         libsystemd-id128.la \
978         $(DBUS_LIBS)
979
980 systemd_notify_SOURCES = \
981         src/notify.c \
982         src/readahead/sd-readahead.c
983
984 systemd_notify_LDADD = \
985         libsystemd-basic.la \
986         libsystemd-daemon.la
987
988 systemd_ask_password_SOURCES = \
989         src/ask-password.c \
990         src/ask-password-api.c
991
992 systemd_ask_password_LDADD = \
993         libsystemd-basic.la
994
995 systemd_reply_password_SOURCES = \
996         src/reply-password.c
997
998 systemd_reply_password_LDADD = \
999         libsystemd-basic.la
1000
1001 systemd_cgls_SOURCES = \
1002         src/cgls.c \
1003         src/cgroup-show.c \
1004         src/cgroup-util.c \
1005         src/pager.c
1006
1007 systemd_cgls_LDADD = \
1008         libsystemd-basic.la
1009
1010 systemd_cgtop_SOURCES = \
1011         src/cgtop.c \
1012         src/cgroup-util.c
1013
1014 systemd_cgtop_LDADD = \
1015         libsystemd-basic.la
1016
1017 systemd_nspawn_SOURCES = \
1018         src/nspawn.c \
1019         src/cgroup-util.c \
1020         src/loopback-setup.c
1021
1022 systemd_nspawn_LDADD = \
1023         libsystemd-basic.la \
1024         libsystemd-daemon.la
1025
1026 systemd_stdio_bridge_SOURCES = \
1027         src/bridge.c
1028
1029 systemd_stdio_bridge_LDADD = \
1030         libsystemd-basic.la
1031
1032 systemd_tty_ask_password_agent_SOURCES = \
1033         src/tty-ask-password-agent.c \
1034         src/ask-password-api.c \
1035         src/utmp-wtmp.c
1036
1037 systemd_tty_ask_password_agent_LDADD = \
1038         libsystemd-basic.la
1039
1040 # ------------------------------------------------------------------------------
1041 libsystemd_daemon_la_SOURCES = \
1042         src/sd-daemon.c
1043
1044 libsystemd_daemon_la_CFLAGS = \
1045         $(AM_CFLAGS) \
1046         -fvisibility=hidden \
1047         -DSD_EXPORT_SYMBOLS
1048
1049 libsystemd_daemon_la_LDFLAGS = \
1050         -shared \
1051         -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1052         -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1053
1054 pkginclude_HEADERS += \
1055         src/systemd/sd-daemon.h
1056
1057 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1058 libsystemd-daemon-install-hook:
1059         if test "$(libdir)" != "$(rootlibdir)"; then \
1060                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1061                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1062                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1063                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1064                 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1065         fi
1066
1067 INSTALL_EXEC_HOOKS += \
1068         libsystemd-daemon-install-hook
1069
1070 libsystemd-daemon-uninstall-hook:
1071         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1072
1073 UNINSTALL_EXEC_HOOKS += \
1074         libsystemd-daemon-uninstall-hook
1075
1076 lib_LTLIBRARIES += \
1077         libsystemd-daemon.la
1078
1079 pkgconfiglib_DATA += \
1080         src/libsystemd-daemon.pc
1081
1082 MANPAGES += \
1083         man/sd-daemon.7 \
1084         man/sd_notify.3 \
1085         man/sd_listen_fds.3 \
1086         man/sd_is_fifo.3 \
1087         man/sd_booted.3
1088
1089 MANPAGES_ALIAS += \
1090         man/sd_is_socket.3 \
1091         man/sd_is_socket_unix.3 \
1092         man/sd_is_socket_inet.3 \
1093         man/sd_is_mq.3 \
1094         man/sd_notifyf.3
1095
1096 man/sd_is_socket.3: man/sd_is_fifo.3
1097 man/sd_is_socket_unix.3: man/sd_is_fifo.3
1098 man/sd_is_socket_inet.3: man/sd_is_fifo.3
1099 man/sd_is_mq.3: man/sd_is_fifo.3
1100 man/sd_notifyf.3: man/sd_notify.3
1101
1102 EXTRA_DIST += \
1103         src/libsystemd-daemon.pc.in \
1104         src/libsystemd-daemon.sym
1105
1106 # ------------------------------------------------------------------------------
1107 libsystemd_id128_la_SOURCES = \
1108         src/sd-id128.c
1109
1110 libsystemd_id128_la_CFLAGS = \
1111         $(AM_CFLAGS) \
1112         -fvisibility=hidden
1113
1114 libsystemd_id128_la_LDFLAGS = \
1115         -shared \
1116         -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
1117         -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128.sym
1118
1119 libsystemd_id128_la_LIBADD = \
1120         libsystemd-basic.la
1121
1122 test_id128_SOURCES = \
1123         src/test-id128.c \
1124         src/sd-id128.c
1125
1126 test_id128_LDADD = \
1127         libsystemd-basic.la
1128
1129 noinst_PROGRAMS += \
1130         test-id128
1131
1132 pkginclude_HEADERS += \
1133         src/systemd/sd-id128.h
1134
1135 lib_LTLIBRARIES += \
1136         libsystemd-id128.la
1137
1138 pkgconfiglib_DATA += \
1139         src/libsystemd-id128.pc
1140
1141 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1142 libsystemd-id128-install-hook:
1143         if test "$(libdir)" != "$(rootlibdir)"; then \
1144                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1145                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \
1146                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1147                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \
1148                 mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \
1149         fi
1150
1151 INSTALL_EXEC_HOOKS += \
1152         libsystemd-id128-install-hook
1153
1154 libsystemd-id128-uninstall-hook:
1155         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
1156
1157 UNINSTALL_EXEC_HOOKS += \
1158         libsystemd-id128-uninstall-hook
1159
1160 EXTRA_DIST += \
1161         src/libsystemd-id128.pc.in \
1162         src/libsystemd-id128.sym
1163
1164 # ------------------------------------------------------------------------------
1165 systemd_journald_SOURCES = \
1166         src/journal/journald.c \
1167         src/journal/sd-journal.c \
1168         src/journal/journal-file.c \
1169         src/journal/lookup3.c \
1170         src/journal/journal-rate-limit.c \
1171         src/sd-id128.c \
1172         src/cgroup-util.c
1173
1174 if HAVE_ACL
1175 systemd_journald_SOURCES += \
1176         src/acl-util.c
1177 endif
1178
1179 nodist_systemd_journald_SOURCES = \
1180         src/journal/journald-gperf.c
1181
1182 systemd_journald_CFLAGS = \
1183         $(AM_CFLAGS) \
1184         $(ACL_CFLAGS)
1185
1186 systemd_journald_LDADD = \
1187         libsystemd-basic.la \
1188         libsystemd-daemon.la \
1189         libsystemd-login.la \
1190         $(ACL_LIBS)
1191
1192 if HAVE_XZ
1193 systemd_journald_SOURCES += \
1194         src/journal/compress.c
1195 systemd_journald_CFLAGS += \
1196         $(XZ_CFLAGS)
1197 systemd_journald_LDADD += \
1198         $(XZ_LIBS)
1199 endif
1200
1201 systemd_cat_SOURCES = \
1202         src/journal/cat.c
1203
1204 systemd_cat_LDADD = \
1205         libsystemd-basic.la \
1206         libsystemd-journal.la
1207
1208 systemd_journalctl_SOURCES = \
1209         src/journal/journalctl.c \
1210         src/pager.c \
1211         src/logs-show.c
1212
1213 systemd_journalctl_LDADD = \
1214         libsystemd-basic.la \
1215         libsystemd-journal.la \
1216         libsystemd-id128.la
1217
1218 if HAVE_XZ
1219 systemd_journalctl_SOURCES += \
1220         src/journal/compress.c
1221 systemd_journalctl_CFLAGS = \
1222         $(AM_CFLAGS) \
1223         $(XZ_CFLAGS)
1224 systemd_journalctl_LDADD += \
1225         $(XZ_LIBS)
1226 endif
1227
1228 test_journal_SOURCES = \
1229         src/journal/test-journal.c \
1230         src/journal/sd-journal.c \
1231         src/journal/journal-file.c \
1232         src/journal/lookup3.c \
1233         src/journal/journal-send.c \
1234         src/sd-id128.c
1235
1236 test_journal_LDADD = \
1237         libsystemd-basic.la
1238
1239 if HAVE_XZ
1240 test_journal_SOURCES += \
1241         src/journal/compress.c
1242
1243 test_journal_CFLAGS = \
1244         $(AM_CFLAGS) \
1245         $(XZ_CFLAGS)
1246
1247 test_journal_LDADD += \
1248         $(XZ_LIBS)
1249 endif
1250
1251 libsystemd_journal_la_SOURCES = \
1252         src/journal/sd-journal.c \
1253         src/journal/journal-file.c \
1254         src/journal/lookup3.c \
1255         src/journal/journal-send.c
1256
1257 libsystemd_journal_la_CFLAGS = \
1258         $(AM_CFLAGS) \
1259         -fvisibility=hidden
1260
1261 libsystemd_journal_la_LDFLAGS = \
1262         -shared \
1263         -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
1264         -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
1265
1266 libsystemd_journal_la_LIBADD = \
1267         libsystemd-basic.la \
1268         libsystemd-id128.la
1269
1270 if HAVE_XZ
1271 libsystemd_journal_la_SOURCES += \
1272         src/journal/compress.c
1273
1274 libsystemd_journal_la_CFLAGS += \
1275         $(XZ_CFLAGS)
1276
1277 libsystemd_journal_la_LIBADD += \
1278         $(XZ_LIBS)
1279 endif
1280
1281 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1282 libsystemd-journal-install-hook:
1283         if test "$(libdir)" != "$(rootlibdir)"; then \
1284                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1285                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
1286                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1287                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
1288                 mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
1289         fi
1290
1291 INSTALL_EXEC_HOOKS += \
1292         libsystemd-journal-install-hook
1293
1294 libsystemd-journal-uninstall-hook:
1295         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
1296
1297 UNINSTALL_EXEC_HOOKS += \
1298         libsystemd-journal-uninstall-hook
1299
1300 noinst_PROGRAMS += \
1301         test-journal
1302
1303 pkginclude_HEADERS += \
1304         src/systemd/sd-journal.h \
1305         src/systemd/sd-messages.h
1306
1307 lib_LTLIBRARIES += \
1308         libsystemd-journal.la
1309
1310 rootlibexec_PROGRAMS += \
1311         systemd-journald
1312
1313 rootbin_PROGRAMS += \
1314         systemd-journalctl
1315
1316 bin_PROGRAMS += \
1317         systemd-cat
1318
1319 dist_systemunit_DATA += \
1320         units/systemd-journald.socket
1321
1322 nodist_systemunit_DATA += \
1323         units/systemd-journald.service
1324
1325 dist_pkgsysconf_DATA += \
1326         src/journal/systemd-journald.conf
1327
1328 pkgconfiglib_DATA += \
1329         src/journal/libsystemd-journal.pc
1330
1331 journal-install-data-hook:
1332         $(MKDIR_P) -m 0755 \
1333                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1334                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1335         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1336                 rm -f systemd-journald.socket && \
1337                 $(LN_S) ../systemd-journald.socket )
1338         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1339                 rm -f systemd-journald.service && \
1340                 $(LN_S) ../systemd-journald.service )
1341
1342 INSTALL_DATA_HOOKS += \
1343         journal-install-data-hook
1344
1345 EXTRA_DIST += \
1346         src/journal/journald.h \
1347         src/journal/journal-def.h \
1348         src/journal/journal-internal.h \
1349         src/journal/journal-file.h \
1350         src/journal/lookup3.h \
1351         src/journal/compress.h \
1352         src/journal/journal-rate-limit.h \
1353         src/journal/libsystemd-journal.pc.in \
1354         src/journal/libsystemd-journal.sym \
1355         units/systemd-journald.service.in \
1356         src/journal/journald-gperf.gperf
1357
1358 CLEANFILES += \
1359         src/journal/journald-gperf.c
1360
1361 # ------------------------------------------------------------------------------
1362 if ENABLE_COREDUMP
1363 systemd_coredump_SOURCES = \
1364         src/journal/coredump.c
1365
1366 systemd_coredump_LDADD = \
1367         libsystemd-basic.la \
1368         libsystemd-journal.la \
1369         libsystemd-login.la
1370
1371 rootlibexec_PROGRAMS += \
1372         systemd-coredump
1373
1374 sysctl_DATA = \
1375         sysctl.d/coredump.conf
1376
1377 EXTRA_DIST += \
1378         sysctl.d/coredump.conf.in
1379
1380 CLEANFILES += \
1381         sysctl.d/coredump.conf
1382 endif
1383
1384 # ------------------------------------------------------------------------------
1385 if ENABLE_BINFMT
1386 systemd_binfmt_SOURCES = \
1387         src/binfmt/binfmt.c
1388
1389 systemd_binfmt_LDADD = \
1390         libsystemd-basic.la
1391
1392 rootlibexec_PROGRAMS += \
1393         systemd-binfmt
1394
1395 dist_systemunit_DATA += \
1396         units/proc-sys-fs-binfmt_misc.automount \
1397         units/proc-sys-fs-binfmt_misc.mount
1398
1399 nodist_systemunit_DATA += \
1400         units/systemd-binfmt.service
1401
1402 binfmt-install-data-hook:
1403         $(MKDIR_P) -m 0755 \
1404                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1405                 $(DESTDIR)$(sysconfdir)/binfmt.d \
1406                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1407         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1408                 rm -f systemd-binfmt.service \
1409                         proc-sys-fs-binfmt_misc.automount && \
1410                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1411                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1412
1413 INSTALL_DATA_HOOKS += \
1414         binfmt-install-data-hook
1415
1416 MANPAGES += \
1417         man/binfmt.d.5
1418
1419 EXTRA_DIST += \
1420         units/systemd-binfmt.service.in
1421 endif
1422
1423 # ------------------------------------------------------------------------------
1424 if ENABLE_VCONSOLE
1425 systemd_vconsole_setup_SOURCES = \
1426         src/vconsole/vconsole-setup.c
1427
1428 systemd_vconsole_setup_LDADD = \
1429         libsystemd-basic.la
1430
1431 rootlibexec_PROGRAMS += \
1432         systemd-vconsole-setup
1433
1434 nodist_systemunit_DATA += \
1435         units/systemd-vconsole-setup.service
1436
1437 vconsole-install-data-hook:
1438         $(MKDIR_P) -m 0755 \
1439                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1440         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1441                 rm -f systemd-vconsole-setup.service && \
1442                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service )
1443
1444 INSTALL_DATA_HOOKS += \
1445         vconsole-install-data-hook
1446
1447 MANPAGES += \
1448         man/vconsole.conf.5
1449
1450 EXTRA_DIST += \
1451         units/systemd-vconsole-setup.service.in
1452 endif
1453
1454 # ------------------------------------------------------------------------------
1455 if ENABLE_READAHEAD
1456 systemd_readahead_collect_SOURCES = \
1457         src/readahead/readahead-collect.c \
1458         src/readahead/readahead-common.c
1459
1460 systemd_readahead_collect_LDADD = \
1461         libsystemd-basic.la \
1462         libsystemd-daemon.la \
1463         $(UDEV_LIBS)
1464
1465 systemd_readahead_collect_CFLAGS = \
1466         $(AM_CFLAGS) \
1467         $(UDEV_CFLAGS)
1468
1469 systemd_readahead_replay_SOURCES = \
1470         src/readahead/readahead-replay.c \
1471         src/readahead/readahead-common.c
1472
1473 systemd_readahead_replay_CFLAGS = \
1474         $(AM_CFLAGS) \
1475         $(UDEV_CFLAGS)
1476
1477 systemd_readahead_replay_LDADD = \
1478         libsystemd-basic.la \
1479         libsystemd-daemon.la \
1480         $(UDEV_LIBS)
1481
1482 rootlibexec_PROGRAMS += \
1483         systemd-readahead-collect \
1484         systemd-readahead-replay
1485
1486 dist_systemunit_DATA += \
1487         units/systemd-readahead-done.timer
1488
1489 nodist_systemunit_DATA += \
1490         units/systemd-readahead-collect.service \
1491         units/systemd-readahead-replay.service \
1492         units/systemd-readahead-done.service
1493
1494 EXTRA_DIST += \
1495         src/systemd/sd-readahead.h \
1496         src/readahead/readahead-common.h \
1497         units/systemd-readahead-collect.service.in \
1498         units/systemd-readahead-replay.service.in \
1499         units/systemd-readahead-done.service.in
1500
1501 MANPAGES += \
1502         man/sd_readahead.3 \
1503         man/sd-readahead.7
1504 endif
1505
1506 # ------------------------------------------------------------------------------
1507 if ENABLE_QUOTACHECK
1508 rootlibexec_PROGRAMS += \
1509         systemd-quotacheck
1510
1511 nodist_systemunit_DATA += \
1512         units/quotacheck.service
1513
1514 EXTRA_DIST += \
1515         units/quotacheck.service.in
1516
1517 systemd_quotacheck_SOURCES = \
1518         src/quotacheck.c
1519
1520 systemd_quotacheck_LDADD = \
1521         libsystemd-basic.la
1522 endif
1523
1524 # ------------------------------------------------------------------------------
1525 if ENABLE_RANDOMSEED
1526 rootlibexec_PROGRAMS += \
1527         systemd-random-seed
1528
1529 nodist_systemunit_DATA += \
1530         units/systemd-random-seed-save.service \
1531         units/systemd-random-seed-load.service
1532
1533 EXTRA_DIST += \
1534         units/systemd-random-seed-save.service.in \
1535         units/systemd-random-seed-load.service.in
1536
1537 systemd_random_seed_SOURCES = \
1538         src/random-seed.c
1539
1540 systemd_random_seed_LDADD = \
1541         libsystemd-basic.la
1542
1543 randomseed-install-data-hook:
1544         $(MKDIR_P) -m 0755 \
1545                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1546                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1547         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1548                 rm -f systemd-random-seed-save.service && \
1549                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1550         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1551                 rm -f systemd-random-seed-load.service && \
1552                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service )
1553
1554 INSTALL_DATA_HOOKS += \
1555         randomseed-install-data-hook
1556 endif
1557
1558 # ------------------------------------------------------------------------------
1559 if HAVE_LIBCRYPTSETUP
1560 rootlibexec_PROGRAMS += \
1561         systemd-cryptsetup
1562
1563 systemgenerator_PROGRAMS += \
1564         systemd-cryptsetup-generator
1565
1566 dist_systemunit_DATA += \
1567         units/cryptsetup.target
1568
1569 systemd_cryptsetup_SOURCES = \
1570         src/cryptsetup/cryptsetup.c \
1571         src/ask-password-api.c
1572
1573 systemd_cryptsetup_CFLAGS = \
1574         $(AM_CFLAGS) \
1575         $(LIBCRYPTSETUP_CFLAGS) \
1576         $(UDEV_CFLAGS)
1577
1578 systemd_cryptsetup_LDADD = \
1579         $(LIBCRYPTSETUP_LIBS) \
1580         $(UDEV_LIBS) \
1581         libsystemd-basic.la
1582
1583 systemd_cryptsetup_generator_SOURCES = \
1584         src/cryptsetup/cryptsetup-generator.c \
1585         src/unit-name.c
1586
1587 systemd_cryptsetup_generator_LDADD = \
1588         libsystemd-basic.la
1589
1590 cryptsetup-install-data-hook:
1591         $(MKDIR_P) -m 0755 \
1592                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1593         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1594                 rm -f cryptsetup.target && \
1595                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1596
1597 INSTALL_DATA_HOOKS += \
1598         cryptsetup-install-data-hook
1599 endif
1600
1601 # ------------------------------------------------------------------------------
1602 if ENABLE_HOSTNAMED
1603 systemd_hostnamed_SOURCES = \
1604         src/hostname/hostnamed.c \
1605         src/dbus-common.c \
1606         src/polkit.c
1607
1608 systemd_hostnamed_CFLAGS = \
1609         $(AM_CFLAGS) \
1610         $(DBUS_CFLAGS)
1611
1612 systemd_hostnamed_LDADD = \
1613         libsystemd-basic.la \
1614         libsystemd-daemon.la \
1615         $(DBUS_LIBS)
1616
1617 rootlibexec_PROGRAMS += \
1618         systemd-hostnamed
1619
1620 nodist_systemunit_DATA += \
1621         units/systemd-hostnamed.service
1622
1623 dist_dbuspolicy_DATA += \
1624         src/hostname/org.freedesktop.hostname1.conf
1625
1626 dist_dbussystemservice_DATA += \
1627         src/hostname/org.freedesktop.hostname1.service
1628
1629 polkitpolicy_in_files += \
1630         src/hostname/org.freedesktop.hostname1.policy.in
1631
1632 dbusinterface_DATA += \
1633         org.freedesktop.hostname1.xml
1634
1635 org.freedesktop.hostname1.xml: systemd-hostnamed
1636         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1637                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1638                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1639
1640 hostnamed-install-data-hook:
1641         ( cd $(DESTDIR)$(systemunitdir) && \
1642                 rm -f dbus-org.freedesktop.hostname1.service && \
1643                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1644
1645 INSTALL_DATA_HOOKS += \
1646         hostnamed-install-data-hook
1647
1648 EXTRA_DIST += \
1649         units/systemd-hostnamed.service.in
1650 endif
1651
1652 # ------------------------------------------------------------------------------
1653 if ENABLE_LOCALED
1654 systemd_localed_SOURCES = \
1655         src/locale/localed.c \
1656         src/dbus-common.c \
1657         src/polkit.c
1658
1659 systemd_localed_CFLAGS = \
1660         $(AM_CFLAGS) \
1661         $(DBUS_CFLAGS)
1662
1663 systemd_localed_LDADD = \
1664         libsystemd-basic.la \
1665         libsystemd-daemon.la \
1666         $(DBUS_LIBS)
1667
1668 nodist_systemunit_DATA += \
1669         units/systemd-localed.service
1670
1671 rootlibexec_PROGRAMS += \
1672         systemd-localed
1673
1674 dist_dbuspolicy_DATA += \
1675         src/locale/org.freedesktop.locale1.conf
1676
1677 dist_dbussystemservice_DATA += \
1678         src/locale/org.freedesktop.locale1.service
1679
1680 polkitpolicy_in_files += \
1681         src/locale/org.freedesktop.locale1.policy.in
1682
1683 dbusinterface_DATA += \
1684         org.freedesktop.locale1.xml
1685
1686 org.freedesktop.locale1.xml: systemd-localed
1687         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1688                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1689                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1690
1691 localed-install-data-hook:
1692         ( cd $(DESTDIR)$(systemunitdir) && \
1693                 rm -f dbus-org.freedesktop.locale1.service && \
1694                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1695
1696 INSTALL_DATA_HOOKS += \
1697         localed-install-data-hook
1698
1699 EXTRA_DIST += \
1700         units/systemd-localed.service.in
1701
1702 dist_pkgdata_DATA = \
1703         src/locale/kbd-model-map
1704
1705 dist_noinst_SCRIPT = \
1706         src/locale/generate-kbd-model-map
1707
1708 update-kbd-model-map:
1709         src/locale/generate-kbd-model-map > src/locale/kbd-model-map
1710
1711 endif
1712
1713 # ------------------------------------------------------------------------------
1714 if ENABLE_TIMEDATED
1715 systemd_timedated_SOURCES = \
1716         src/timedate/timedated.c \
1717         src/dbus-common.c \
1718         src/polkit.c
1719
1720 systemd_timedated_CFLAGS = \
1721         $(AM_CFLAGS) \
1722         $(DBUS_CFLAGS)
1723
1724 systemd_timedated_LDADD = \
1725         libsystemd-basic.la \
1726         libsystemd-daemon.la \
1727         $(DBUS_LIBS)
1728
1729 rootlibexec_PROGRAMS += \
1730         systemd-timedated
1731
1732 dist_dbussystemservice_DATA += \
1733         src/timedate/org.freedesktop.timedate1.service
1734
1735 dist_dbuspolicy_DATA += \
1736         src/timedate/org.freedesktop.timedate1.conf
1737
1738 nodist_systemunit_DATA += \
1739         units/systemd-timedated.service
1740
1741 polkitpolicy_in_files += \
1742         src/timedate/org.freedesktop.timedate1.policy.in
1743
1744 org.freedesktop.timedate1.xml: systemd-timedated
1745         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1746                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1747                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1748
1749 dbusinterface_DATA += \
1750         org.freedesktop.timedate1.xml
1751
1752 timedated-install-data-hook:
1753         ( cd $(DESTDIR)$(systemunitdir) && \
1754                 rm -f dbus-org.freedesktop.timedate1.service  && \
1755                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1756
1757 INSTALL_DATA_HOOKS += \
1758         timedated-install-data-hook
1759
1760 EXTRA_DIST += \
1761         units/systemd-timedated.service.in
1762 endif
1763
1764 # ------------------------------------------------------------------------------
1765 if ENABLE_LOGIND
1766 systemd_logind_SOURCES = \
1767         src/login/logind.c \
1768         src/login/logind-dbus.c \
1769         src/login/logind-device.c \
1770         src/login/logind-seat.c \
1771         src/login/logind-seat-dbus.c \
1772         src/login/logind-session.c \
1773         src/login/logind-session-dbus.c \
1774         src/login/logind-user.c \
1775         src/login/logind-user-dbus.c \
1776         src/dbus-common.c \
1777         src/dbus-loop.c \
1778         src/cgroup-util.c \
1779         src/polkit.c
1780
1781 nodist_systemd_logind_SOURCES = \
1782         src/login/logind-gperf.c
1783
1784 if HAVE_ACL
1785 systemd_logind_SOURCES += \
1786         src/login/logind-acl.c \
1787         src/acl-util.c
1788 endif
1789
1790 systemd_logind_CFLAGS = \
1791         $(AM_CFLAGS) \
1792         $(DBUS_CFLAGS) \
1793         $(UDEV_CFLAGS) \
1794         $(ACL_CFLAGS)
1795
1796 systemd_logind_LDADD = \
1797         libsystemd-basic.la \
1798         libsystemd-daemon.la \
1799         $(DBUS_LIBS) \
1800         $(UDEV_LIBS) \
1801         $(ACL_LIBS)
1802
1803 systemd_user_sessions_SOURCES = \
1804         src/login/user-sessions.c \
1805         src/cgroup-util.c
1806
1807 systemd_user_sessions_LDADD = \
1808         libsystemd-basic.la
1809
1810 rootlibexec_PROGRAMS += \
1811         systemd-logind \
1812         systemd-user-sessions
1813
1814 systemd_loginctl_SOURCES = \
1815         src/login/loginctl.c \
1816         src/login/sysfs-show.c \
1817         src/dbus-common.c \
1818         src/cgroup-show.c \
1819         src/cgroup-util.c \
1820         src/pager.c
1821
1822 systemd_loginctl_CFLAGS = \
1823         $(AM_CFLAGS) \
1824         $(DBUS_CFLAGS) \
1825         $(UDEV_CFLAGS)
1826
1827 systemd_loginctl_LDADD = \
1828         libsystemd-basic.la \
1829         $(DBUS_LIBS) \
1830         $(UDEV_LIBS)
1831
1832 rootbin_PROGRAMS += \
1833         systemd-loginctl
1834
1835 test_login_SOURCES = \
1836         src/login/test-login.c
1837
1838 test_login_LDADD = \
1839         libsystemd-basic.la \
1840         libsystemd-login.la
1841
1842 noinst_PROGRAMS += \
1843         test-login
1844
1845 libsystemd_login_la_SOURCES = \
1846         src/login/sd-login.c \
1847         src/cgroup-util.c
1848
1849 libsystemd_login_la_CFLAGS = \
1850         $(AM_CFLAGS) \
1851         -fvisibility=hidden
1852
1853 libsystemd_login_la_LDFLAGS = \
1854         -shared \
1855         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1856         -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
1857
1858 libsystemd_login_la_LIBADD = \
1859         libsystemd-basic.la
1860
1861 if HAVE_PAM
1862 pam_systemd_la_SOURCES = \
1863         src/login/pam-module.c \
1864         src/dbus-common.c
1865
1866 pam_systemd_la_CFLAGS = \
1867         $(AM_CFLAGS) \
1868         $(PAM_CFLAGS) \
1869         $(DBUS_CFLAGS) \
1870         -fvisibility=hidden
1871
1872 pam_systemd_la_LDFLAGS = \
1873         -module \
1874         -export-dynamic \
1875         -avoid-version \
1876         -shared \
1877         -export-symbols-regex '^pam_sm_.*'
1878
1879 pam_systemd_la_LIBADD = \
1880         libsystemd-basic.la \
1881         libsystemd-daemon.la \
1882         $(PAM_LIBS) \
1883         $(DBUS_LIBS)
1884
1885 pamlib_LTLIBRARIES = \
1886         pam_systemd.la
1887 endif
1888
1889 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1890 libsystemd-login-install-hook:
1891         if test "$(libdir)" != "$(rootlibdir)"; then \
1892                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1893                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1894                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1895                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1896                 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1897         fi
1898
1899 INSTALL_EXEC_HOOKS += \
1900         libsystemd-login-install-hook
1901
1902 libsystemd-login-uninstall-hook:
1903         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1904
1905 UNINSTALL_EXEC_HOOKS += \
1906         libsystemd-login-uninstall-hook
1907
1908 nodist_systemunit_DATA += \
1909         units/systemd-logind.service \
1910         units/systemd-user-sessions.service
1911
1912 dist_dbussystemservice_DATA += \
1913         src/login/org.freedesktop.login1.service
1914
1915 dist_dbuspolicy_DATA += \
1916         src/login/org.freedesktop.login1.conf
1917
1918 dist_pkgsysconf_DATA += \
1919         src/login/systemd-logind.conf
1920
1921 pkginclude_HEADERS += \
1922         src/systemd/sd-login.h
1923
1924 lib_LTLIBRARIES += \
1925         libsystemd-login.la
1926
1927 pkgconfiglib_DATA += \
1928         src/login/libsystemd-login.pc
1929
1930 polkitpolicy_in_files += \
1931         src/login/org.freedesktop.login1.policy.in
1932
1933 logind-install-data-hook:
1934         $(MKDIR_P) -m 0755 \
1935                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1936                 $(DESTDIR)$(localstatedir)/lib/systemd
1937         ( cd $(DESTDIR)$(systemunitdir) && \
1938                 rm -f dbus-org.freedesktop.login1.service && \
1939                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
1940         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1941                 rm -f systemd-logind.service systemd-user-sessions.service && \
1942                 $(LN_S) ../systemd-logind.service systemd-logind.service && \
1943                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1944
1945 INSTALL_DATA_HOOKS += \
1946         logind-install-data-hook
1947
1948 systemd_multi_seat_x_SOURCES = \
1949         src/login/multi-seat-x.c
1950
1951 systemd_multi_seat_x_CFLAGS = \
1952         $(AM_CFLAGS) \
1953         $(UDEV_CFLAGS)
1954
1955 systemd_multi_seat_x_LDADD = \
1956         libsystemd-basic.la \
1957         $(UDEV_LIBS)
1958
1959 rootlibexec_PROGRAMS += \
1960         systemd-multi-seat-x
1961
1962 systemd_uaccess_SOURCES = \
1963         src/login/uaccess.c
1964
1965 if HAVE_ACL
1966 systemd_uaccess_SOURCES += \
1967         src/login/logind-acl.c \
1968         src/acl-util.c
1969 endif
1970
1971 systemd_uaccess_CFLAGS = \
1972         $(AM_CFLAGS) \
1973         $(UDEV_CFLAGS) \
1974         $(ACL_CFLAGS)
1975
1976 systemd_uaccess_LDADD = \
1977         libsystemd-basic.la \
1978         libsystemd-daemon.la \
1979         libsystemd-login.la \
1980         $(UDEV_LIBS) \
1981         $(ACL_LIBS)
1982
1983 rootlibexec_PROGRAMS += \
1984         systemd-uaccess
1985
1986 dist_udevrules_DATA += \
1987         src/login/70-uaccess.rules
1988
1989 dist_udevrules_DATA += \
1990         src/login/71-seat.rules
1991
1992 nodist_udevrules_DATA += \
1993         src/login/73-seat-late.rules
1994
1995 MANPAGES += \
1996         man/systemd-logind.conf.5 \
1997         man/sd-login.7 \
1998         man/systemd-loginctl.1 \
1999         man/sd_login_monitor_new.3 \
2000         man/sd_pid_get_session.3 \
2001         man/sd_uid_get_state.3 \
2002         man/sd_session_is_active.3 \
2003         man/sd_seat_get_active.3 \
2004         man/sd_get_seats.3
2005
2006 MANPAGES_ALIAS += \
2007         man/sd_login_monitor_unref.3 \
2008         man/sd_login_monitor_flush.3 \
2009         man/sd_login_monitor_get_fd.3 \
2010         man/sd_session_get_uid.3 \
2011         man/sd_session_get_seat.3 \
2012         man/sd_session_get_service.3 \
2013         man/sd_session_get_type.3 \
2014         man/sd_session_get_class.3 \
2015         man/sd_session_get_display.3 \
2016         man/sd_pid_get_owner_uid.3 \
2017         man/sd_pid_get_unit.3 \
2018         man/sd_uid_is_on_seat.3 \
2019         man/sd_uid_get_sessions.3 \
2020         man/sd_uid_get_seats.3 \
2021         man/sd_seat_get_sessions.3 \
2022         man/sd_seat_can_multi_session.3 \
2023         man/sd_get_sessions.3 \
2024         man/sd_get_uids.3
2025
2026 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
2027 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
2028 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
2029 man/sd_session_get_uid.3: man/sd_session_is_active.3
2030 man/sd_session_get_seat.3: man/sd_session_is_active.3
2031 man/sd_session_get_service.3: man/sd_session_is_active.3
2032 man/sd_session_get_type.3: man/sd_session_is_active.3
2033 man/sd_session_get_class.3: man/sd_session_is_active.3
2034 man/sd_session_get_display.3: man/sd_session_is_active.3
2035 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
2036 man/sd_pid_get_unit.3: man/sd_pid_get_session.3
2037 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
2038 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
2039 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
2040 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
2041 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
2042 man/sd_get_sessions.3: man/sd_get_seats.3
2043 man/sd_get_uids.3: man/sd_get_seats.3
2044
2045 EXTRA_DIST += \
2046         src/login/logind-gperf.gperf \
2047         src/login/libsystemd-login.pc.in \
2048         src/login/libsystemd-login.sym \
2049         src/login/logind.h \
2050         src/login/logind-device.h \
2051         src/login/logind-seat.h \
2052         src/login/logind-session.h \
2053         src/login/logind-user.h \
2054         src/login/logind-acl.h \
2055         src/login/73-seat-late.rules.in \
2056         units/systemd-logind.service.in \
2057         units/systemd-user-sessions.service.in
2058
2059 CLEANFILES += \
2060         src/login/logind-gperf.c \
2061         src/login/73-seat-late.rules
2062 endif
2063 # ------------------------------------------------------------------------------
2064
2065 SED_PROCESS = \
2066         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2067         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
2068                 -e 's,@rootbindir\@,$(rootbindir),g' \
2069                 -e 's,@bindir\@,$(bindir),g' \
2070                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
2071                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
2072                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
2073                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
2074                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
2075                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
2076                 -e 's,@userunitdir\@,$(userunitdir),g' \
2077                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
2078                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
2079                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
2080                 -e 's,@prefix\@,$(prefix),g' \
2081                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
2082                 -e 's,@libdir\@,$(libdir),g' \
2083                 -e 's,@includedir\@,$(includedir),g' \
2084                 < $< > $@ || rm $@
2085
2086 units/%: units/%.in Makefile
2087         $(SED_PROCESS)
2088
2089 man/%: man/%.in Makefile
2090         $(SED_PROCESS)
2091
2092 sysctl.d/%: sysctl.d/%.in Makefile
2093         $(SED_PROCESS)
2094
2095 %.pc: %.pc.in Makefile
2096         $(SED_PROCESS)
2097
2098 src/%.policy.in: src/%.policy.in.in Makefile
2099         $(SED_PROCESS)
2100
2101 src/%.rules: src/%.rules.in Makefile
2102         $(SED_PROCESS)
2103
2104 src/%.c: src/%.gperf
2105         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2106         $(GPERF) < $< > $@
2107
2108 src/%: src/%.m4
2109         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2110         $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
2111
2112 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
2113         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2114         $(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@ || rm $@
2115
2116 M4_PROCESS_SYSTEM = \
2117         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2118         $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
2119
2120 M4_PROCESS_USER = \
2121         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2122         $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
2123
2124 units/%: units/%.m4 Makefile
2125         $(M4_PROCESS_SYSTEM)
2126
2127 units/user/%: units/%.m4 Makefile
2128         $(M4_PROCESS_USER)
2129
2130 CLEANFILES += \
2131         $(nodist_systemunit_DATA) \
2132         $(nodist_userunit_DATA) \
2133         $(nodist_man_MANS) \
2134         $(pkgconfigdata_DATA) \
2135         $(pkgconfiglib_DATA) \
2136         $(nodist_polkitpolicy_DATA) \
2137         src/load-fragment-gperf.gperf \
2138         src/load-fragment-gperf.c \
2139         src/load-fragment-gperf-nulstr.c \
2140         src/99-systemd.rules
2141
2142 if HAVE_XSLTPROC
2143 XSLTPROC_FLAGS = \
2144         --nonet \
2145         --stringparam funcsynopsis.style ansi
2146
2147 XSLTPROC_PROCESS_MAN = \
2148         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2149         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2150
2151 XSLTPROC_PROCESS_HTML = \
2152         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2153         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
2154
2155 man/%.1: man/%.xml
2156         $(XSLTPROC_PROCESS_MAN)
2157
2158 man/%.3: man/%.xml
2159         $(XSLTPROC_PROCESS_MAN)
2160
2161 man/%.5: man/%.xml
2162         $(XSLTPROC_PROCESS_MAN)
2163
2164 man/%.7: man/%.xml
2165         $(XSLTPROC_PROCESS_MAN)
2166
2167 man/%.8: man/%.xml
2168         $(XSLTPROC_PROCESS_MAN)
2169
2170 man/%.html: man/%.xml
2171         $(XSLTPROC_PROCESS_HTML)
2172
2173 CLEANFILES += \
2174         $(dist_man_MANS) \
2175         ${XML_FILES:.xml=.html}
2176 endif
2177
2178 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2179
2180 org.freedesktop.systemd1.%.xml: systemd
2181         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2182                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2183                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2184
2185 CLEANFILES += \
2186         $(dbusinterface_DATA)
2187
2188 systemd-install-data-hook:
2189         $(MKDIR_P) -m 0755 \
2190                 $(DESTDIR)$(tmpfilesdir) \
2191                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2192                 $(DESTDIR)$(prefix)/lib/modules-load.d \
2193                 $(DESTDIR)$(sysconfdir)/modules-load.d \
2194                 $(DESTDIR)$(prefix)/lib/sysctl.d \
2195                 $(DESTDIR)$(sysconfdir)/sysctl.d \
2196                 $(DESTDIR)$(systemshutdowndir) \
2197                 $(DESTDIR)$(systemgeneratordir) \
2198                 $(DESTDIR)$(usergeneratordir)
2199         $(MKDIR_P) -m 0755 \
2200                 $(DESTDIR)$(systemunitdir) \
2201                 $(DESTDIR)$(userunitdir) \
2202                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2203                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2204                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
2205                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2206                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2207                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2208                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2209                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2210                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2211                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2212                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2213                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2214                 $(DESTDIR)$(pkgsysconfdir)/system \
2215                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2216                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2217                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2218                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2219                 $(DESTDIR)$(pkgsysconfdir)/user \
2220                 $(DESTDIR)$(dbussessionservicedir) \
2221                 $(DESTDIR)$(sysconfdir)/xdg/systemd
2222         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2223                 rm -f user && \
2224                 $(LN_S) $(pkgsysconfdir)/user user )
2225         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2226                 rm -f systemd-initctl.socket systemd-shutdownd.socket && \
2227                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2228                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
2229         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2230                 rm -f systemd-update-utmp-runlevel.service && \
2231                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2232         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
2233                 rm -f systemd-update-utmp-runlevel.service && \
2234                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2235         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
2236                 rm -f systemd-update-utmp-runlevel.service && \
2237                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2238         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
2239                 rm -f systemd-update-utmp-runlevel.service && \
2240                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2241         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
2242                 rm -f systemd-update-utmp-runlevel.service && \
2243                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2244         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
2245                 rm -f systemd-update-utmp-shutdown.service && \
2246                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service )
2247         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2248                 rm -f systemd-remount-api-vfs.service \
2249                         fsck-root.service \
2250                         remount-rootfs.service \
2251                         var-run.mount \
2252                         media.mount && \
2253                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2254                 $(LN_S) ../fsck-root.service fsck-root.service && \
2255                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2256                 $(LN_S) ../var-run.mount var-run.mount && \
2257                 $(LN_S) ../media.mount media.mount )
2258         ( cd $(DESTDIR)$(userunitdir) && \
2259                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2260                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2261                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2262                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2263                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
2264                 $(LN_S) $(systemunitdir)/sound.target sound.target )
2265         ( cd $(DESTDIR)$(systemunitdir) && \
2266                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2267                 $(LN_S) poweroff.target runlevel0.target && \
2268                 $(LN_S) rescue.target runlevel1.target && \
2269                 $(LN_S) multi-user.target runlevel2.target && \
2270                 $(LN_S) multi-user.target runlevel3.target && \
2271                 $(LN_S) multi-user.target runlevel4.target && \
2272                 $(LN_S) graphical.target runlevel5.target && \
2273                 $(LN_S) reboot.target runlevel6.target )
2274         ( cd $(DESTDIR)$(systemunitdir) && \
2275                 rm -f default.target ctrl-alt-del.target autovt@.service && \
2276                 $(LN_S) graphical.target default.target && \
2277                 $(LN_S) reboot.target ctrl-alt-del.target && \
2278                 $(LN_S) getty@.service autovt@.service )
2279         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2280                 rm -f getty.target systemd-ask-password-wall.path && \
2281                 $(LN_S) ../getty.target getty.target && \
2282                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2283         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2284                 rm -f getty@tty1.service && \
2285                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2286         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2287                 rm -f remote-fs.target && \
2288                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2289         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2290                 rm -f dev-hugepages.mount \
2291                         dev-mqueue.mount \
2292                         sys-kernel-config.mount \
2293                         sys-kernel-debug.mount \
2294                         sys-fs-fuse-connections.mount \
2295                         systemd-modules-load.service \
2296                         systemd-tmpfiles-setup.service \
2297                         systemd-sysctl.service \
2298                         systemd-ask-password-console.path && \
2299                 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2300                 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2301                 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2302                 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2303                 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2304                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2305                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2306                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2307                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
2308         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2309                 rm -f systemd-tmpfiles-clean.timer && \
2310                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2311         ( cd $(DESTDIR)$(dbussessionservicedir) && \
2312                 rm -f org.freedesktop.systemd1.service && \
2313                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2314 if HAVE_PLYMOUTH
2315         $(MKDIR_P) -m 0755 \
2316                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2317                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2318                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2319                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2320                 $(DESTDIR)$(systemunitdir)/halt.target.wants
2321         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2322                 rm -f plymouth-start.service plymouth-read-write.service && \
2323                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2324                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2325         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2326                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2327                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2328                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2329         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2330                 rm -f plymouth-reboot.service && \
2331                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2332         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2333                 rm -f plymouth-kexec.service && \
2334                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2335         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2336                 rm -f plymouth-poweroff.service && \
2337                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2338         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2339                 rm -f plymouth-halt.service && \
2340                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2341 endif
2342 if TARGET_MEEGO
2343         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2344         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2345                 rm -f network.target && \
2346                 $(LN_S) $(systemunitdir)/network.target network.target )
2347         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2348                 rm -f * )
2349         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2350                 rm -f * )
2351         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2352                 rm -f * )
2353         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2354                 rm -f * )
2355 endif
2356
2357 if TARGET_FEDORA
2358         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2359         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2360                 rm -f halt-local.service && \
2361                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2362         ( cd $(DESTDIR)$(systemunitdir) && \
2363                 rm -f display-manager.service single.service && \
2364                 $(LN_S) prefdm.service display-manager.service && \
2365                 $(LN_S) rescue.service single.service )
2366         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2367                 rm -f display-manager.service && \
2368                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2369 endif
2370
2371 if TARGET_MANDRIVA
2372         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2373         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2374                 rm -f halt-local.service && \
2375                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2376         ( cd $(DESTDIR)$(systemunitdir) && \
2377                 rm -f display-manager.service dm.service single.service && \
2378                 $(LN_S) prefdm.service display-manager.service && \
2379                 $(LN_S) prefdm.service dm.service && \
2380                 $(LN_S) rescue.service single.service )
2381         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2382                 rm -f display-manager.service && \
2383                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2384 endif
2385
2386 if TARGET_DEBIAN_OR_UBUNTU
2387         ( cd $(DESTDIR)$(systemunitdir) && \
2388                 rm -f runlevel5.target && \
2389                 $(LN_S) multi-user.target runlevel5.target )
2390 endif
2391
2392 if TARGET_SUSE
2393         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2394         ( cd $(DESTDIR)$(systemunitdir) && \
2395                 rm -f local.service && \
2396                 $(LN_S) rc-local.service local.service )
2397         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2398                 rm -f halt-local.service && \
2399                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2400 endif
2401
2402 if TARGET_MAGEIA
2403         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2404         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2405                 rm -f halt-local.service && \
2406                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2407         ( cd $(DESTDIR)$(systemunitdir) && \
2408                 rm -f display-manager.service && \
2409                 $(LN_S) prefdm.service display-manager.service && \
2410                 $(LN_S) prefdm.service dm.service )
2411         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2412                 rm -f display-manager.service && \
2413                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2414 endif
2415
2416 if HAVE_SYSV_COMPAT
2417         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2418                 rm -f var-lock.mount && \
2419                 $(LN_S) ../var-lock.mount var-lock.mount )
2420 endif
2421
2422 install-exec-hook: $(INSTALL_EXEC_HOOKS)
2423
2424 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
2425
2426 install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2427
2428 DISTCHECK_CONFIGURE_FLAGS = \
2429         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2430         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2431         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2432         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2433         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2434         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2435         --with-rootprefix=$$dc_install_base \
2436         --disable-split-usr
2437
2438 upload: all distcheck
2439         cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
2440         scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
2441         scp man/*.html fdo:/srv/www.freedesktop.org/www/software/systemd/man/
2442         scp man/*.html tango:public/systemd-man/
2443
2444 git-tag:
2445         git tag "v$(VERSION)" -m "systemd $(VERSION)"