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