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