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