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