chiark / gitweb /
1e07ebae3550eb8d60d9cb9e5d72efb18d8ce7b7
[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
697 MANPAGES_ALIAS = \
698         man/reboot.8 \
699         man/poweroff.8 \
700         man/init.1
701
702 man/reboot.8: man/halt.8
703 man/poweroff.8: man/halt.8
704 man/init.1: man/systemd.1
705
706 if ENABLE_MANPAGES
707 dist_man_MANS = \
708         $(MANPAGES) \
709         $(MANPAGES_ALIAS)
710
711 XML_FILES = \
712         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
713
714 dist_noinst_DATA = \
715         ${XML_FILES:.xml=.html}
716
717 EXTRA_DIST += \
718         $(XML_FILES)
719 endif
720
721 systemd_SOURCES = \
722         src/main.c
723
724 systemd_CFLAGS = \
725         $(AM_CFLAGS) \
726         $(DBUS_CFLAGS) \
727         $(UDEV_CFLAGS)
728
729 systemd_LDADD = \
730         libsystemd-core.la
731
732 test_engine_SOURCES = \
733         src/test-engine.c
734
735 test_engine_CFLAGS = $(systemd_CFLAGS)
736 test_engine_LDADD = $(systemd_LDADD)
737
738 test_job_type_SOURCES = \
739         src/test-job-type.c
740
741 test_job_type_CFLAGS = $(systemd_CFLAGS)
742 test_job_type_LDADD = $(systemd_LDADD)
743
744 test_ns_SOURCES = \
745         src/test-ns.c
746
747 test_ns_CFLAGS = $(systemd_CFLAGS)
748 test_ns_LDADD = $(systemd_LDADD)
749
750 test_loopback_SOURCES = \
751         src/test-loopback.c \
752         src/loopback-setup.c
753
754 test_loopback_LDADD = \
755         libsystemd-basic.la
756
757 test_hostname_SOURCES = \
758         src/test-hostname.c \
759         src/hostname-setup.c
760
761 test_hostname_LDADD = \
762         libsystemd-basic.la
763
764 test_daemon_SOURCES = \
765         src/test-daemon.c
766
767 test_daemon_LDADD = \
768         libsystemd-basic.la \
769         libsystemd-daemon.la
770
771 test_cgroup_SOURCES = \
772         src/test-cgroup.c \
773         src/cgroup-util.c
774
775 test_cgroup_LDADD = \
776         libsystemd-basic.la
777
778 test_env_replace_SOURCES = \
779         src/test-env-replace.c
780
781 test_env_replace_LDADD = \
782         libsystemd-basic.la
783
784 test_strv_SOURCES = \
785         src/test-strv.c \
786         src/specifier.c
787
788 test_strv_LDADD = \
789         libsystemd-basic.la
790
791 test_install_SOURCES = \
792         src/test-install.c \
793         src/install.c \
794         src/path-lookup.c \
795         src/unit-name.c
796
797 test_install_CFLAGS = \
798         $(AM_CFLAGS) \
799         $(DBUS_CFLAGS)
800
801 test_install_LDADD = \
802         libsystemd-basic.la
803
804 systemd_initctl_SOURCES = \
805         src/initctl.c \
806         src/dbus-common.c
807
808 systemd_initctl_CFLAGS = \
809         $(AM_CFLAGS) \
810         $(DBUS_CFLAGS)
811
812 systemd_initctl_LDADD = \
813         libsystemd-basic.la \
814         libsystemd-daemon.la \
815         $(DBUS_LIBS)
816
817 systemd_update_utmp_SOURCES = \
818         src/update-utmp.c \
819         src/dbus-common.c \
820         src/utmp-wtmp.c
821
822 systemd_update_utmp_CFLAGS = \
823         $(AM_CFLAGS) \
824         $(DBUS_CFLAGS) \
825         $(AUDIT_CFLAGS)
826
827 systemd_update_utmp_LDADD = \
828         libsystemd-basic.la \
829         $(DBUS_LIBS) \
830         $(AUDIT_LIBS)
831
832 systemd_shutdownd_SOURCES = \
833         src/utmp-wtmp.c \
834         src/shutdownd.c
835
836 systemd_shutdownd_CFLAGS = \
837         $(AM_CFLAGS)
838
839 systemd_shutdownd_LDADD = \
840         libsystemd-basic.la \
841         libsystemd-daemon.la
842
843 systemd_shutdown_SOURCES = \
844         src/mount-setup.c \
845         src/umount.c \
846         src/shutdown.c
847
848 systemd_shutdown_CFLAGS = \
849         $(AM_CFLAGS) \
850         $(UDEV_CFLAGS)
851
852 systemd_shutdown_LDADD = \
853         libsystemd-basic.la \
854         $(UDEV_LIBS)
855
856 systemd_modules_load_SOURCES = \
857         src/modules-load.c
858
859 systemd_modules_load_CFLAGS = \
860         $(KMOD_CFLAGS)
861
862 systemd_modules_load_LDADD = \
863         libsystemd-basic.la \
864         $(KMOD_LIBS)
865
866 systemd_tmpfiles_SOURCES = \
867         src/tmpfiles.c
868
869 systemd_tmpfiles_LDADD = \
870         libsystemd-basic.la
871
872 systemd_machine_id_setup_SOURCES = \
873         src/machine-id-setup.c \
874         src/machine-id-main.c \
875         src/sd-id128.c
876
877 systemd_machine_id_setup_LDADD = \
878         libsystemd-basic.la
879
880 systemd_sysctl_SOURCES = \
881         src/sysctl.c
882
883 systemd_sysctl_LDADD = \
884         libsystemd-basic.la
885
886 systemd_fsck_SOURCES = \
887         src/fsck.c \
888         src/dbus-common.c
889
890 systemd_fsck_CFLAGS = \
891         $(AM_CFLAGS) \
892         $(UDEV_CFLAGS) \
893         $(DBUS_CFLAGS)
894
895 systemd_fsck_LDADD = \
896         libsystemd-basic.la \
897         $(UDEV_LIBS) \
898         $(DBUS_LIBS)
899
900 systemd_timestamp_SOURCES = \
901         src/timestamp.c
902
903 systemd_timestamp_LDADD = \
904         libsystemd-basic.la
905
906 systemd_ac_power_SOURCES = \
907         src/ac-power.c
908
909 systemd_ac_power_CFLAGS = \
910         $(AM_CFLAGS) \
911         $(UDEV_CFLAGS)
912
913 systemd_ac_power_LDADD = \
914         libsystemd-basic.la \
915         $(UDEV_LIBS)
916
917 systemd_detect_virt_SOURCES = \
918         src/detect-virt.c
919
920 systemd_detect_virt_LDADD = \
921         libsystemd-basic.la
922
923 systemd_getty_generator_SOURCES = \
924         src/getty-generator.c \
925         src/unit-name.c
926
927 systemd_getty_generator_LDADD = \
928         libsystemd-basic.la
929
930 systemd_rc_local_generator_SOURCES = \
931         src/rc-local-generator.c
932
933 systemd_rc_local_generator_LDADD = \
934         libsystemd-basic.la
935
936 systemd_remount_api_vfs_SOURCES = \
937         src/remount-api-vfs.c \
938         src/mount-setup.c \
939         src/exit-status.c
940
941 systemd_remount_api_vfs_LDADD = \
942         libsystemd-basic.la
943
944 systemd_cgroups_agent_SOURCES = \
945         src/cgroups-agent.c \
946         src/dbus-common.c
947
948 systemd_cgroups_agent_CFLAGS = \
949         $(AM_CFLAGS) \
950         $(DBUS_CFLAGS)
951
952 systemd_cgroups_agent_LDADD = \
953         libsystemd-basic.la \
954         $(DBUS_LIBS)
955
956 systemctl_SOURCES = \
957         src/systemctl.c \
958         src/utmp-wtmp.c \
959         src/dbus-common.c \
960         src/path-lookup.c \
961         src/cgroup-show.c \
962         src/cgroup-util.c \
963         src/exit-status.c \
964         src/unit-name.c \
965         src/pager.c \
966         src/install.c \
967         src/spawn-agent.c \
968         src/logs-show.c
969
970 systemctl_CFLAGS = \
971         $(AM_CFLAGS) \
972         $(DBUS_CFLAGS)
973
974 systemctl_LDADD = \
975         libsystemd-basic.la \
976         libsystemd-daemon.la \
977         libsystemd-journal.la \
978         libsystemd-id128.la \
979         $(DBUS_LIBS)
980
981 systemd_notify_SOURCES = \
982         src/notify.c \
983         src/readahead/sd-readahead.c
984
985 systemd_notify_LDADD = \
986         libsystemd-basic.la \
987         libsystemd-daemon.la
988
989 systemd_ask_password_SOURCES = \
990         src/ask-password.c \
991         src/ask-password-api.c
992
993 systemd_ask_password_LDADD = \
994         libsystemd-basic.la
995
996 systemd_reply_password_SOURCES = \
997         src/reply-password.c
998
999 systemd_reply_password_LDADD = \
1000         libsystemd-basic.la
1001
1002 systemd_cgls_SOURCES = \
1003         src/cgls.c \
1004         src/cgroup-show.c \
1005         src/cgroup-util.c \
1006         src/pager.c
1007
1008 systemd_cgls_LDADD = \
1009         libsystemd-basic.la
1010
1011 systemd_cgtop_SOURCES = \
1012         src/cgtop.c \
1013         src/cgroup-util.c
1014
1015 systemd_cgtop_LDADD = \
1016         libsystemd-basic.la
1017
1018 systemd_nspawn_SOURCES = \
1019         src/nspawn.c \
1020         src/cgroup-util.c \
1021         src/loopback-setup.c
1022
1023 systemd_nspawn_LDADD = \
1024         libsystemd-basic.la \
1025         libsystemd-daemon.la
1026
1027 systemd_stdio_bridge_SOURCES = \
1028         src/bridge.c
1029
1030 systemd_stdio_bridge_LDADD = \
1031         libsystemd-basic.la
1032
1033 systemadm_SOURCES = \
1034         src/systemadm.vala \
1035         src/systemd-interfaces.vala \
1036         src/wraplabel.vala
1037
1038 systemadm_CFLAGS = \
1039         $(AM_CFLAGS) \
1040         $(GTK_CFLAGS) \
1041         -Wno-unused-variable \
1042         -Wno-unused-function \
1043         -Wno-shadow \
1044         -Wno-format-nonliteral
1045
1046 systemadm_VALAFLAGS = \
1047         --pkg=posix \
1048         --pkg=gtk+-2.0 \
1049         --pkg=gee-1.0 \
1050         -g
1051
1052 systemadm_LDADD = \
1053         $(GTK_LIBS)
1054
1055 systemd_gnome_ask_password_agent_SOURCES = \
1056         src/gnome-ask-password-agent.vala
1057
1058 systemd_gnome_ask_password_agent_CFLAGS = \
1059         $(AM_CFLAGS) \
1060         $(LIBNOTIFY_CFLAGS) \
1061         $(GTK_CFLAGS) \
1062         -Wno-unused-variable \
1063         -Wno-unused-function \
1064         -Wno-shadow \
1065         -Wno-format-nonliteral
1066
1067 systemd_gnome_ask_password_agent_VALAFLAGS = \
1068         --pkg=posix \
1069         --pkg=gtk+-2.0 \
1070         --pkg=linux \
1071         --pkg=gio-unix-2.0 \
1072         --pkg=libnotify \
1073         -g
1074
1075 systemd_gnome_ask_password_agent_LDADD = \
1076         $(LIBNOTIFY_LIBS) \
1077         $(GTK_LIBS)
1078
1079 systemd_tty_ask_password_agent_SOURCES = \
1080         src/tty-ask-password-agent.c \
1081         src/ask-password-api.c \
1082         src/utmp-wtmp.c
1083
1084 systemd_tty_ask_password_agent_LDADD = \
1085         libsystemd-basic.la
1086
1087 # ------------------------------------------------------------------------------
1088 libsystemd_daemon_la_SOURCES = \
1089         src/sd-daemon.c
1090
1091 libsystemd_daemon_la_CFLAGS = \
1092         $(AM_CFLAGS) \
1093         -fvisibility=hidden \
1094         -DSD_EXPORT_SYMBOLS
1095
1096 libsystemd_daemon_la_LDFLAGS = \
1097         -shared \
1098         -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1099         -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1100
1101 pkginclude_HEADERS += \
1102         src/systemd/sd-daemon.h
1103
1104 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1105 libsystemd-daemon-install-hook:
1106         if test "$(libdir)" != "$(rootlibdir)"; then \
1107                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1108                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1109                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1110                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1111                 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1112         fi
1113
1114 INSTALL_EXEC_HOOKS += \
1115         libsystemd-daemon-install-hook
1116
1117 libsystemd-daemon-uninstall-hook:
1118         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1119
1120 UNINSTALL_EXEC_HOOKS += \
1121         libsystemd-daemon-uninstall-hook
1122
1123 lib_LTLIBRARIES += \
1124         libsystemd-daemon.la
1125
1126 pkgconfiglib_DATA += \
1127         src/libsystemd-daemon.pc
1128
1129 MANPAGES += \
1130         man/sd-daemon.7 \
1131         man/sd_notify.3 \
1132         man/sd_listen_fds.3 \
1133         man/sd_is_fifo.3 \
1134         man/sd_booted.3
1135
1136 MANPAGES_ALIAS += \
1137         man/sd_is_socket.3 \
1138         man/sd_is_socket_unix.3 \
1139         man/sd_is_socket_inet.3 \
1140         man/sd_is_mq.3 \
1141         man/sd_notifyf.3
1142
1143 man/sd_is_socket.3: man/sd_is_fifo.3
1144 man/sd_is_socket_unix.3: man/sd_is_fifo.3
1145 man/sd_is_socket_inet.3: man/sd_is_fifo.3
1146 man/sd_is_mq.3: man/sd_is_fifo.3
1147 man/sd_notifyf.3: man/sd_notify.3
1148
1149 EXTRA_DIST += \
1150         src/libsystemd-daemon.pc.in \
1151         src/libsystemd-daemon.sym
1152
1153 # ------------------------------------------------------------------------------
1154 libsystemd_id128_la_SOURCES = \
1155         src/sd-id128.c
1156
1157 libsystemd_id128_la_CFLAGS = \
1158         $(AM_CFLAGS) \
1159         -fvisibility=hidden
1160
1161 libsystemd_id128_la_LDFLAGS = \
1162         -shared \
1163         -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
1164         -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128.sym
1165
1166 libsystemd_id128_la_LIBADD = \
1167         libsystemd-basic.la
1168
1169 test_id128_SOURCES = \
1170         src/test-id128.c \
1171         src/sd-id128.c
1172
1173 test_id128_LDADD = \
1174         libsystemd-basic.la
1175
1176 noinst_PROGRAMS += \
1177         test-id128
1178
1179 pkginclude_HEADERS += \
1180         src/systemd/sd-id128.h
1181
1182 lib_LTLIBRARIES += \
1183         libsystemd-id128.la
1184
1185 pkgconfiglib_DATA += \
1186         src/libsystemd-id128.pc
1187
1188 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1189 libsystemd-id128-install-hook:
1190         if test "$(libdir)" != "$(rootlibdir)"; then \
1191                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1192                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \
1193                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1194                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \
1195                 mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \
1196         fi
1197
1198 INSTALL_EXEC_HOOKS += \
1199         libsystemd-id128-install-hook
1200
1201 libsystemd-id128-uninstall-hook:
1202         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
1203
1204 UNINSTALL_EXEC_HOOKS += \
1205         libsystemd-id128-uninstall-hook
1206
1207 EXTRA_DIST += \
1208         src/libsystemd-id128.pc.in \
1209         src/libsystemd-id128.sym
1210
1211 # ------------------------------------------------------------------------------
1212 systemd_journald_SOURCES = \
1213         src/journal/journald.c \
1214         src/journal/sd-journal.c \
1215         src/journal/journal-file.c \
1216         src/journal/lookup3.c \
1217         src/journal/journal-rate-limit.c \
1218         src/sd-id128.c \
1219         src/cgroup-util.c
1220
1221 if HAVE_ACL
1222 systemd_journald_SOURCES += \
1223         src/acl-util.c
1224 endif
1225
1226 nodist_systemd_journald_SOURCES = \
1227         src/journal/journald-gperf.c
1228
1229 systemd_journald_CFLAGS = \
1230         $(AM_CFLAGS) \
1231         $(ACL_CFLAGS)
1232
1233 systemd_journald_LDADD = \
1234         libsystemd-basic.la \
1235         libsystemd-daemon.la \
1236         libsystemd-login.la \
1237         $(ACL_LIBS)
1238
1239 if HAVE_XZ
1240 systemd_journald_SOURCES += \
1241         src/journal/compress.c
1242 systemd_journald_CFLAGS += \
1243         $(XZ_CFLAGS)
1244 systemd_journald_LDADD += \
1245         $(XZ_LIBS)
1246 endif
1247
1248 systemd_cat_SOURCES = \
1249         src/journal/cat.c
1250
1251 systemd_cat_LDADD = \
1252         libsystemd-basic.la \
1253         libsystemd-journal.la
1254
1255 systemd_journalctl_SOURCES = \
1256         src/journal/journalctl.c \
1257         src/pager.c \
1258         src/logs-show.c
1259
1260 systemd_journalctl_LDADD = \
1261         libsystemd-basic.la \
1262         libsystemd-journal.la \
1263         libsystemd-id128.la
1264
1265 if HAVE_XZ
1266 systemd_journalctl_SOURCES += \
1267         src/journal/compress.c
1268 systemd_journalctl_CFLAGS = \
1269         $(AM_CFLAGS) \
1270         $(XZ_CFLAGS)
1271 systemd_journalctl_LDADD += \
1272         $(XZ_LIBS)
1273 endif
1274
1275 test_journal_SOURCES = \
1276         src/journal/test-journal.c \
1277         src/journal/sd-journal.c \
1278         src/journal/journal-file.c \
1279         src/journal/lookup3.c \
1280         src/journal/journal-send.c \
1281         src/sd-id128.c
1282
1283 test_journal_LDADD = \
1284         libsystemd-basic.la
1285
1286 if HAVE_XZ
1287 test_journal_SOURCES += \
1288         src/journal/compress.c
1289
1290 test_journal_CFLAGS = \
1291         $(AM_CFLAGS) \
1292         $(XZ_CFLAGS)
1293
1294 test_journal_LDADD += \
1295         $(XZ_LIBS)
1296 endif
1297
1298 libsystemd_journal_la_SOURCES = \
1299         src/journal/sd-journal.c \
1300         src/journal/journal-file.c \
1301         src/journal/lookup3.c \
1302         src/journal/journal-send.c
1303
1304 libsystemd_journal_la_CFLAGS = \
1305         $(AM_CFLAGS) \
1306         -fvisibility=hidden
1307
1308 libsystemd_journal_la_LDFLAGS = \
1309         -shared \
1310         -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
1311         -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
1312
1313 libsystemd_journal_la_LIBADD = \
1314         libsystemd-basic.la \
1315         libsystemd-id128.la
1316
1317 if HAVE_XZ
1318 libsystemd_journal_la_SOURCES += \
1319         src/journal/compress.c
1320
1321 libsystemd_journal_la_CFLAGS += \
1322         $(XZ_CFLAGS)
1323
1324 libsystemd_journal_la_LIBADD += \
1325         $(XZ_LIBS)
1326 endif
1327
1328 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1329 libsystemd-journal-install-hook:
1330         if test "$(libdir)" != "$(rootlibdir)"; then \
1331                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1332                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
1333                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1334                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
1335                 mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
1336         fi
1337
1338 INSTALL_EXEC_HOOKS += \
1339         libsystemd-journal-install-hook
1340
1341 libsystemd-journal-uninstall-hook:
1342         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
1343
1344 UNINSTALL_EXEC_HOOKS += \
1345         libsystemd-journal-uninstall-hook
1346
1347 noinst_PROGRAMS += \
1348         test-journal
1349
1350 pkginclude_HEADERS += \
1351         src/systemd/sd-journal.h \
1352         src/systemd/sd-messages.h
1353
1354 lib_LTLIBRARIES += \
1355         libsystemd-journal.la
1356
1357 rootlibexec_PROGRAMS += \
1358         systemd-journald
1359
1360 rootbin_PROGRAMS += \
1361         systemd-journalctl
1362
1363 bin_PROGRAMS += \
1364         systemd-cat
1365
1366 dist_systemunit_DATA += \
1367         units/systemd-journald.socket
1368
1369 nodist_systemunit_DATA += \
1370         units/systemd-journald.service
1371
1372 dist_pkgsysconf_DATA += \
1373         src/journal/systemd-journald.conf
1374
1375 pkgconfiglib_DATA += \
1376         src/journal/libsystemd-journal.pc
1377
1378 journal-install-data-hook:
1379         $(MKDIR_P) -m 0755 \
1380                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1381                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1382         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1383                 rm -f systemd-journald.socket && \
1384                 $(LN_S) ../systemd-journald.socket )
1385         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1386                 rm -f systemd-journald.service && \
1387                 $(LN_S) ../systemd-journald.service )
1388
1389 INSTALL_DATA_HOOKS += \
1390         journal-install-data-hook
1391
1392 EXTRA_DIST += \
1393         src/journal/journald.h \
1394         src/journal/journal-def.h \
1395         src/journal/journal-internal.h \
1396         src/journal/journal-file.h \
1397         src/journal/lookup3.h \
1398         src/journal/compress.h \
1399         src/journal/journal-rate-limit.h \
1400         src/journal/libsystemd-journal.pc.in \
1401         src/journal/libsystemd-journal.sym \
1402         units/systemd-journald.service.in \
1403         src/journal/journald-gperf.gperf
1404
1405 CLEANFILES += \
1406         src/journal/journald-gperf.c
1407
1408 # ------------------------------------------------------------------------------
1409 if ENABLE_COREDUMP
1410 systemd_coredump_SOURCES = \
1411         src/journal/coredump.c
1412
1413 systemd_coredump_LDADD = \
1414         libsystemd-basic.la \
1415         libsystemd-journal.la \
1416         libsystemd-login.la
1417
1418 rootlibexec_PROGRAMS += \
1419         systemd-coredump
1420
1421 sysctl_DATA = \
1422         sysctl.d/coredump.conf
1423
1424 EXTRA_DIST += \
1425         sysctl.d/coredump.conf.in
1426
1427 CLEANFILES += \
1428         sysctl.d/coredump.conf
1429 endif
1430
1431 # ------------------------------------------------------------------------------
1432 if ENABLE_BINFMT
1433 systemd_binfmt_SOURCES = \
1434         src/binfmt/binfmt.c
1435
1436 systemd_binfmt_LDADD = \
1437         libsystemd-basic.la
1438
1439 rootlibexec_PROGRAMS += \
1440         systemd-binfmt
1441
1442 dist_systemunit_DATA += \
1443         units/proc-sys-fs-binfmt_misc.automount \
1444         units/proc-sys-fs-binfmt_misc.mount
1445
1446 nodist_systemunit_DATA += \
1447         units/systemd-binfmt.service
1448
1449 binfmt-install-data-hook:
1450         $(MKDIR_P) -m 0755 \
1451                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1452                 $(DESTDIR)$(sysconfdir)/binfmt.d \
1453                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1454         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1455                 rm -f systemd-binfmt.service \
1456                         proc-sys-fs-binfmt_misc.automount && \
1457                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1458                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1459
1460 INSTALL_DATA_HOOKS += \
1461         binfmt-install-data-hook
1462
1463 MANPAGES += \
1464         man/binfmt.d.5
1465
1466 EXTRA_DIST += \
1467         units/systemd-binfmt.service.in
1468 endif
1469
1470 # ------------------------------------------------------------------------------
1471 if ENABLE_VCONSOLE
1472 systemd_vconsole_setup_SOURCES = \
1473         src/vconsole/vconsole-setup.c
1474
1475 systemd_vconsole_setup_LDADD = \
1476         libsystemd-basic.la
1477
1478 rootlibexec_PROGRAMS += \
1479         systemd-vconsole-setup
1480
1481 nodist_systemunit_DATA += \
1482         units/systemd-vconsole-setup.service
1483
1484 vconsole-install-data-hook:
1485         $(MKDIR_P) -m 0755 \
1486                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1487         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1488                 rm -f systemd-vconsole-setup.service && \
1489                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service )
1490
1491 INSTALL_DATA_HOOKS += \
1492         vconsole-install-data-hook
1493
1494 MANPAGES += \
1495         man/vconsole.conf.5
1496
1497 EXTRA_DIST += \
1498         units/systemd-vconsole-setup.service.in
1499 endif
1500
1501 # ------------------------------------------------------------------------------
1502 if ENABLE_READAHEAD
1503 systemd_readahead_collect_SOURCES = \
1504         src/readahead/readahead-collect.c \
1505         src/readahead/readahead-common.c
1506
1507 systemd_readahead_collect_LDADD = \
1508         libsystemd-basic.la \
1509         libsystemd-daemon.la \
1510         $(UDEV_LIBS)
1511
1512 systemd_readahead_collect_CFLAGS = \
1513         $(AM_CFLAGS) \
1514         $(UDEV_CFLAGS)
1515
1516 systemd_readahead_replay_SOURCES = \
1517         src/readahead/readahead-replay.c \
1518         src/readahead/readahead-common.c
1519
1520 systemd_readahead_replay_CFLAGS = \
1521         $(AM_CFLAGS) \
1522         $(UDEV_CFLAGS)
1523
1524 systemd_readahead_replay_LDADD = \
1525         libsystemd-basic.la \
1526         libsystemd-daemon.la \
1527         $(UDEV_LIBS)
1528
1529 rootlibexec_PROGRAMS += \
1530         systemd-readahead-collect \
1531         systemd-readahead-replay
1532
1533 dist_systemunit_DATA += \
1534         units/systemd-readahead-done.timer
1535
1536 nodist_systemunit_DATA += \
1537         units/systemd-readahead-collect.service \
1538         units/systemd-readahead-replay.service \
1539         units/systemd-readahead-done.service
1540
1541 EXTRA_DIST += \
1542         src/systemd/sd-readahead.h \
1543         src/readahead/readahead-common.h \
1544         units/systemd-readahead-collect.service.in \
1545         units/systemd-readahead-replay.service.in \
1546         units/systemd-readahead-done.service.in
1547
1548 MANPAGES += \
1549         man/sd_readahead.3 \
1550         man/sd-readahead.7
1551 endif
1552
1553 # ------------------------------------------------------------------------------
1554 if ENABLE_QUOTACHECK
1555 rootlibexec_PROGRAMS += \
1556         systemd-quotacheck
1557
1558 nodist_systemunit_DATA += \
1559         units/quotacheck.service
1560
1561 EXTRA_DIST += \
1562         units/quotacheck.service.in
1563
1564 systemd_quotacheck_SOURCES = \
1565         src/quotacheck.c
1566
1567 systemd_quotacheck_LDADD = \
1568         libsystemd-basic.la
1569 endif
1570
1571 # ------------------------------------------------------------------------------
1572 if ENABLE_RANDOMSEED
1573 rootlibexec_PROGRAMS += \
1574         systemd-random-seed
1575
1576 nodist_systemunit_DATA += \
1577         units/systemd-random-seed-save.service \
1578         units/systemd-random-seed-load.service
1579
1580 EXTRA_DIST += \
1581         units/systemd-random-seed-save.service.in \
1582         units/systemd-random-seed-load.service.in
1583
1584 systemd_random_seed_SOURCES = \
1585         src/random-seed.c
1586
1587 systemd_random_seed_LDADD = \
1588         libsystemd-basic.la
1589
1590 randomseed-install-data-hook:
1591         $(MKDIR_P) -m 0755 \
1592                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1593                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1594         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1595                 rm -f systemd-random-seed-save.service && \
1596                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1597         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1598                 rm -f systemd-random-seed-load.service && \
1599                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service )
1600
1601 INSTALL_DATA_HOOKS += \
1602         randomseed-install-data-hook
1603 endif
1604
1605 # ------------------------------------------------------------------------------
1606 if HAVE_LIBCRYPTSETUP
1607 rootlibexec_PROGRAMS += \
1608         systemd-cryptsetup
1609
1610 systemgenerator_PROGRAMS += \
1611         systemd-cryptsetup-generator
1612
1613 dist_systemunit_DATA += \
1614         units/cryptsetup.target
1615
1616 systemd_cryptsetup_SOURCES = \
1617         src/cryptsetup/cryptsetup.c \
1618         src/ask-password-api.c
1619
1620 systemd_cryptsetup_CFLAGS = \
1621         $(AM_CFLAGS) \
1622         $(LIBCRYPTSETUP_CFLAGS) \
1623         $(UDEV_CFLAGS)
1624
1625 systemd_cryptsetup_LDADD = \
1626         $(LIBCRYPTSETUP_LIBS) \
1627         $(UDEV_LIBS) \
1628         libsystemd-basic.la
1629
1630 systemd_cryptsetup_generator_SOURCES = \
1631         src/cryptsetup/cryptsetup-generator.c \
1632         src/unit-name.c
1633
1634 systemd_cryptsetup_generator_LDADD = \
1635         libsystemd-basic.la
1636
1637 cryptsetup-install-data-hook:
1638         $(MKDIR_P) -m 0755 \
1639                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1640         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1641                 rm -f cryptsetup.target && \
1642                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1643
1644 INSTALL_DATA_HOOKS += \
1645         cryptsetup-install-data-hook
1646 endif
1647
1648 # ------------------------------------------------------------------------------
1649 if ENABLE_HOSTNAMED
1650 systemd_hostnamed_SOURCES = \
1651         src/hostname/hostnamed.c \
1652         src/dbus-common.c \
1653         src/polkit.c
1654
1655 systemd_hostnamed_CFLAGS = \
1656         $(AM_CFLAGS) \
1657         $(DBUS_CFLAGS)
1658
1659 systemd_hostnamed_LDADD = \
1660         libsystemd-basic.la \
1661         libsystemd-daemon.la \
1662         $(DBUS_LIBS)
1663
1664 rootlibexec_PROGRAMS += \
1665         systemd-hostnamed
1666
1667 nodist_systemunit_DATA += \
1668         units/systemd-hostnamed.service
1669
1670 dist_dbuspolicy_DATA += \
1671         src/hostname/org.freedesktop.hostname1.conf
1672
1673 dist_dbussystemservice_DATA += \
1674         src/hostname/org.freedesktop.hostname1.service
1675
1676 polkitpolicy_in_files += \
1677         src/hostname/org.freedesktop.hostname1.policy.in
1678
1679 dbusinterface_DATA += \
1680         org.freedesktop.hostname1.xml
1681
1682 org.freedesktop.hostname1.xml: systemd-hostnamed
1683         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1684                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1685                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1686
1687 hostnamed-install-data-hook:
1688         ( cd $(DESTDIR)$(systemunitdir) && \
1689                 rm -f dbus-org.freedesktop.hostname1.service && \
1690                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1691
1692 INSTALL_DATA_HOOKS += \
1693         hostnamed-install-data-hook
1694
1695 EXTRA_DIST += \
1696         units/systemd-hostnamed.service.in
1697 endif
1698
1699 # ------------------------------------------------------------------------------
1700 if ENABLE_LOCALED
1701 systemd_localed_SOURCES = \
1702         src/locale/localed.c \
1703         src/dbus-common.c \
1704         src/polkit.c
1705
1706 systemd_localed_CFLAGS = \
1707         $(AM_CFLAGS) \
1708         $(DBUS_CFLAGS)
1709
1710 systemd_localed_LDADD = \
1711         libsystemd-basic.la \
1712         libsystemd-daemon.la \
1713         $(DBUS_LIBS)
1714
1715 nodist_systemunit_DATA += \
1716         units/systemd-localed.service
1717
1718 rootlibexec_PROGRAMS += \
1719         systemd-localed
1720
1721 dist_dbuspolicy_DATA += \
1722         src/locale/org.freedesktop.locale1.conf
1723
1724 dist_dbussystemservice_DATA += \
1725         src/locale/org.freedesktop.locale1.service
1726
1727 polkitpolicy_in_files += \
1728         src/locale/org.freedesktop.locale1.policy.in
1729
1730 dbusinterface_DATA += \
1731         org.freedesktop.locale1.xml
1732
1733 org.freedesktop.locale1.xml: systemd-localed
1734         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1735                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1736                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1737
1738 localed-install-data-hook:
1739         ( cd $(DESTDIR)$(systemunitdir) && \
1740                 rm -f dbus-org.freedesktop.locale1.service && \
1741                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1742
1743 INSTALL_DATA_HOOKS += \
1744         localed-install-data-hook
1745
1746 EXTRA_DIST += \
1747         units/systemd-localed.service.in
1748
1749 dist_pkgdata_DATA = \
1750         src/locale/kbd-model-map
1751
1752 dist_noinst_SCRIPT = \
1753         src/locale/generate-kbd-model-map
1754
1755 update-kbd-model-map:
1756         src/locale/generate-kbd-model-map > src/locale/kbd-model-map
1757
1758 endif
1759
1760 # ------------------------------------------------------------------------------
1761 if ENABLE_TIMEDATED
1762 systemd_timedated_SOURCES = \
1763         src/timedate/timedated.c \
1764         src/dbus-common.c \
1765         src/polkit.c
1766
1767 systemd_timedated_CFLAGS = \
1768         $(AM_CFLAGS) \
1769         $(DBUS_CFLAGS)
1770
1771 systemd_timedated_LDADD = \
1772         libsystemd-basic.la \
1773         libsystemd-daemon.la \
1774         $(DBUS_LIBS)
1775
1776 rootlibexec_PROGRAMS += \
1777         systemd-timedated
1778
1779 dist_dbussystemservice_DATA += \
1780         src/timedate/org.freedesktop.timedate1.service
1781
1782 dist_dbuspolicy_DATA += \
1783         src/timedate/org.freedesktop.timedate1.conf
1784
1785 nodist_systemunit_DATA += \
1786         units/systemd-timedated.service
1787
1788 polkitpolicy_in_files += \
1789         src/timedate/org.freedesktop.timedate1.policy.in
1790
1791 org.freedesktop.timedate1.xml: systemd-timedated
1792         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1793                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1794                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1795
1796 dbusinterface_DATA += \
1797         org.freedesktop.timedate1.xml
1798
1799 timedated-install-data-hook:
1800         ( cd $(DESTDIR)$(systemunitdir) && \
1801                 rm -f dbus-org.freedesktop.timedate1.service  && \
1802                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1803
1804 INSTALL_DATA_HOOKS += \
1805         timedated-install-data-hook
1806
1807 EXTRA_DIST += \
1808         units/systemd-timedated.service.in
1809 endif
1810
1811 # ------------------------------------------------------------------------------
1812 if ENABLE_LOGIND
1813 systemd_logind_SOURCES = \
1814         src/login/logind.c \
1815         src/login/logind-dbus.c \
1816         src/login/logind-device.c \
1817         src/login/logind-seat.c \
1818         src/login/logind-seat-dbus.c \
1819         src/login/logind-session.c \
1820         src/login/logind-session-dbus.c \
1821         src/login/logind-user.c \
1822         src/login/logind-user-dbus.c \
1823         src/dbus-common.c \
1824         src/dbus-loop.c \
1825         src/cgroup-util.c \
1826         src/polkit.c
1827
1828 nodist_systemd_logind_SOURCES = \
1829         src/login/logind-gperf.c
1830
1831 if HAVE_ACL
1832 systemd_logind_SOURCES += \
1833         src/login/logind-acl.c \
1834         src/acl-util.c
1835 endif
1836
1837 systemd_logind_CFLAGS = \
1838         $(AM_CFLAGS) \
1839         $(DBUS_CFLAGS) \
1840         $(UDEV_CFLAGS) \
1841         $(ACL_CFLAGS)
1842
1843 systemd_logind_LDADD = \
1844         libsystemd-basic.la \
1845         libsystemd-daemon.la \
1846         $(DBUS_LIBS) \
1847         $(UDEV_LIBS) \
1848         $(ACL_LIBS)
1849
1850 systemd_user_sessions_SOURCES = \
1851         src/login/user-sessions.c \
1852         src/cgroup-util.c
1853
1854 systemd_user_sessions_LDADD = \
1855         libsystemd-basic.la
1856
1857 rootlibexec_PROGRAMS += \
1858         systemd-logind \
1859         systemd-user-sessions
1860
1861 systemd_loginctl_SOURCES = \
1862         src/login/loginctl.c \
1863         src/login/sysfs-show.c \
1864         src/dbus-common.c \
1865         src/cgroup-show.c \
1866         src/cgroup-util.c \
1867         src/pager.c
1868
1869 systemd_loginctl_CFLAGS = \
1870         $(AM_CFLAGS) \
1871         $(DBUS_CFLAGS) \
1872         $(UDEV_CFLAGS)
1873
1874 systemd_loginctl_LDADD = \
1875         libsystemd-basic.la \
1876         $(DBUS_LIBS) \
1877         $(UDEV_LIBS)
1878
1879 rootbin_PROGRAMS += \
1880         systemd-loginctl
1881
1882 test_login_SOURCES = \
1883         src/login/test-login.c
1884
1885 test_login_LDADD = \
1886         libsystemd-basic.la \
1887         libsystemd-login.la
1888
1889 noinst_PROGRAMS += \
1890         test-login
1891
1892 libsystemd_login_la_SOURCES = \
1893         src/login/sd-login.c \
1894         src/cgroup-util.c
1895
1896 libsystemd_login_la_CFLAGS = \
1897         $(AM_CFLAGS) \
1898         -fvisibility=hidden
1899
1900 libsystemd_login_la_LDFLAGS = \
1901         -shared \
1902         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1903         -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
1904
1905 libsystemd_login_la_LIBADD = \
1906         libsystemd-basic.la
1907
1908 if HAVE_PAM
1909 pam_systemd_la_SOURCES = \
1910         src/login/pam-module.c \
1911         src/dbus-common.c
1912
1913 pam_systemd_la_CFLAGS = \
1914         $(AM_CFLAGS) \
1915         $(PAM_CFLAGS) \
1916         $(DBUS_CFLAGS) \
1917         -fvisibility=hidden
1918
1919 pam_systemd_la_LDFLAGS = \
1920         -module \
1921         -export-dynamic \
1922         -avoid-version \
1923         -shared \
1924         -export-symbols-regex '^pam_sm_.*'
1925
1926 pam_systemd_la_LIBADD = \
1927         libsystemd-basic.la \
1928         libsystemd-daemon.la \
1929         $(PAM_LIBS) \
1930         $(DBUS_LIBS)
1931
1932 pamlib_LTLIBRARIES = \
1933         pam_systemd.la
1934 endif
1935
1936 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1937 libsystemd-login-install-hook:
1938         if test "$(libdir)" != "$(rootlibdir)"; then \
1939                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1940                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1941                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1942                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1943                 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1944         fi
1945
1946 INSTALL_EXEC_HOOKS += \
1947         libsystemd-login-install-hook
1948
1949 libsystemd-login-uninstall-hook:
1950         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1951
1952 UNINSTALL_EXEC_HOOKS += \
1953         libsystemd-login-uninstall-hook
1954
1955 nodist_systemunit_DATA += \
1956         units/systemd-logind.service \
1957         units/systemd-user-sessions.service
1958
1959 dist_dbussystemservice_DATA += \
1960         src/login/org.freedesktop.login1.service
1961
1962 dist_dbuspolicy_DATA += \
1963         src/login/org.freedesktop.login1.conf
1964
1965 dist_pkgsysconf_DATA += \
1966         src/login/systemd-logind.conf
1967
1968 pkginclude_HEADERS += \
1969         src/systemd/sd-login.h
1970
1971 lib_LTLIBRARIES += \
1972         libsystemd-login.la
1973
1974 pkgconfiglib_DATA += \
1975         src/login/libsystemd-login.pc
1976
1977 polkitpolicy_in_files += \
1978         src/login/org.freedesktop.login1.policy.in
1979
1980 logind-install-data-hook:
1981         $(MKDIR_P) -m 0755 \
1982                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1983                 $(DESTDIR)$(localstatedir)/lib/systemd
1984         ( cd $(DESTDIR)$(systemunitdir) && \
1985                 rm -f dbus-org.freedesktop.login1.service && \
1986                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
1987         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1988                 rm -f systemd-logind.service systemd-user-sessions.service && \
1989                 $(LN_S) ../systemd-logind.service systemd-logind.service && \
1990                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1991
1992 INSTALL_DATA_HOOKS += \
1993         logind-install-data-hook
1994
1995 systemd_multi_seat_x_SOURCES = \
1996         src/login/multi-seat-x.c
1997
1998 systemd_multi_seat_x_CFLAGS = \
1999         $(AM_CFLAGS) \
2000         $(UDEV_CFLAGS)
2001
2002 systemd_multi_seat_x_LDADD = \
2003         libsystemd-basic.la \
2004         $(UDEV_LIBS)
2005
2006 rootlibexec_PROGRAMS += \
2007         systemd-multi-seat-x
2008
2009 systemd_uaccess_SOURCES = \
2010         src/login/uaccess.c
2011
2012 if HAVE_ACL
2013 systemd_uaccess_SOURCES += \
2014         src/login/logind-acl.c \
2015         src/acl-util.c
2016 endif
2017
2018 systemd_uaccess_CFLAGS = \
2019         $(AM_CFLAGS) \
2020         $(UDEV_CFLAGS) \
2021         $(ACL_CFLAGS)
2022
2023 systemd_uaccess_LDADD = \
2024         libsystemd-basic.la \
2025         libsystemd-daemon.la \
2026         libsystemd-login.la \
2027         $(UDEV_LIBS) \
2028         $(ACL_LIBS)
2029
2030 rootlibexec_PROGRAMS += \
2031         systemd-uaccess
2032
2033 dist_udevrules_DATA += \
2034         src/login/70-uaccess.rules
2035
2036 dist_udevrules_DATA += \
2037         src/login/71-seat.rules
2038
2039 nodist_udevrules_DATA += \
2040         src/login/73-seat-late.rules
2041
2042 MANPAGES += \
2043         man/systemd-logind.conf.5 \
2044         man/sd-login.7 \
2045         man/systemd-loginctl.1 \
2046         man/sd_login_monitor_new.3 \
2047         man/sd_pid_get_session.3 \
2048         man/sd_uid_get_state.3 \
2049         man/sd_session_is_active.3 \
2050         man/sd_seat_get_active.3 \
2051         man/sd_get_seats.3
2052
2053 MANPAGES_ALIAS += \
2054         man/sd_login_monitor_unref.3 \
2055         man/sd_login_monitor_flush.3 \
2056         man/sd_login_monitor_get_fd.3 \
2057         man/sd_session_get_uid.3 \
2058         man/sd_session_get_seat.3 \
2059         man/sd_session_get_service.3 \
2060         man/sd_session_get_type.3 \
2061         man/sd_session_get_class.3 \
2062         man/sd_session_get_display.3 \
2063         man/sd_pid_get_owner_uid.3 \
2064         man/sd_pid_get_unit.3 \
2065         man/sd_uid_is_on_seat.3 \
2066         man/sd_uid_get_sessions.3 \
2067         man/sd_uid_get_seats.3 \
2068         man/sd_seat_get_sessions.3 \
2069         man/sd_seat_can_multi_session.3 \
2070         man/sd_get_sessions.3 \
2071         man/sd_get_uids.3
2072
2073 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
2074 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
2075 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
2076 man/sd_session_get_uid.3: man/sd_session_is_active.3
2077 man/sd_session_get_seat.3: man/sd_session_is_active.3
2078 man/sd_session_get_service.3: man/sd_session_is_active.3
2079 man/sd_session_get_type.3: man/sd_session_is_active.3
2080 man/sd_session_get_class.3: man/sd_session_is_active.3
2081 man/sd_session_get_display.3: man/sd_session_is_active.3
2082 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
2083 man/sd_pid_get_unit.3: man/sd_pid_get_session.3
2084 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
2085 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
2086 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
2087 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
2088 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
2089 man/sd_get_sessions.3: man/sd_get_seats.3
2090 man/sd_get_uids.3: man/sd_get_seats.3
2091
2092 EXTRA_DIST += \
2093         src/login/logind-gperf.gperf \
2094         src/login/libsystemd-login.pc.in \
2095         src/login/libsystemd-login.sym \
2096         src/login/logind.h \
2097         src/login/logind-device.h \
2098         src/login/logind-seat.h \
2099         src/login/logind-session.h \
2100         src/login/logind-user.h \
2101         src/login/logind-acl.h \
2102         src/login/73-seat-late.rules.in \
2103         units/systemd-logind.service.in \
2104         units/systemd-user-sessions.service.in
2105
2106 CLEANFILES += \
2107         src/login/logind-gperf.c \
2108         src/login/73-seat-late.rules
2109 endif
2110 # ------------------------------------------------------------------------------
2111
2112 SED_PROCESS = \
2113         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2114         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
2115                 -e 's,@rootbindir\@,$(rootbindir),g' \
2116                 -e 's,@bindir\@,$(bindir),g' \
2117                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
2118                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
2119                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
2120                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
2121                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
2122                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
2123                 -e 's,@userunitdir\@,$(userunitdir),g' \
2124                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
2125                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
2126                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
2127                 -e 's,@prefix\@,$(prefix),g' \
2128                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
2129                 -e 's,@libdir\@,$(libdir),g' \
2130                 -e 's,@includedir\@,$(includedir),g' \
2131                 < $< > $@ || rm $@
2132
2133 units/%: units/%.in Makefile
2134         $(SED_PROCESS)
2135
2136 man/%: man/%.in Makefile
2137         $(SED_PROCESS)
2138
2139 sysctl.d/%: sysctl.d/%.in Makefile
2140         $(SED_PROCESS)
2141
2142 %.pc: %.pc.in Makefile
2143         $(SED_PROCESS)
2144
2145 src/%.policy.in: src/%.policy.in.in Makefile
2146         $(SED_PROCESS)
2147
2148 src/%.rules: src/%.rules.in Makefile
2149         $(SED_PROCESS)
2150
2151 src/%.c: src/%.gperf
2152         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2153         $(GPERF) < $< > $@
2154
2155 src/%: src/%.m4
2156         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2157         $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
2158
2159 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
2160         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2161         $(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 $@
2162
2163 M4_PROCESS_SYSTEM = \
2164         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2165         $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
2166
2167 M4_PROCESS_USER = \
2168         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2169         $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
2170
2171 units/%: units/%.m4 Makefile
2172         $(M4_PROCESS_SYSTEM)
2173
2174 units/user/%: units/%.m4 Makefile
2175         $(M4_PROCESS_USER)
2176
2177 CLEANFILES += \
2178         $(nodist_systemunit_DATA) \
2179         $(nodist_userunit_DATA) \
2180         $(nodist_man_MANS) \
2181         $(pkgconfigdata_DATA) \
2182         $(pkgconfiglib_DATA) \
2183         $(nodist_polkitpolicy_DATA) \
2184         src/load-fragment-gperf.gperf \
2185         src/load-fragment-gperf.c \
2186         src/load-fragment-gperf-nulstr.c \
2187         src/99-systemd.rules
2188
2189 if HAVE_VALAC
2190 CLEANFILES += \
2191         ${systemadm_SOURCES:.vala=.c}
2192 endif
2193
2194 if HAVE_XSLTPROC
2195 XSLTPROC_FLAGS = \
2196         --nonet \
2197         --stringparam funcsynopsis.style ansi
2198
2199 XSLTPROC_PROCESS_MAN = \
2200         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2201         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2202
2203 XSLTPROC_PROCESS_HTML = \
2204         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2205         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
2206
2207 man/%.1: man/%.xml
2208         $(XSLTPROC_PROCESS_MAN)
2209
2210 man/%.3: man/%.xml
2211         $(XSLTPROC_PROCESS_MAN)
2212
2213 man/%.5: man/%.xml
2214         $(XSLTPROC_PROCESS_MAN)
2215
2216 man/%.7: man/%.xml
2217         $(XSLTPROC_PROCESS_MAN)
2218
2219 man/%.8: man/%.xml
2220         $(XSLTPROC_PROCESS_MAN)
2221
2222 man/%.html: man/%.xml
2223         $(XSLTPROC_PROCESS_HTML)
2224
2225 CLEANFILES += \
2226         $(dist_man_MANS) \
2227         ${XML_FILES:.xml=.html}
2228 endif
2229
2230 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2231
2232 org.freedesktop.systemd1.%.xml: systemd
2233         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2234                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2235                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2236
2237 CLEANFILES += \
2238         $(dbusinterface_DATA)
2239
2240 systemd-install-data-hook:
2241         $(MKDIR_P) -m 0755 \
2242                 $(DESTDIR)$(tmpfilesdir) \
2243                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2244                 $(DESTDIR)$(prefix)/lib/modules-load.d \
2245                 $(DESTDIR)$(sysconfdir)/modules-load.d \
2246                 $(DESTDIR)$(prefix)/lib/sysctl.d \
2247                 $(DESTDIR)$(sysconfdir)/sysctl.d \
2248                 $(DESTDIR)$(systemshutdowndir) \
2249                 $(DESTDIR)$(systemgeneratordir) \
2250                 $(DESTDIR)$(usergeneratordir)
2251         $(MKDIR_P) -m 0755 \
2252                 $(DESTDIR)$(systemunitdir) \
2253                 $(DESTDIR)$(userunitdir) \
2254                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2255                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2256                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
2257                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2258                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2259                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2260                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2261                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2262                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2263                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2264                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2265                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2266                 $(DESTDIR)$(pkgsysconfdir)/system \
2267                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2268                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2269                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2270                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2271                 $(DESTDIR)$(pkgsysconfdir)/user \
2272                 $(DESTDIR)$(dbussessionservicedir) \
2273                 $(DESTDIR)$(sysconfdir)/xdg/systemd
2274         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2275                 rm -f user && \
2276                 $(LN_S) $(pkgsysconfdir)/user user )
2277         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2278                 rm -f systemd-initctl.socket systemd-shutdownd.socket && \
2279                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2280                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
2281         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2282                 rm -f systemd-update-utmp-runlevel.service && \
2283                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2284         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.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)/runlevel3.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)/runlevel4.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)/runlevel5.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)/shutdown.target.wants && \
2297                 rm -f systemd-update-utmp-shutdown.service && \
2298                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service )
2299         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2300                 rm -f systemd-remount-api-vfs.service \
2301                         fsck-root.service \
2302                         remount-rootfs.service \
2303                         var-run.mount \
2304                         media.mount && \
2305                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2306                 $(LN_S) ../fsck-root.service fsck-root.service && \
2307                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2308                 $(LN_S) ../var-run.mount var-run.mount && \
2309                 $(LN_S) ../media.mount media.mount )
2310         ( cd $(DESTDIR)$(userunitdir) && \
2311                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2312                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2313                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2314                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2315                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
2316                 $(LN_S) $(systemunitdir)/sound.target sound.target )
2317         ( cd $(DESTDIR)$(systemunitdir) && \
2318                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2319                 $(LN_S) poweroff.target runlevel0.target && \
2320                 $(LN_S) rescue.target runlevel1.target && \
2321                 $(LN_S) multi-user.target runlevel2.target && \
2322                 $(LN_S) multi-user.target runlevel3.target && \
2323                 $(LN_S) multi-user.target runlevel4.target && \
2324                 $(LN_S) graphical.target runlevel5.target && \
2325                 $(LN_S) reboot.target runlevel6.target )
2326         ( cd $(DESTDIR)$(systemunitdir) && \
2327                 rm -f default.target ctrl-alt-del.target autovt@.service && \
2328                 $(LN_S) graphical.target default.target && \
2329                 $(LN_S) reboot.target ctrl-alt-del.target && \
2330                 $(LN_S) getty@.service autovt@.service )
2331         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2332                 rm -f getty.target systemd-ask-password-wall.path && \
2333                 $(LN_S) ../getty.target getty.target && \
2334                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2335         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2336                 rm -f getty@tty1.service && \
2337                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2338         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2339                 rm -f remote-fs.target && \
2340                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2341         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2342                 rm -f dev-hugepages.mount \
2343                         dev-mqueue.mount \
2344                         sys-kernel-config.mount \
2345                         sys-kernel-debug.mount \
2346                         sys-kernel-security.mount \
2347                         sys-fs-fuse-connections.mount \
2348                         systemd-modules-load.service \
2349                         systemd-tmpfiles-setup.service \
2350                         systemd-sysctl.service \
2351                         systemd-ask-password-console.path && \
2352                 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2353                 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2354                 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2355                 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2356                 $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
2357                 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2358                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2359                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2360                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2361                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
2362         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2363                 rm -f systemd-tmpfiles-clean.timer && \
2364                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2365         ( cd $(DESTDIR)$(dbussessionservicedir) && \
2366                 rm -f org.freedesktop.systemd1.service && \
2367                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2368 if HAVE_PLYMOUTH
2369         $(MKDIR_P) -m 0755 \
2370                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2371                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2372                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2373                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2374                 $(DESTDIR)$(systemunitdir)/halt.target.wants
2375         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2376                 rm -f plymouth-start.service plymouth-read-write.service && \
2377                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2378                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2379         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2380                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2381                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2382                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2383         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2384                 rm -f plymouth-reboot.service && \
2385                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2386         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2387                 rm -f plymouth-kexec.service && \
2388                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2389         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2390                 rm -f plymouth-poweroff.service && \
2391                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2392         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2393                 rm -f plymouth-halt.service && \
2394                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2395 endif
2396 if TARGET_MEEGO
2397         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2398         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2399                 rm -f network.target && \
2400                 $(LN_S) $(systemunitdir)/network.target network.target )
2401         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2402                 rm -f * )
2403         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2404                 rm -f * )
2405         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2406                 rm -f * )
2407         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2408                 rm -f * )
2409 endif
2410
2411 if TARGET_FEDORA
2412         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2413         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2414                 rm -f halt-local.service && \
2415                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2416         ( cd $(DESTDIR)$(systemunitdir) && \
2417                 rm -f display-manager.service single.service && \
2418                 $(LN_S) prefdm.service display-manager.service && \
2419                 $(LN_S) rescue.service single.service )
2420         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2421                 rm -f display-manager.service && \
2422                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2423 endif
2424
2425 if TARGET_MANDRIVA
2426         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2427         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2428                 rm -f halt-local.service && \
2429                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2430         ( cd $(DESTDIR)$(systemunitdir) && \
2431                 rm -f display-manager.service dm.service single.service && \
2432                 $(LN_S) prefdm.service display-manager.service && \
2433                 $(LN_S) prefdm.service dm.service && \
2434                 $(LN_S) rescue.service single.service )
2435         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2436                 rm -f display-manager.service && \
2437                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2438 endif
2439
2440 if TARGET_DEBIAN_OR_UBUNTU
2441         ( cd $(DESTDIR)$(systemunitdir) && \
2442                 rm -f runlevel5.target && \
2443                 $(LN_S) multi-user.target runlevel5.target )
2444 endif
2445
2446 if TARGET_SUSE
2447         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2448         ( cd $(DESTDIR)$(systemunitdir) && \
2449                 rm -f local.service && \
2450                 $(LN_S) rc-local.service local.service )
2451         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2452                 rm -f halt-local.service && \
2453                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2454 endif
2455
2456 if TARGET_MAGEIA
2457         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2458         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2459                 rm -f halt-local.service && \
2460                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2461         ( cd $(DESTDIR)$(systemunitdir) && \
2462                 rm -f display-manager.service && \
2463                 $(LN_S) prefdm.service display-manager.service && \
2464                 $(LN_S) prefdm.service dm.service )
2465         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2466                 rm -f display-manager.service && \
2467                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2468 endif
2469
2470 if HAVE_SYSV_COMPAT
2471         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2472                 rm -f var-lock.mount && \
2473                 $(LN_S) ../var-lock.mount var-lock.mount )
2474 endif
2475
2476 install-exec-hook: $(INSTALL_EXEC_HOOKS)
2477
2478 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
2479
2480 install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2481
2482 DISTCHECK_CONFIGURE_FLAGS = \
2483         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2484         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2485         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2486         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2487         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2488         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2489         --with-rootprefix=$$dc_install_base/$(prefix)
2490
2491
2492 upload: all distcheck
2493         cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
2494         scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
2495         scp man/*.html fdo:/srv/www.freedesktop.org/www/software/systemd/man/
2496         scp man/*.html tango:public/systemd-man/
2497
2498 git-tag:
2499         git tag "v$(VERSION)" -m "systemd $(VERSION)"