chiark / gitweb /
NEWS: update
[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=1
24 LIBSYSTEMD_LOGIN_REVISION=1
25 LIBSYSTEMD_LOGIN_AGE=1
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=1
33 LIBSYSTEMD_ID128_AGE=0
34
35 LIBSYSTEMD_JOURNAL_CURRENT=0
36 LIBSYSTEMD_JOURNAL_REVISION=1
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=\"$(rootbindir)/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         systemd \
165         systemctl \
166         systemd-notify \
167         systemd-ask-password \
168         systemd-tty-ask-password-agent \
169         systemd-tmpfiles \
170         systemd-machine-id-setup
171
172 bin_PROGRAMS = \
173         systemd-cgls \
174         systemd-cgtop \
175         systemd-stdio-bridge \
176         systemd-nspawn
177
178 dist_bin_SCRIPTS = \
179         src/systemd-analyze
180
181 if HAVE_GTK
182 bin_PROGRAMS += \
183         systemadm \
184         systemd-gnome-ask-password-agent
185 endif
186
187 rootlibexec_PROGRAMS = \
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
473 libsystemd_basic_la_CFLAGS = \
474         $(AM_CFLAGS) \
475         $(SELINUX_CFLAGS)
476
477 libsystemd_basic_la_LIBADD = \
478         $(SELINUX_LIBS) \
479         $(CAP_LIBS)
480
481 libsystemd_core_la_SOURCES = \
482         src/unit.c \
483         src/job.c \
484         src/manager.c \
485         src/path-lookup.c \
486         src/load-fragment.c \
487         src/service.c \
488         src/automount.c \
489         src/mount.c \
490         src/swap.c \
491         src/device.c \
492         src/target.c \
493         src/snapshot.c \
494         src/socket.c \
495         src/timer.c \
496         src/path.c \
497         src/load-dropin.c \
498         src/execute.c \
499         src/utmp-wtmp.c \
500         src/dbus.c \
501         src/dbus-manager.c \
502         src/dbus-unit.c \
503         src/dbus-job.c \
504         src/dbus-service.c \
505         src/dbus-socket.c \
506         src/dbus-timer.c \
507         src/dbus-target.c \
508         src/dbus-mount.c \
509         src/dbus-automount.c \
510         src/dbus-swap.c \
511         src/dbus-snapshot.c \
512         src/dbus-device.c \
513         src/dbus-execute.c \
514         src/dbus-path.c \
515         src/cgroup.c \
516         src/mount-setup.c \
517         src/hostname-setup.c \
518         src/selinux-setup.c \
519         src/loopback-setup.c \
520         src/kmod-setup.c \
521         src/locale-setup.c \
522         src/machine-id-setup.c \
523         src/specifier.c \
524         src/unit-name.c \
525         src/fdset.c \
526         src/namespace.c \
527         src/tcpwrap.c \
528         src/cgroup-util.c \
529         src/condition.c \
530         src/dbus-common.c \
531         src/sd-daemon.c \
532         src/install.c \
533         src/cgroup-attr.c \
534         src/sd-id128.c
535
536 nodist_libsystemd_core_la_SOURCES = \
537         src/load-fragment-gperf.c \
538         src/load-fragment-gperf-nulstr.c
539
540 EXTRA_DIST += \
541         src/load-fragment-gperf.gperf.m4
542
543 libsystemd_core_la_CFLAGS = \
544         $(AM_CFLAGS) \
545         $(DBUS_CFLAGS) \
546         $(UDEV_CFLAGS) \
547         $(LIBWRAP_CFLAGS) \
548         $(PAM_CFLAGS) \
549         $(AUDIT_CFLAGS)
550
551 libsystemd_core_la_LIBADD = \
552         libsystemd-basic.la \
553         $(DBUS_LIBS) \
554         $(UDEV_LIBS) \
555         $(LIBWRAP_LIBS) \
556         $(PAM_LIBS) \
557         $(AUDIT_LIBS) \
558         $(CAP_LIBS)
559
560 # This is needed because automake is buggy in how it generates the
561 # rules for C programs, but not Vala programs.  We therefore can't
562 # list the .h files as dependencies if we want make dist to work.
563
564 EXTRA_DIST += \
565         src/util.h \
566         src/virt.h \
567         src/label.h \
568         src/hashmap.h \
569         src/set.h \
570         src/strv.h \
571         src/conf-parser.h \
572         src/socket-util.h \
573         src/log.h \
574         src/ratelimit.h \
575         src/exit-status.h \
576         src/unit.h \
577         src/job.h \
578         src/manager.h \
579         src/path-lookup.h \
580         src/load-fragment.h \
581         src/service.h \
582         src/automount.h \
583         src/mount.h \
584         src/swap.h \
585         src/device.h \
586         src/target.h \
587         src/snapshot.h \
588         src/socket.h \
589         src/timer.h \
590         src/path.h \
591         src/load-dropin.h \
592         src/execute.h \
593         src/utmp-wtmp.h \
594         src/dbus.h \
595         src/dbus-manager.h \
596         src/dbus-unit.h \
597         src/dbus-job.h \
598         src/dbus-service.h \
599         src/dbus-socket.h \
600         src/dbus-timer.h \
601         src/dbus-target.h \
602         src/dbus-mount.h \
603         src/dbus-automount.h \
604         src/dbus-swap.h \
605         src/dbus-snapshot.h \
606         src/dbus-device.h \
607         src/dbus-execute.h \
608         src/dbus-path.h \
609         src/cgroup.h \
610         src/mount-setup.h \
611         src/hostname-setup.h \
612         src/selinux-setup.h \
613         src/loopback-setup.h \
614         src/kmod-setup.h \
615         src/locale-setup.h \
616         src/machine-id-setup.h \
617         src/specifier.h \
618         src/unit-name.h \
619         src/fdset.h \
620         src/namespace.h \
621         src/tcpwrap.h \
622         src/cgroup-util.h \
623         src/condition.h \
624         src/dbus-common.h \
625         src/install.h \
626         src/cgroup-attr.h \
627         src/macro.h \
628         src/def.h \
629         src/ioprio.h \
630         src/missing.h \
631         src/list.h \
632         src/securebits.h \
633         src/linux/auto_dev-ioctl.h \
634         src/linux/fanotify.h \
635         src/initreq.h \
636         src/special.h \
637         src/dbus-common.h \
638         src/bus-errors.h \
639         src/cgroup-show.h \
640         src/build.h \
641         src/shutdownd.h \
642         src/umount.h \
643         src/ask-password-api.h \
644         src/pager.h \
645         src/sysfs-show.h \
646         src/polkit.h \
647         src/dbus-loop.h \
648         src/spawn-agent.h \
649         src/acl-util.h \
650         src/logs-show.h
651
652 MANPAGES = \
653         man/systemd.1 \
654         man/systemctl.1 \
655         man/systemadm.1 \
656         man/systemd-cgls.1 \
657         man/systemd-cgtop.1 \
658         man/systemd-nspawn.1 \
659         man/systemd-tmpfiles.8 \
660         man/systemd-notify.1 \
661         man/systemd.unit.5 \
662         man/systemd.service.5 \
663         man/systemd.socket.5 \
664         man/systemd.mount.5 \
665         man/systemd.automount.5 \
666         man/systemd.swap.5 \
667         man/systemd.timer.5 \
668         man/systemd.path.5 \
669         man/systemd.target.5 \
670         man/systemd.device.5 \
671         man/systemd.snapshot.5 \
672         man/systemd.exec.5 \
673         man/daemon.7 \
674         man/runlevel.8 \
675         man/telinit.8 \
676         man/halt.8 \
677         man/shutdown.8 \
678         man/pam_systemd.8 \
679         man/systemd.conf.5 \
680         man/tmpfiles.d.5 \
681         man/hostname.5 \
682         man/timezone.5 \
683         man/machine-id.5 \
684         man/locale.conf.5 \
685         man/os-release.5 \
686         man/machine-info.5 \
687         man/modules-load.d.5 \
688         man/sysctl.d.5 \
689         man/systemd-ask-password.1
690
691 MANPAGES_ALIAS = \
692         man/reboot.8 \
693         man/poweroff.8 \
694         man/init.1
695
696 man/reboot.8: man/halt.8
697 man/poweroff.8: man/halt.8
698 man/init.1: man/systemd.1
699
700 dist_man_MANS = \
701         $(MANPAGES) \
702         $(MANPAGES_ALIAS)
703
704 nodist_man_MANS = \
705         man/systemd.special.7
706
707 XML_FILES = \
708         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
709
710 XML_IN_FILES = \
711         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
712
713 dist_noinst_DATA = \
714         ${XML_FILES:.xml=.html}
715
716 nodist_noinst_DATA = \
717         ${XML_IN_FILES:.xml.in=.html}
718
719 EXTRA_DIST += \
720         $(XML_FILES) \
721         $(XML_IN_FILES) \
722         ${nodist_man_MANS:=.in} \
723         ${XML_IN_FILES:.xml.in=.html.in}
724
725 systemd_SOURCES = \
726         src/main.c
727
728 systemd_CFLAGS = \
729         $(AM_CFLAGS) \
730         $(DBUS_CFLAGS) \
731         $(UDEV_CFLAGS)
732
733 systemd_LDADD = \
734         libsystemd-core.la
735
736 test_engine_SOURCES = \
737         src/test-engine.c
738
739 test_engine_CFLAGS = $(systemd_CFLAGS)
740 test_engine_LDADD = $(systemd_LDADD)
741
742 test_job_type_SOURCES = \
743         src/test-job-type.c
744
745 test_job_type_CFLAGS = $(systemd_CFLAGS)
746 test_job_type_LDADD = $(systemd_LDADD)
747
748 test_ns_SOURCES = \
749         src/test-ns.c
750
751 test_ns_CFLAGS = $(systemd_CFLAGS)
752 test_ns_LDADD = $(systemd_LDADD)
753
754 test_loopback_SOURCES = \
755         src/test-loopback.c \
756         src/loopback-setup.c
757
758 test_loopback_LDADD = \
759         libsystemd-basic.la
760
761 test_hostname_SOURCES = \
762         src/test-hostname.c \
763         src/hostname-setup.c
764
765 test_hostname_LDADD = \
766         libsystemd-basic.la
767
768 test_daemon_SOURCES = \
769         src/test-daemon.c
770
771 test_daemon_LDADD = \
772         libsystemd-basic.la \
773         libsystemd-daemon.la
774
775 test_cgroup_SOURCES = \
776         src/test-cgroup.c \
777         src/cgroup-util.c
778
779 test_cgroup_LDADD = \
780         libsystemd-basic.la
781
782 test_env_replace_SOURCES = \
783         src/test-env-replace.c
784
785 test_env_replace_LDADD = \
786         libsystemd-basic.la
787
788 test_strv_SOURCES = \
789         src/test-strv.c \
790         src/specifier.c
791
792 test_strv_LDADD = \
793         libsystemd-basic.la
794
795 test_install_SOURCES = \
796         src/test-install.c \
797         src/install.c \
798         src/path-lookup.c \
799         src/unit-name.c
800
801 test_install_CFLAGS = \
802         $(AM_CFLAGS) \
803         $(DBUS_CFLAGS)
804
805 test_install_LDADD = \
806         libsystemd-basic.la
807
808 systemd_initctl_SOURCES = \
809         src/initctl.c \
810         src/dbus-common.c
811
812 systemd_initctl_CFLAGS = \
813         $(AM_CFLAGS) \
814         $(DBUS_CFLAGS)
815
816 systemd_initctl_LDADD = \
817         libsystemd-basic.la \
818         libsystemd-daemon.la \
819         $(DBUS_LIBS)
820
821 systemd_update_utmp_SOURCES = \
822         src/update-utmp.c \
823         src/dbus-common.c \
824         src/utmp-wtmp.c
825
826 systemd_update_utmp_CFLAGS = \
827         $(AM_CFLAGS) \
828         $(DBUS_CFLAGS) \
829         $(AUDIT_CFLAGS)
830
831 systemd_update_utmp_LDADD = \
832         libsystemd-basic.la \
833         $(DBUS_LIBS) \
834         $(AUDIT_LIBS)
835
836 systemd_shutdownd_SOURCES = \
837         src/utmp-wtmp.c \
838         src/shutdownd.c
839
840 systemd_shutdownd_CFLAGS = \
841         $(AM_CFLAGS)
842
843 systemd_shutdownd_LDADD = \
844         libsystemd-basic.la \
845         libsystemd-daemon.la
846
847 systemd_shutdown_SOURCES = \
848         src/mount-setup.c \
849         src/umount.c \
850         src/shutdown.c
851
852 systemd_shutdown_CFLAGS = \
853         $(AM_CFLAGS) \
854         $(UDEV_CFLAGS)
855
856 systemd_shutdown_LDADD = \
857         libsystemd-basic.la \
858         $(UDEV_LIBS)
859
860 systemd_modules_load_SOURCES = \
861         src/modules-load.c
862
863 systemd_modules_load_LDADD = \
864         libsystemd-basic.la
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_pid_get_owner_uid.3 \
2060         man/sd_pid_get_unit.3 \
2061         man/sd_uid_is_on_seat.3 \
2062         man/sd_uid_get_sessions.3 \
2063         man/sd_uid_get_seats.3 \
2064         man/sd_seat_get_sessions.3 \
2065         man/sd_seat_can_multi_session.3 \
2066         man/sd_get_sessions.3 \
2067         man/sd_get_uids.3
2068
2069 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
2070 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
2071 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
2072 man/sd_session_get_uid.3: man/sd_session_is_active.3
2073 man/sd_session_get_seat.3: man/sd_session_is_active.3
2074 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
2075 man/sd_pid_get_unit.3: man/sd_pid_get_session.3
2076 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
2077 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
2078 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
2079 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
2080 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
2081 man/sd_get_sessions.3: man/sd_get_seats.3
2082 man/sd_get_uids.3: man/sd_get_seats.3
2083
2084 EXTRA_DIST += \
2085         src/login/logind-gperf.gperf \
2086         src/login/libsystemd-login.pc.in \
2087         src/login/libsystemd-login.sym \
2088         src/login/logind.h \
2089         src/login/logind-device.h \
2090         src/login/logind-seat.h \
2091         src/login/logind-session.h \
2092         src/login/logind-user.h \
2093         src/login/logind-acl.h \
2094         src/login/73-seat-late.rules.in \
2095         units/systemd-logind.service.in \
2096         units/systemd-user-sessions.service.in
2097
2098 CLEANFILES += \
2099         src/login/logind-gperf.c \
2100         src/login/73-seat-late.rules
2101 endif
2102 # ------------------------------------------------------------------------------
2103
2104 SED_PROCESS = \
2105         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2106         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
2107                 -e 's,@rootbindir\@,$(rootbindir),g' \
2108                 -e 's,@bindir\@,$(bindir),g' \
2109                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
2110                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
2111                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
2112                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
2113                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
2114                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
2115                 -e 's,@userunitdir\@,$(userunitdir),g' \
2116                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
2117                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
2118                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
2119                 -e 's,@prefix\@,$(prefix),g' \
2120                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
2121                 -e 's,@libdir\@,$(libdir),g' \
2122                 -e 's,@includedir\@,$(includedir),g' \
2123                 < $< > $@ || rm $@
2124
2125 units/%: units/%.in Makefile
2126         $(SED_PROCESS)
2127
2128 man/%: man/%.in Makefile
2129         $(SED_PROCESS)
2130
2131 sysctl.d/%: sysctl.d/%.in Makefile
2132         $(SED_PROCESS)
2133
2134 %.pc: %.pc.in Makefile
2135         $(SED_PROCESS)
2136
2137 src/%.policy.in: src/%.policy.in.in Makefile
2138         $(SED_PROCESS)
2139
2140 src/%.rules: src/%.rules.in Makefile
2141         $(SED_PROCESS)
2142
2143 src/%.c: src/%.gperf
2144         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2145         $(GPERF) < $< > $@
2146
2147 src/%: src/%.m4
2148         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2149         $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
2150
2151 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
2152         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2153         $(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 $@
2154
2155 M4_PROCESS_SYSTEM = \
2156         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2157         $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
2158
2159 M4_PROCESS_USER = \
2160         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2161         $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
2162
2163 units/%: units/%.m4 Makefile
2164         $(M4_PROCESS_SYSTEM)
2165
2166 units/user/%: units/%.m4 Makefile
2167         $(M4_PROCESS_USER)
2168
2169 CLEANFILES += \
2170         $(nodist_systemunit_DATA) \
2171         $(nodist_userunit_DATA) \
2172         $(nodist_man_MANS) \
2173         ${XML_IN_FILES:.xml.in=.html} \
2174         $(pkgconfigdata_DATA) \
2175         $(pkgconfiglib_DATA) \
2176         $(nodist_polkitpolicy_DATA) \
2177         src/load-fragment-gperf.gperf \
2178         src/load-fragment-gperf.c \
2179         src/load-fragment-gperf-nulstr.c \
2180         src/99-systemd.rules
2181
2182 if HAVE_VALAC
2183 CLEANFILES += \
2184         ${systemadm_SOURCES:.vala=.c}
2185 endif
2186
2187 if HAVE_XSLTPROC
2188 XSLTPROC_FLAGS = \
2189         --nonet \
2190         --stringparam funcsynopsis.style ansi
2191
2192 XSLTPROC_PROCESS_MAN = \
2193         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2194         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2195
2196 XSLTPROC_PROCESS_MAN_IN = \
2197         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2198         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
2199         mv ${@:.in=} $@
2200
2201 XSLTPROC_PROCESS_HTML = \
2202         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2203         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
2204
2205 XSLTPROC_PROCESS_HTML_IN = \
2206         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2207         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< && \
2208         mv ${@:.in=} $@
2209
2210 man/%.1: man/%.xml
2211         $(XSLTPROC_PROCESS_MAN)
2212
2213 man/%.1.in: man/%.xml.in
2214         $(XSLTPROC_PROCESS_MAN)
2215
2216 man/%.3: man/%.xml
2217         $(XSLTPROC_PROCESS_MAN)
2218
2219 man/%.3.in: man/%.xml.in
2220         $(XSLTPROC_PROCESS_MAN)
2221
2222 man/%.5: man/%.xml
2223         $(XSLTPROC_PROCESS_MAN)
2224
2225 man/%.5.in: man/%.xml.in
2226         $(XSLTPROC_PROCESS_MAN)
2227
2228 man/%.7: man/%.xml
2229         $(XSLTPROC_PROCESS_MAN)
2230
2231 man/%.7.in: man/%.xml.in
2232         $(XSLTPROC_PROCESS_MAN_IN)
2233
2234 man/%.8: man/%.xml
2235         $(XSLTPROC_PROCESS_MAN)
2236
2237 man/%.8.in: man/%.xml.in
2238         $(XSLTPROC_PROCESS_MAN_IN)
2239
2240 man/%.html: man/%.xml
2241         $(XSLTPROC_PROCESS_HTML)
2242
2243 man/%.html.in: man/%.xml.in
2244         $(XSLTPROC_PROCESS_HTML_IN)
2245
2246 CLEANFILES += \
2247         $(dist_man_MANS) \
2248         ${nodist_man_MANS:=.in} \
2249         ${XML_FILES:.xml=.html} \
2250         ${XML_IN_FILES:.xml.in=.html.in}
2251 endif
2252
2253 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2254
2255 org.freedesktop.systemd1.%.xml: systemd
2256         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2257                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2258                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2259
2260 CLEANFILES += \
2261         $(dbusinterface_DATA)
2262
2263 systemd-install-data-hook:
2264         $(MKDIR_P) -m 0755 \
2265                 $(DESTDIR)$(tmpfilesdir) \
2266                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2267                 $(DESTDIR)$(prefix)/lib/modules-load.d \
2268                 $(DESTDIR)$(sysconfdir)/modules-load.d \
2269                 $(DESTDIR)$(prefix)/lib/sysctl.d \
2270                 $(DESTDIR)$(sysconfdir)/sysctl.d \
2271                 $(DESTDIR)$(systemshutdowndir) \
2272                 $(DESTDIR)$(systemgeneratordir) \
2273                 $(DESTDIR)$(usergeneratordir)
2274         $(MKDIR_P) -m 0755 \
2275                 $(DESTDIR)$(systemunitdir) \
2276                 $(DESTDIR)$(userunitdir) \
2277                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2278                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2279                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
2280                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2281                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2282                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2283                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2284                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2285                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2286                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2287                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2288                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2289                 $(DESTDIR)$(pkgsysconfdir)/system \
2290                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2291                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2292                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2293                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2294                 $(DESTDIR)$(pkgsysconfdir)/user \
2295                 $(DESTDIR)$(dbussessionservicedir) \
2296                 $(DESTDIR)$(sysconfdir)/xdg/systemd
2297         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2298                 rm -f user && \
2299                 $(LN_S) $(pkgsysconfdir)/user user )
2300         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2301                 rm -f systemd-initctl.socket systemd-shutdownd.socket && \
2302                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2303                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
2304         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2305                 rm -f systemd-update-utmp-runlevel.service && \
2306                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2307         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
2308                 rm -f systemd-update-utmp-runlevel.service && \
2309                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2310         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
2311                 rm -f systemd-update-utmp-runlevel.service && \
2312                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2313         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
2314                 rm -f systemd-update-utmp-runlevel.service && \
2315                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2316         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
2317                 rm -f systemd-update-utmp-runlevel.service && \
2318                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2319         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
2320                 rm -f systemd-update-utmp-shutdown.service && \
2321                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service )
2322         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2323                 rm -f systemd-remount-api-vfs.service \
2324                         fsck-root.service \
2325                         remount-rootfs.service \
2326                         var-run.mount \
2327                         media.mount && \
2328                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2329                 $(LN_S) ../fsck-root.service fsck-root.service && \
2330                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2331                 $(LN_S) ../var-run.mount var-run.mount && \
2332                 $(LN_S) ../media.mount media.mount )
2333         ( cd $(DESTDIR)$(userunitdir) && \
2334                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2335                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2336                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2337                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2338                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
2339                 $(LN_S) $(systemunitdir)/sound.target sound.target )
2340         ( cd $(DESTDIR)$(systemunitdir) && \
2341                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2342                 $(LN_S) poweroff.target runlevel0.target && \
2343                 $(LN_S) rescue.target runlevel1.target && \
2344                 $(LN_S) multi-user.target runlevel2.target && \
2345                 $(LN_S) multi-user.target runlevel3.target && \
2346                 $(LN_S) multi-user.target runlevel4.target && \
2347                 $(LN_S) graphical.target runlevel5.target && \
2348                 $(LN_S) reboot.target runlevel6.target )
2349         ( cd $(DESTDIR)$(systemunitdir) && \
2350                 rm -f default.target ctrl-alt-del.target autovt@.service && \
2351                 $(LN_S) graphical.target default.target && \
2352                 $(LN_S) reboot.target ctrl-alt-del.target && \
2353                 $(LN_S) getty@.service autovt@.service )
2354         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2355                 rm -f getty.target systemd-ask-password-wall.path && \
2356                 $(LN_S) ../getty.target getty.target && \
2357                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2358         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2359                 rm -f getty@tty1.service && \
2360                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2361         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2362                 rm -f remote-fs.target && \
2363                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2364         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2365                 rm -f dev-hugepages.mount \
2366                         dev-mqueue.mount \
2367                         sys-kernel-config.mount \
2368                         sys-kernel-debug.mount \
2369                         sys-kernel-security.mount \
2370                         sys-fs-fuse-connections.mount \
2371                         systemd-modules-load.service \
2372                         systemd-tmpfiles-setup.service \
2373                         systemd-sysctl.service \
2374                         systemd-ask-password-console.path && \
2375                 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2376                 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2377                 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2378                 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2379                 $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
2380                 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2381                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2382                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2383                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2384                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
2385         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2386                 rm -f systemd-tmpfiles-clean.timer && \
2387                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2388         ( cd $(DESTDIR)$(dbussessionservicedir) && \
2389                 rm -f org.freedesktop.systemd1.service && \
2390                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2391 if HAVE_PLYMOUTH
2392         $(MKDIR_P) -m 0755 \
2393                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2394                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2395                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2396                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2397                 $(DESTDIR)$(systemunitdir)/halt.target.wants
2398         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2399                 rm -f plymouth-start.service plymouth-read-write.service && \
2400                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2401                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2402         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2403                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2404                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2405                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2406         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2407                 rm -f plymouth-reboot.service && \
2408                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2409         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2410                 rm -f plymouth-kexec.service && \
2411                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2412         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2413                 rm -f plymouth-poweroff.service && \
2414                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2415         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2416                 rm -f plymouth-halt.service && \
2417                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2418 endif
2419 if TARGET_MEEGO
2420         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2421         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2422                 rm -f network.target && \
2423                 $(LN_S) $(systemunitdir)/network.target network.target )
2424         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2425                 rm -f * )
2426         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2427                 rm -f * )
2428         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2429                 rm -f * )
2430         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2431                 rm -f * )
2432 endif
2433
2434 if TARGET_FEDORA
2435         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2436         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2437                 rm -f halt-local.service && \
2438                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2439         ( cd $(DESTDIR)$(systemunitdir) && \
2440                 rm -f display-manager.service single.service && \
2441                 $(LN_S) prefdm.service display-manager.service && \
2442                 $(LN_S) rescue.service single.service )
2443         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2444                 rm -f display-manager.service && \
2445                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2446 endif
2447
2448 if TARGET_MANDRIVA
2449         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2450         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2451                 rm -f halt-local.service && \
2452                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2453         ( cd $(DESTDIR)$(systemunitdir) && \
2454                 rm -f display-manager.service dm.service single.service && \
2455                 $(LN_S) prefdm.service display-manager.service && \
2456                 $(LN_S) prefdm.service dm.service && \
2457                 $(LN_S) rescue.service single.service )
2458         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2459                 rm -f display-manager.service && \
2460                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2461 endif
2462
2463 if TARGET_DEBIAN_OR_UBUNTU
2464         ( cd $(DESTDIR)$(systemunitdir) && \
2465                 rm -f runlevel5.target && \
2466                 $(LN_S) multi-user.target runlevel5.target )
2467 endif
2468
2469 if TARGET_SUSE
2470         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2471         ( cd $(DESTDIR)$(systemunitdir) && \
2472                 rm -f local.service && \
2473                 $(LN_S) rc-local.service local.service )
2474         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2475                 rm -f halt-local.service && \
2476                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2477 endif
2478
2479 if TARGET_MAGEIA
2480         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2481         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2482                 rm -f halt-local.service && \
2483                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2484         ( cd $(DESTDIR)$(systemunitdir) && \
2485                 rm -f display-manager.service && \
2486                 $(LN_S) prefdm.service display-manager.service && \
2487                 $(LN_S) prefdm.service dm.service )
2488         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2489                 rm -f display-manager.service && \
2490                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2491 endif
2492
2493 if HAVE_SYSV_COMPAT
2494         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2495                 rm -f var-lock.mount && \
2496                 $(LN_S) ../var-lock.mount var-lock.mount )
2497 endif
2498
2499 install-exec-hook: $(INSTALL_EXEC_HOOKS)
2500
2501 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
2502
2503 install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2504
2505 DISTCHECK_CONFIGURE_FLAGS = \
2506         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2507         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2508         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2509         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2510         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2511         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2512         --with-rootprefix=$$dc_install_base/$(rootprefix)
2513
2514 upload: all distcheck
2515         cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
2516         scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
2517         scp man/*.html tango:public/systemd-man/
2518
2519 git-tag:
2520         git tag "v$(VERSION)" -m "systemd $(VERSION)"