chiark / gitweb /
42da4fb753ca996cf70f5672b30e5dfff8e257eb
[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         src/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         src/systemd.pc
441
442 # First passed through sed, followed by intltool
443 polkitpolicy_in_in_files = \
444         src/org.freedesktop.systemd1.policy.in.in
445
446 nodist_polkitpolicy_DATA = \
447         $(polkitpolicy_in_files:.policy.in=.policy) \
448         $(polkitpolicy_in_in_files:.policy.in.in=.policy)
449
450 EXTRA_DIST += \
451         $(polkitpolicy_in_files) \
452         $(polkitpolicy_in_in_files)
453
454 @INTLTOOL_POLICY_RULE@
455
456 noinst_LTLIBRARIES = \
457         libsystemd-basic.la \
458         libsystemd-core.la
459
460 libsystemd_basic_la_SOURCES = \
461         src/util.c \
462         src/virt.c \
463         src/label.c \
464         src/hashmap.c \
465         src/set.c \
466         src/strv.c \
467         src/conf-parser.c \
468         src/socket-util.c \
469         src/log.c \
470         src/ratelimit.c \
471         src/exit-status.c
472
473 libsystemd_basic_la_CFLAGS = \
474         $(AM_CFLAGS) \
475         $(SELINUX_CFLAGS)
476
477 libsystemd_basic_la_LIBADD = \
478         $(SELINUX_LIBS) \
479         $(CAP_LIBS)
480
481 libsystemd_core_la_SOURCES = \
482         src/unit.c \
483         src/job.c \
484         src/manager.c \
485         src/path-lookup.c \
486         src/load-fragment.c \
487         src/service.c \
488         src/automount.c \
489         src/mount.c \
490         src/swap.c \
491         src/device.c \
492         src/target.c \
493         src/snapshot.c \
494         src/socket.c \
495         src/timer.c \
496         src/path.c \
497         src/load-dropin.c \
498         src/execute.c \
499         src/utmp-wtmp.c \
500         src/dbus.c \
501         src/dbus-manager.c \
502         src/dbus-unit.c \
503         src/dbus-job.c \
504         src/dbus-service.c \
505         src/dbus-socket.c \
506         src/dbus-timer.c \
507         src/dbus-target.c \
508         src/dbus-mount.c \
509         src/dbus-automount.c \
510         src/dbus-swap.c \
511         src/dbus-snapshot.c \
512         src/dbus-device.c \
513         src/dbus-execute.c \
514         src/dbus-path.c \
515         src/cgroup.c \
516         src/mount-setup.c \
517         src/hostname-setup.c \
518         src/selinux-setup.c \
519         src/loopback-setup.c \
520         src/kmod-setup.c \
521         src/locale-setup.c \
522         src/machine-id-setup.c \
523         src/specifier.c \
524         src/unit-name.c \
525         src/fdset.c \
526         src/namespace.c \
527         src/tcpwrap.c \
528         src/cgroup-util.c \
529         src/condition.c \
530         src/dbus-common.c \
531         src/sd-daemon.c \
532         src/install.c \
533         src/cgroup-attr.c \
534         src/sd-id128.c
535
536 nodist_libsystemd_core_la_SOURCES = \
537         src/load-fragment-gperf.c \
538         src/load-fragment-gperf-nulstr.c
539
540 EXTRA_DIST += \
541         src/load-fragment-gperf.gperf.m4
542
543 libsystemd_core_la_CFLAGS = \
544         $(AM_CFLAGS) \
545         $(DBUS_CFLAGS) \
546         $(UDEV_CFLAGS) \
547         $(LIBWRAP_CFLAGS) \
548         $(PAM_CFLAGS) \
549         $(AUDIT_CFLAGS)
550
551 libsystemd_core_la_LIBADD = \
552         libsystemd-basic.la \
553         $(DBUS_LIBS) \
554         $(UDEV_LIBS) \
555         $(LIBWRAP_LIBS) \
556         $(PAM_LIBS) \
557         $(AUDIT_LIBS) \
558         $(CAP_LIBS)
559
560 # This is needed because automake is buggy in how it generates the
561 # rules for C programs, but not Vala programs.  We therefore can't
562 # list the .h files as dependencies if we want make dist to work.
563
564 EXTRA_DIST += \
565         src/util.h \
566         src/virt.h \
567         src/label.h \
568         src/hashmap.h \
569         src/set.h \
570         src/strv.h \
571         src/conf-parser.h \
572         src/socket-util.h \
573         src/log.h \
574         src/ratelimit.h \
575         src/exit-status.h \
576         src/unit.h \
577         src/job.h \
578         src/manager.h \
579         src/path-lookup.h \
580         src/load-fragment.h \
581         src/service.h \
582         src/automount.h \
583         src/mount.h \
584         src/swap.h \
585         src/device.h \
586         src/target.h \
587         src/snapshot.h \
588         src/socket.h \
589         src/timer.h \
590         src/path.h \
591         src/load-dropin.h \
592         src/execute.h \
593         src/utmp-wtmp.h \
594         src/dbus.h \
595         src/dbus-manager.h \
596         src/dbus-unit.h \
597         src/dbus-job.h \
598         src/dbus-service.h \
599         src/dbus-socket.h \
600         src/dbus-timer.h \
601         src/dbus-target.h \
602         src/dbus-mount.h \
603         src/dbus-automount.h \
604         src/dbus-swap.h \
605         src/dbus-snapshot.h \
606         src/dbus-device.h \
607         src/dbus-execute.h \
608         src/dbus-path.h \
609         src/cgroup.h \
610         src/mount-setup.h \
611         src/hostname-setup.h \
612         src/selinux-setup.h \
613         src/loopback-setup.h \
614         src/kmod-setup.h \
615         src/locale-setup.h \
616         src/machine-id-setup.h \
617         src/specifier.h \
618         src/unit-name.h \
619         src/fdset.h \
620         src/namespace.h \
621         src/tcpwrap.h \
622         src/cgroup-util.h \
623         src/condition.h \
624         src/dbus-common.h \
625         src/install.h \
626         src/cgroup-attr.h \
627         src/macro.h \
628         src/def.h \
629         src/ioprio.h \
630         src/missing.h \
631         src/list.h \
632         src/securebits.h \
633         src/linux/auto_dev-ioctl.h \
634         src/linux/fanotify.h \
635         src/initreq.h \
636         src/special.h \
637         src/dbus-common.h \
638         src/bus-errors.h \
639         src/cgroup-show.h \
640         src/build.h \
641         src/shutdownd.h \
642         src/umount.h \
643         src/ask-password-api.h \
644         src/pager.h \
645         src/sysfs-show.h \
646         src/polkit.h \
647         src/dbus-loop.h \
648         src/spawn-agent.h \
649         src/acl-util.h \
650         src/logs-show.h
651
652 MANPAGES = \
653         man/systemd.1 \
654         man/systemctl.1 \
655         man/systemadm.1 \
656         man/systemd-cgls.1 \
657         man/systemd-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         libsystemd-id128.la \
978         $(DBUS_LIBS)
979
980 systemd_notify_SOURCES = \
981         src/notify.c \
982         src/readahead/sd-readahead.c
983
984 systemd_notify_LDADD = \
985         libsystemd-basic.la \
986         libsystemd-daemon.la
987
988 systemd_ask_password_SOURCES = \
989         src/ask-password.c \
990         src/ask-password-api.c
991
992 systemd_ask_password_LDADD = \
993         libsystemd-basic.la
994
995 systemd_reply_password_SOURCES = \
996         src/reply-password.c
997
998 systemd_reply_password_LDADD = \
999         libsystemd-basic.la
1000
1001 systemd_cgls_SOURCES = \
1002         src/cgls.c \
1003         src/cgroup-show.c \
1004         src/cgroup-util.c \
1005         src/pager.c
1006
1007 systemd_cgls_LDADD = \
1008         libsystemd-basic.la
1009
1010 systemd_nspawn_SOURCES = \
1011         src/nspawn.c \
1012         src/cgroup-util.c \
1013         src/loopback-setup.c
1014
1015 systemd_nspawn_LDADD = \
1016         libsystemd-basic.la \
1017         libsystemd-daemon.la
1018
1019 systemd_stdio_bridge_SOURCES = \
1020         src/bridge.c
1021
1022 systemd_stdio_bridge_LDADD = \
1023         libsystemd-basic.la
1024
1025 systemadm_SOURCES = \
1026         src/systemadm.vala \
1027         src/systemd-interfaces.vala \
1028         src/wraplabel.vala
1029
1030 systemadm_CFLAGS = \
1031         $(AM_CFLAGS) \
1032         $(GTK_CFLAGS) \
1033         -Wno-unused-variable \
1034         -Wno-unused-function \
1035         -Wno-shadow \
1036         -Wno-format-nonliteral
1037
1038 systemadm_VALAFLAGS = \
1039         --pkg=posix \
1040         --pkg=gtk+-2.0 \
1041         --pkg=gee-1.0 \
1042         -g
1043
1044 systemadm_LDADD = \
1045         $(GTK_LIBS)
1046
1047 systemd_gnome_ask_password_agent_SOURCES = \
1048         src/gnome-ask-password-agent.vala
1049
1050 systemd_gnome_ask_password_agent_CFLAGS = \
1051         $(AM_CFLAGS) \
1052         $(LIBNOTIFY_CFLAGS) \
1053         $(GTK_CFLAGS) \
1054         -Wno-unused-variable \
1055         -Wno-unused-function \
1056         -Wno-shadow \
1057         -Wno-format-nonliteral
1058
1059 systemd_gnome_ask_password_agent_VALAFLAGS = \
1060         --pkg=posix \
1061         --pkg=gtk+-2.0 \
1062         --pkg=linux \
1063         --pkg=gio-unix-2.0 \
1064         --pkg=libnotify \
1065         -g
1066
1067 systemd_gnome_ask_password_agent_LDADD = \
1068         $(LIBNOTIFY_LIBS) \
1069         $(GTK_LIBS)
1070
1071 systemd_tty_ask_password_agent_SOURCES = \
1072         src/tty-ask-password-agent.c \
1073         src/ask-password-api.c \
1074         src/utmp-wtmp.c
1075
1076 systemd_tty_ask_password_agent_LDADD = \
1077         libsystemd-basic.la
1078
1079 # ------------------------------------------------------------------------------
1080 libsystemd_daemon_la_SOURCES = \
1081         src/sd-daemon.c
1082
1083 libsystemd_daemon_la_CFLAGS = \
1084         $(AM_CFLAGS) \
1085         -fvisibility=hidden \
1086         -DSD_EXPORT_SYMBOLS
1087
1088 libsystemd_daemon_la_LDFLAGS = \
1089         -shared \
1090         -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1091         -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1092
1093 pkginclude_HEADERS += \
1094         src/systemd/sd-daemon.h
1095
1096 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1097 libsystemd-daemon-install-hook:
1098         if test "$(libdir)" != "$(rootlibdir)"; then \
1099                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1100                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1101                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1102                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1103                 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1104         fi
1105
1106 INSTALL_EXEC_HOOKS += \
1107         libsystemd-daemon-install-hook
1108
1109 libsystemd-daemon-uninstall-hook:
1110         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1111
1112 UNINSTALL_EXEC_HOOKS += \
1113         libsystemd-daemon-uninstall-hook
1114
1115 lib_LTLIBRARIES += \
1116         libsystemd-daemon.la
1117
1118 pkgconfiglib_DATA += \
1119         src/libsystemd-daemon.pc
1120
1121 MANPAGES += \
1122         man/sd-daemon.7 \
1123         man/sd_notify.3 \
1124         man/sd_listen_fds.3 \
1125         man/sd_is_fifo.3 \
1126         man/sd_booted.3
1127
1128 MANPAGES_ALIAS += \
1129         man/sd_is_socket.3 \
1130         man/sd_is_socket_unix.3 \
1131         man/sd_is_socket_inet.3 \
1132         man/sd_is_mq.3 \
1133         man/sd_notifyf.3
1134
1135 man/sd_is_socket.3: man/sd_is_fifo.3
1136 man/sd_is_socket_unix.3: man/sd_is_fifo.3
1137 man/sd_is_socket_inet.3: man/sd_is_fifo.3
1138 man/sd_is_mq.3: man/sd_is_fifo.3
1139 man/sd_notifyf.3: man/sd_notify.3
1140
1141 EXTRA_DIST += \
1142         src/libsystemd-daemon.pc.in \
1143         src/libsystemd-daemon.sym
1144
1145 # ------------------------------------------------------------------------------
1146 libsystemd_id128_la_SOURCES = \
1147         src/sd-id128.c
1148
1149 libsystemd_id128_la_CFLAGS = \
1150         $(AM_CFLAGS) \
1151         -fvisibility=hidden
1152
1153 libsystemd_id128_la_LDFLAGS = \
1154         -shared \
1155         -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
1156         -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128.sym
1157
1158 libsystemd_id128_la_LIBADD = \
1159         libsystemd-basic.la
1160
1161 test_id128_SOURCES = \
1162         src/test-id128.c \
1163         src/sd-id128.c
1164
1165 test_id128_LDADD = \
1166         libsystemd-basic.la
1167
1168 noinst_PROGRAMS += \
1169         test-id128
1170
1171 pkginclude_HEADERS += \
1172         src/systemd/sd-id128.h
1173
1174 lib_LTLIBRARIES += \
1175         libsystemd-id128.la
1176
1177 pkgconfiglib_DATA += \
1178         src/libsystemd-id128.pc
1179
1180 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1181 libsystemd-id128-install-hook:
1182         if test "$(libdir)" != "$(rootlibdir)"; then \
1183                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1184                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-id128.so) && \
1185                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1186                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-id128.so && \
1187                 mv $(DESTDIR)$(libdir)/libsystemd-id128.so.* $(DESTDIR)$(rootlibdir); \
1188         fi
1189
1190 INSTALL_EXEC_HOOKS += \
1191         libsystemd-id128-install-hook
1192
1193 libsystemd-id128-uninstall-hook:
1194         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
1195
1196 UNINSTALL_EXEC_HOOKS += \
1197         libsystemd-id128-uninstall-hook
1198
1199 EXTRA_DIST += \
1200         src/libsystemd-id128.pc.in \
1201         src/libsystemd-id128.sym
1202
1203 # ------------------------------------------------------------------------------
1204 systemd_journald_SOURCES = \
1205         src/journal/journald.c \
1206         src/journal/sd-journal.c \
1207         src/journal/journal-file.c \
1208         src/journal/lookup3.c \
1209         src/journal/journal-rate-limit.c \
1210         src/sd-id128.c \
1211         src/cgroup-util.c
1212
1213 if HAVE_ACL
1214 systemd_journald_SOURCES += \
1215         src/acl-util.c
1216 endif
1217
1218 nodist_systemd_journald_SOURCES = \
1219         src/journal/journald-gperf.c
1220
1221 systemd_journald_CFLAGS = \
1222         $(AM_CFLAGS) \
1223         $(ACL_CFLAGS)
1224
1225 systemd_journald_LDADD = \
1226         libsystemd-basic.la \
1227         libsystemd-daemon.la \
1228         libsystemd-login.la \
1229         $(ACL_LIBS)
1230
1231 if HAVE_XZ
1232 systemd_journald_SOURCES += \
1233         src/journal/compress.c
1234 systemd_journald_CFLAGS += \
1235         $(XZ_CFLAGS)
1236 systemd_journald_LDADD += \
1237         $(XZ_LIBS)
1238 endif
1239
1240 systemd_journalctl_SOURCES = \
1241         src/journal/journalctl.c \
1242         src/pager.c \
1243         src/logs-show.c
1244
1245 systemd_journalctl_LDADD = \
1246         libsystemd-basic.la \
1247         libsystemd-journal.la \
1248         libsystemd-id128.la
1249
1250 if HAVE_XZ
1251 systemd_journalctl_SOURCES += \
1252         src/journal/compress.c
1253 systemd_journalctl_CFLAGS = \
1254         $(AM_CFLAGS) \
1255         $(XZ_CFLAGS)
1256 systemd_journalctl_LDADD += \
1257         $(XZ_LIBS)
1258 endif
1259
1260 test_journal_SOURCES = \
1261         src/journal/test-journal.c \
1262         src/journal/sd-journal.c \
1263         src/journal/journal-file.c \
1264         src/journal/lookup3.c \
1265         src/journal/journal-send.c \
1266         src/sd-id128.c
1267
1268 test_journal_LDADD = \
1269         libsystemd-basic.la
1270
1271 if HAVE_XZ
1272 test_journal_SOURCES += \
1273         src/journal/compress.c
1274
1275 test_journal_CFLAGS = \
1276         $(AM_CFLAGS) \
1277         $(XZ_CFLAGS)
1278
1279 test_journal_LDADD += \
1280         $(XZ_LIBS)
1281 endif
1282
1283 libsystemd_journal_la_SOURCES = \
1284         src/journal/sd-journal.c \
1285         src/journal/journal-file.c \
1286         src/journal/lookup3.c \
1287         src/journal/journal-send.c
1288
1289 libsystemd_journal_la_CFLAGS = \
1290         $(AM_CFLAGS) \
1291         -fvisibility=hidden
1292
1293 libsystemd_journal_la_LDFLAGS = \
1294         -shared \
1295         -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
1296         -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
1297
1298 libsystemd_journal_la_LIBADD = \
1299         libsystemd-basic.la \
1300         libsystemd-id128.la
1301
1302 if HAVE_XZ
1303 libsystemd_journal_la_SOURCES += \
1304         src/journal/compress.c
1305
1306 libsystemd_journal_la_CFLAGS += \
1307         $(XZ_CFLAGS)
1308
1309 libsystemd_journal_la_LIBADD += \
1310         $(XZ_LIBS)
1311 endif
1312
1313 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1314 libsystemd-journal-install-hook:
1315         if test "$(libdir)" != "$(rootlibdir)"; then \
1316                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1317                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-journal.so) && \
1318                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1319                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-journal.so && \
1320                 mv $(DESTDIR)$(libdir)/libsystemd-journal.so.* $(DESTDIR)$(rootlibdir); \
1321         fi
1322
1323 INSTALL_EXEC_HOOKS += \
1324         libsystemd-journal-install-hook
1325
1326 libsystemd-journal-uninstall-hook:
1327         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
1328
1329 UNINSTALL_EXEC_HOOKS += \
1330         libsystemd-journal-uninstall-hook
1331
1332 noinst_PROGRAMS += \
1333         test-journal
1334
1335 pkginclude_HEADERS += \
1336         src/systemd/sd-journal.h \
1337         src/systemd/sd-messages.h
1338
1339 lib_LTLIBRARIES += \
1340         libsystemd-journal.la
1341
1342 rootlibexec_PROGRAMS += \
1343         systemd-journald
1344
1345 rootbin_PROGRAMS += \
1346         systemd-journalctl
1347
1348 dist_systemunit_DATA += \
1349         units/systemd-journald.socket
1350
1351 nodist_systemunit_DATA += \
1352         units/systemd-journald.service
1353
1354 dist_pkgsysconf_DATA += \
1355         src/journal/systemd-journald.conf
1356
1357 pkgconfiglib_DATA += \
1358         src/journal/libsystemd-journal.pc
1359
1360 journal-install-data-hook:
1361         $(MKDIR_P) -m 0755 \
1362                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1363                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1364         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1365                 rm -f systemd-journald.socket && \
1366                 $(LN_S) ../systemd-journald.socket )
1367         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1368                 rm -f systemd-journald.service && \
1369                 $(LN_S) ../systemd-journald.service )
1370
1371 INSTALL_DATA_HOOKS += \
1372         journal-install-data-hook
1373
1374 EXTRA_DIST += \
1375         src/journal/journald.h \
1376         src/journal/journal-def.h \
1377         src/journal/journal-internal.h \
1378         src/journal/journal-file.h \
1379         src/journal/lookup3.h \
1380         src/journal/compress.h \
1381         src/journal/journal-rate-limit.h \
1382         src/journal/libsystemd-journal.pc.in \
1383         src/journal/libsystemd-journal.sym \
1384         units/systemd-journald.service.in \
1385         src/journal/journald-gperf.gperf
1386
1387 CLEANFILES += \
1388         src/journal/journald-gperf.c
1389
1390 # ------------------------------------------------------------------------------
1391 if ENABLE_BINFMT
1392 systemd_binfmt_SOURCES = \
1393         src/binfmt/binfmt.c
1394
1395 systemd_binfmt_LDADD = \
1396         libsystemd-basic.la
1397
1398 rootlibexec_PROGRAMS += \
1399         systemd-binfmt
1400
1401 dist_systemunit_DATA += \
1402         units/proc-sys-fs-binfmt_misc.automount \
1403         units/proc-sys-fs-binfmt_misc.mount
1404
1405 nodist_systemunit_DATA += \
1406         units/systemd-binfmt.service
1407
1408 binfmt-install-data-hook:
1409         $(MKDIR_P) -m 0755 \
1410                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1411                 $(DESTDIR)$(sysconfdir)/binfmt.d \
1412                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1413         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1414                 rm -f systemd-binfmt.service \
1415                         proc-sys-fs-binfmt_misc.automount && \
1416                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1417                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1418
1419 INSTALL_DATA_HOOKS += \
1420         binfmt-install-data-hook
1421
1422 MANPAGES += \
1423         man/binfmt.d.5
1424
1425 EXTRA_DIST += \
1426         units/systemd-binfmt.service.in
1427 endif
1428
1429 # ------------------------------------------------------------------------------
1430 if ENABLE_VCONSOLE
1431 systemd_vconsole_setup_SOURCES = \
1432         src/vconsole/vconsole-setup.c
1433
1434 systemd_vconsole_setup_LDADD = \
1435         libsystemd-basic.la
1436
1437 rootlibexec_PROGRAMS += \
1438         systemd-vconsole-setup
1439
1440 nodist_systemunit_DATA += \
1441         units/systemd-vconsole-setup.service
1442
1443 vconsole-install-data-hook:
1444         $(MKDIR_P) -m 0755 \
1445                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1446         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1447                 rm -f systemd-vconsole-setup.service && \
1448                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service )
1449
1450 INSTALL_DATA_HOOKS += \
1451         vconsole-install-data-hook
1452
1453 MANPAGES += \
1454         man/vconsole.conf.5
1455
1456 EXTRA_DIST += \
1457         units/systemd-vconsole-setup.service.in
1458 endif
1459
1460 # ------------------------------------------------------------------------------
1461 if ENABLE_READAHEAD
1462 systemd_readahead_collect_SOURCES = \
1463         src/readahead/readahead-collect.c \
1464         src/readahead/readahead-common.c
1465
1466 systemd_readahead_collect_LDADD = \
1467         libsystemd-basic.la \
1468         libsystemd-daemon.la \
1469         $(UDEV_LIBS)
1470
1471 systemd_readahead_collect_CFLAGS = \
1472         $(AM_CFLAGS) \
1473         $(UDEV_CFLAGS)
1474
1475 systemd_readahead_replay_SOURCES = \
1476         src/readahead/readahead-replay.c \
1477         src/readahead/readahead-common.c
1478
1479 systemd_readahead_replay_CFLAGS = \
1480         $(AM_CFLAGS) \
1481         $(UDEV_CFLAGS)
1482
1483 systemd_readahead_replay_LDADD = \
1484         libsystemd-basic.la \
1485         libsystemd-daemon.la \
1486         $(UDEV_LIBS)
1487
1488 rootlibexec_PROGRAMS += \
1489         systemd-readahead-collect \
1490         systemd-readahead-replay
1491
1492 dist_systemunit_DATA += \
1493         units/systemd-readahead-done.timer
1494
1495 nodist_systemunit_DATA += \
1496         units/systemd-readahead-collect.service \
1497         units/systemd-readahead-replay.service \
1498         units/systemd-readahead-done.service
1499
1500 EXTRA_DIST += \
1501         src/systemd/sd-readahead.h \
1502         src/readahead/readahead-common.h \
1503         units/systemd-readahead-collect.service.in \
1504         units/systemd-readahead-replay.service.in \
1505         units/systemd-readahead-done.service.in
1506
1507 MANPAGES += \
1508         man/sd_readahead.3 \
1509         man/sd-readahead.7
1510 endif
1511
1512 # ------------------------------------------------------------------------------
1513 if ENABLE_QUOTACHECK
1514 rootlibexec_PROGRAMS += \
1515         systemd-quotacheck
1516
1517 nodist_systemunit_DATA += \
1518         units/quotacheck.service
1519
1520 EXTRA_DIST += \
1521         units/quotacheck.service.in
1522
1523 systemd_quotacheck_SOURCES = \
1524         src/quotacheck.c
1525
1526 systemd_quotacheck_LDADD = \
1527         libsystemd-basic.la
1528 endif
1529
1530 # ------------------------------------------------------------------------------
1531 if ENABLE_RANDOMSEED
1532 rootlibexec_PROGRAMS += \
1533         systemd-random-seed
1534
1535 nodist_systemunit_DATA += \
1536         units/systemd-random-seed-save.service \
1537         units/systemd-random-seed-load.service
1538
1539 EXTRA_DIST += \
1540         units/systemd-random-seed-save.service.in \
1541         units/systemd-random-seed-load.service.in
1542
1543 systemd_random_seed_SOURCES = \
1544         src/random-seed.c
1545
1546 systemd_random_seed_LDADD = \
1547         libsystemd-basic.la
1548
1549 randomseed-install-data-hook:
1550         $(MKDIR_P) -m 0755 \
1551                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1552                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1553         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1554                 rm -f systemd-random-seed-save.service && \
1555                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1556         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1557                 rm -f systemd-random-seed-load.service && \
1558                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service )
1559
1560 INSTALL_DATA_HOOKS += \
1561         randomseed-install-data-hook
1562 endif
1563
1564 # ------------------------------------------------------------------------------
1565 if HAVE_LIBCRYPTSETUP
1566 rootlibexec_PROGRAMS += \
1567         systemd-cryptsetup
1568
1569 systemgenerator_PROGRAMS += \
1570         systemd-cryptsetup-generator
1571
1572 dist_systemunit_DATA += \
1573         units/cryptsetup.target
1574
1575 systemd_cryptsetup_SOURCES = \
1576         src/cryptsetup/cryptsetup.c \
1577         src/ask-password-api.c
1578
1579 systemd_cryptsetup_CFLAGS = \
1580         $(AM_CFLAGS) \
1581         $(LIBCRYPTSETUP_CFLAGS) \
1582         $(UDEV_CFLAGS)
1583
1584 systemd_cryptsetup_LDADD = \
1585         $(LIBCRYPTSETUP_LIBS) \
1586         $(UDEV_LIBS) \
1587         libsystemd-basic.la
1588
1589 systemd_cryptsetup_generator_SOURCES = \
1590         src/cryptsetup/cryptsetup-generator.c \
1591         src/unit-name.c
1592
1593 systemd_cryptsetup_generator_LDADD = \
1594         libsystemd-basic.la
1595
1596 cryptsetup-install-data-hook:
1597         $(MKDIR_P) -m 0755 \
1598                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants
1599         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1600                 rm -f cryptsetup.target && \
1601                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1602
1603 INSTALL_DATA_HOOKS += \
1604         cryptsetup-install-data-hook
1605 endif
1606
1607 # ------------------------------------------------------------------------------
1608 if ENABLE_HOSTNAMED
1609 systemd_hostnamed_SOURCES = \
1610         src/hostname/hostnamed.c \
1611         src/dbus-common.c \
1612         src/polkit.c
1613
1614 systemd_hostnamed_CFLAGS = \
1615         $(AM_CFLAGS) \
1616         $(DBUS_CFLAGS)
1617
1618 systemd_hostnamed_LDADD = \
1619         libsystemd-basic.la \
1620         libsystemd-daemon.la \
1621         $(DBUS_LIBS)
1622
1623 rootlibexec_PROGRAMS += \
1624         systemd-hostnamed
1625
1626 nodist_systemunit_DATA += \
1627         units/systemd-hostnamed.service
1628
1629 dist_dbuspolicy_DATA += \
1630         src/hostname/org.freedesktop.hostname1.conf
1631
1632 dist_dbussystemservice_DATA += \
1633         src/hostname/org.freedesktop.hostname1.service
1634
1635 polkitpolicy_in_files += \
1636         src/hostname/org.freedesktop.hostname1.policy.in
1637
1638 dbusinterface_DATA += \
1639         org.freedesktop.hostname1.xml
1640
1641 org.freedesktop.hostname1.xml: systemd-hostnamed
1642         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1643                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1644                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1645
1646 hostnamed-install-data-hook:
1647         ( cd $(DESTDIR)$(systemunitdir) && \
1648                 rm -f dbus-org.freedesktop.hostname1.service && \
1649                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1650
1651 INSTALL_DATA_HOOKS += \
1652         hostnamed-install-data-hook
1653
1654 EXTRA_DIST += \
1655         units/systemd-hostnamed.service.in
1656 endif
1657
1658 # ------------------------------------------------------------------------------
1659 if ENABLE_LOCALED
1660 systemd_localed_SOURCES = \
1661         src/locale/localed.c \
1662         src/dbus-common.c \
1663         src/polkit.c
1664
1665 systemd_localed_CFLAGS = \
1666         $(AM_CFLAGS) \
1667         $(DBUS_CFLAGS)
1668
1669 systemd_localed_LDADD = \
1670         libsystemd-basic.la \
1671         libsystemd-daemon.la \
1672         $(DBUS_LIBS)
1673
1674 nodist_systemunit_DATA += \
1675         units/systemd-localed.service
1676
1677 rootlibexec_PROGRAMS += \
1678         systemd-localed
1679
1680 dist_dbuspolicy_DATA += \
1681         src/locale/org.freedesktop.locale1.conf
1682
1683 dist_dbussystemservice_DATA += \
1684         src/locale/org.freedesktop.locale1.service
1685
1686 polkitpolicy_in_files += \
1687         src/locale/org.freedesktop.locale1.policy.in
1688
1689 dbusinterface_DATA += \
1690         org.freedesktop.locale1.xml
1691
1692 org.freedesktop.locale1.xml: systemd-localed
1693         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1694                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1695                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1696
1697 localed-install-data-hook:
1698         ( cd $(DESTDIR)$(systemunitdir) && \
1699                 rm -f dbus-org.freedesktop.locale1.service && \
1700                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service )
1701
1702 INSTALL_DATA_HOOKS += \
1703         localed-install-data-hook
1704
1705 EXTRA_DIST += \
1706         units/systemd-localed.service.in
1707
1708 dist_pkgdata_DATA = \
1709         src/locale/kbd-model-map
1710
1711 dist_noinst_SCRIPT = \
1712         src/locale/generate-kbd-model-map
1713
1714 update-kbd-model-map:
1715         src/locale/generate-kbd-model-map > src/locale/kbd-model-map
1716
1717 endif
1718
1719 # ------------------------------------------------------------------------------
1720 if ENABLE_TIMEDATED
1721 systemd_timedated_SOURCES = \
1722         src/timedate/timedated.c \
1723         src/dbus-common.c \
1724         src/polkit.c
1725
1726 systemd_timedated_CFLAGS = \
1727         $(AM_CFLAGS) \
1728         $(DBUS_CFLAGS)
1729
1730 systemd_timedated_LDADD = \
1731         libsystemd-basic.la \
1732         libsystemd-daemon.la \
1733         $(DBUS_LIBS)
1734
1735 rootlibexec_PROGRAMS += \
1736         systemd-timedated
1737
1738 dist_dbussystemservice_DATA += \
1739         src/timedate/org.freedesktop.timedate1.service
1740
1741 dist_dbuspolicy_DATA += \
1742         src/timedate/org.freedesktop.timedate1.conf
1743
1744 nodist_systemunit_DATA += \
1745         units/systemd-timedated.service
1746
1747 polkitpolicy_in_files += \
1748         src/timedate/org.freedesktop.timedate1.policy.in
1749
1750 org.freedesktop.timedate1.xml: systemd-timedated
1751         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1752                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1753                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1754
1755 dbusinterface_DATA += \
1756         org.freedesktop.timedate1.xml
1757
1758 timedated-install-data-hook:
1759         ( cd $(DESTDIR)$(systemunitdir) && \
1760                 rm -f dbus-org.freedesktop.timedate1.service  && \
1761                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
1762
1763 INSTALL_DATA_HOOKS += \
1764         timedated-install-data-hook
1765
1766 EXTRA_DIST += \
1767         units/systemd-timedated.service.in
1768 endif
1769
1770 # ------------------------------------------------------------------------------
1771 if ENABLE_LOGIND
1772 systemd_logind_SOURCES = \
1773         src/login/logind.c \
1774         src/login/logind-dbus.c \
1775         src/login/logind-device.c \
1776         src/login/logind-seat.c \
1777         src/login/logind-seat-dbus.c \
1778         src/login/logind-session.c \
1779         src/login/logind-session-dbus.c \
1780         src/login/logind-user.c \
1781         src/login/logind-user-dbus.c \
1782         src/dbus-common.c \
1783         src/dbus-loop.c \
1784         src/cgroup-util.c \
1785         src/polkit.c
1786
1787 nodist_systemd_logind_SOURCES = \
1788         src/login/logind-gperf.c
1789
1790 if HAVE_ACL
1791 systemd_logind_SOURCES += \
1792         src/login/logind-acl.c \
1793         src/acl-util.c
1794 endif
1795
1796 systemd_logind_CFLAGS = \
1797         $(AM_CFLAGS) \
1798         $(DBUS_CFLAGS) \
1799         $(UDEV_CFLAGS) \
1800         $(ACL_CFLAGS)
1801
1802 systemd_logind_LDADD = \
1803         libsystemd-basic.la \
1804         libsystemd-daemon.la \
1805         $(DBUS_LIBS) \
1806         $(UDEV_LIBS) \
1807         $(ACL_LIBS)
1808
1809 systemd_user_sessions_SOURCES = \
1810         src/login/user-sessions.c \
1811         src/cgroup-util.c
1812
1813 systemd_user_sessions_LDADD = \
1814         libsystemd-basic.la
1815
1816 rootlibexec_PROGRAMS += \
1817         systemd-logind \
1818         systemd-user-sessions
1819
1820 systemd_loginctl_SOURCES = \
1821         src/login/loginctl.c \
1822         src/dbus-common.c \
1823         src/cgroup-show.c \
1824         src/cgroup-util.c \
1825         src/pager.c \
1826         src/sysfs-show.c
1827
1828 systemd_loginctl_CFLAGS = \
1829         $(AM_CFLAGS) \
1830         $(DBUS_CFLAGS) \
1831         $(UDEV_CFLAGS)
1832
1833 systemd_loginctl_LDADD = \
1834         libsystemd-basic.la \
1835         $(DBUS_LIBS) \
1836         $(UDEV_LIBS)
1837
1838 rootbin_PROGRAMS += \
1839         systemd-loginctl
1840
1841 test_login_SOURCES = \
1842         src/login/test-login.c
1843
1844 test_login_LDADD = \
1845         libsystemd-basic.la \
1846         libsystemd-login.la
1847
1848 noinst_PROGRAMS += \
1849         test-login
1850
1851 libsystemd_login_la_SOURCES = \
1852         src/login/sd-login.c \
1853         src/cgroup-util.c
1854
1855 libsystemd_login_la_CFLAGS = \
1856         $(AM_CFLAGS) \
1857         -fvisibility=hidden
1858
1859 libsystemd_login_la_LDFLAGS = \
1860         -shared \
1861         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1862         -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
1863
1864 libsystemd_login_la_LIBADD = \
1865         libsystemd-basic.la
1866
1867 if HAVE_PAM
1868 pam_systemd_la_SOURCES = \
1869         src/login/pam-module.c \
1870         src/dbus-common.c
1871
1872 pam_systemd_la_CFLAGS = \
1873         $(AM_CFLAGS) \
1874         $(PAM_CFLAGS) \
1875         $(DBUS_CFLAGS) \
1876         -fvisibility=hidden
1877
1878 pam_systemd_la_LDFLAGS = \
1879         -module \
1880         -export-dynamic \
1881         -avoid-version \
1882         -shared \
1883         -export-symbols-regex '^pam_sm_.*'
1884
1885 pam_systemd_la_LIBADD = \
1886         libsystemd-basic.la \
1887         libsystemd-daemon.la \
1888         $(PAM_LIBS) \
1889         $(DBUS_LIBS)
1890
1891 pamlib_LTLIBRARIES = \
1892         pam_systemd.la
1893 endif
1894
1895 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1896 libsystemd-login-install-hook:
1897         if test "$(libdir)" != "$(rootlibdir)"; then \
1898                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1899                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1900                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1901                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1902                 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1903         fi
1904
1905 INSTALL_EXEC_HOOKS += \
1906         libsystemd-login-install-hook
1907
1908 libsystemd-login-uninstall-hook:
1909         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1910
1911 UNINSTALL_EXEC_HOOKS += \
1912         libsystemd-login-uninstall-hook
1913
1914 nodist_systemunit_DATA += \
1915         units/systemd-logind.service \
1916         units/systemd-user-sessions.service
1917
1918 dist_dbussystemservice_DATA += \
1919         src/login/org.freedesktop.login1.service
1920
1921 dist_dbuspolicy_DATA += \
1922         src/login/org.freedesktop.login1.conf
1923
1924 dist_pkgsysconf_DATA += \
1925         src/login/systemd-logind.conf
1926
1927 pkginclude_HEADERS += \
1928         src/systemd/sd-login.h
1929
1930 lib_LTLIBRARIES += \
1931         libsystemd-login.la
1932
1933 pkgconfiglib_DATA += \
1934         src/login/libsystemd-login.pc
1935
1936 polkitpolicy_in_files += \
1937         src/login/org.freedesktop.login1.policy.in
1938
1939 logind-install-data-hook:
1940         $(MKDIR_P) -m 0755 \
1941                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1942         ( cd $(DESTDIR)$(systemunitdir) && \
1943                 rm -f dbus-org.freedesktop.login1.service && \
1944                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
1945         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1946                 rm -f systemd-logind.service systemd-user-sessions.service && \
1947                 $(LN_S) ../systemd-logind.service systemd-logind.service && \
1948                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1949
1950 INSTALL_DATA_HOOKS += \
1951         logind-install-data-hook
1952
1953 systemd_uaccess_SOURCES = \
1954         src/login/uaccess.c
1955
1956 if HAVE_ACL
1957 systemd_uaccess_SOURCES += \
1958         src/login/logind-acl.c \
1959         src/acl-util.c
1960 endif
1961
1962 systemd_uaccess_CFLAGS = \
1963         $(AM_CFLAGS) \
1964         $(UDEV_CFLAGS) \
1965         $(ACL_CFLAGS)
1966
1967 systemd_uaccess_LDADD = \
1968         libsystemd-basic.la \
1969         libsystemd-daemon.la \
1970         libsystemd-login.la \
1971         $(UDEV_LIBS) \
1972         $(ACL_LIBS)
1973
1974 rootlibexec_PROGRAMS += \
1975         systemd-uaccess
1976
1977 dist_udevrules_DATA += \
1978         src/70-uaccess.rules
1979
1980 MANPAGES += \
1981         man/systemd-logind.conf.5 \
1982         man/sd-login.7 \
1983         man/systemd-loginctl.1 \
1984         man/sd_login_monitor_new.3 \
1985         man/sd_pid_get_session.3 \
1986         man/sd_uid_get_state.3 \
1987         man/sd_session_is_active.3 \
1988         man/sd_seat_get_active.3 \
1989         man/sd_get_seats.3
1990
1991 MANPAGES_ALIAS += \
1992         man/sd_login_monitor_unref.3 \
1993         man/sd_login_monitor_flush.3 \
1994         man/sd_login_monitor_get_fd.3 \
1995         man/sd_session_get_uid.3 \
1996         man/sd_session_get_seat.3 \
1997         man/sd_pid_get_owner_uid.3 \
1998         man/sd_pid_get_unit.3 \
1999         man/sd_uid_is_on_seat.3 \
2000         man/sd_uid_get_sessions.3 \
2001         man/sd_uid_get_seats.3 \
2002         man/sd_seat_get_sessions.3 \
2003         man/sd_seat_can_multi_session.3 \
2004         man/sd_get_sessions.3 \
2005         man/sd_get_uids.3
2006
2007 man/sd_login_monitor_unref.3: man/sd_login_monitor_new.3
2008 man/sd_login_monitor_flush.3: man/sd_login_monitor_new.3
2009 man/sd_login_monitor_get_fd.3: man/sd_login_monitor_new.3
2010 man/sd_session_get_uid.3: man/sd_session_is_active.3
2011 man/sd_session_get_seat.3: man/sd_session_is_active.3
2012 man/sd_pid_get_owner_uid.3: man/sd_pid_get_session.3
2013 man/sd_pid_get_unit.3: man/sd_pid_get_session.3
2014 man/sd_uid_is_on_seat.3: man/sd_uid_get_state.3
2015 man/sd_uid_get_sessions.3: man/sd_uid_get_state.3
2016 man/sd_uid_get_seats.3: man/sd_uid_get_state.3
2017 man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
2018 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
2019 man/sd_get_sessions.3: man/sd_get_seats.3
2020 man/sd_get_uids.3: man/sd_get_seats.3
2021
2022 EXTRA_DIST += \
2023         src/login/logind-gperf.gperf \
2024         units/systemd-logind.service.in \
2025         units/systemd-user-sessions.service.in \
2026         src/login/libsystemd-login.pc.in \
2027         src/login/libsystemd-login.sym \
2028         src/login/logind.h \
2029         src/login/logind-device.h \
2030         src/login/logind-seat.h \
2031         src/login/logind-session.h \
2032         src/login/logind-user.h \
2033         src/login/logind-acl.h
2034
2035 CLEANFILES += \
2036         src/login/logind-gperf.c
2037 endif
2038 # ------------------------------------------------------------------------------
2039
2040 SED_PROCESS = \
2041         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2042         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
2043                 -e 's,@rootbindir\@,$(rootbindir),g' \
2044                 -e 's,@bindir\@,$(bindir),g' \
2045                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
2046                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
2047                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
2048                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
2049                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
2050                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
2051                 -e 's,@userunitdir\@,$(userunitdir),g' \
2052                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
2053                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
2054                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
2055                 -e 's,@prefix\@,$(prefix),g' \
2056                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
2057                 -e 's,@libdir\@,$(libdir),g' \
2058                 -e 's,@includedir\@,$(includedir),g' \
2059                 < $< > $@ || rm $@
2060
2061 units/%: units/%.in Makefile
2062         $(SED_PROCESS)
2063
2064 man/%: man/%.in Makefile
2065         $(SED_PROCESS)
2066
2067 %.pc: %.pc.in Makefile
2068         $(SED_PROCESS)
2069
2070 src/%.policy.in: src/%.policy.in.in Makefile
2071         $(SED_PROCESS)
2072
2073 src/%.rules: src/%.rules.in Makefile
2074         $(SED_PROCESS)
2075
2076 src/%.c: src/%.gperf
2077         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2078         $(GPERF) < $< > $@
2079
2080 src/%: src/%.m4
2081         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2082         $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
2083
2084 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
2085         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2086         $(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 $@
2087
2088 M4_PROCESS_SYSTEM = \
2089         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2090         $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
2091
2092 M4_PROCESS_USER = \
2093         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2094         $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
2095
2096 units/%: units/%.m4 Makefile
2097         $(M4_PROCESS_SYSTEM)
2098
2099 units/user/%: units/%.m4 Makefile
2100         $(M4_PROCESS_USER)
2101
2102 CLEANFILES += \
2103         $(nodist_systemunit_DATA) \
2104         $(nodist_userunit_DATA) \
2105         $(nodist_man_MANS) \
2106         ${XML_IN_FILES:.xml.in=.html} \
2107         $(pkgconfigdata_DATA) \
2108         $(pkgconfiglib_DATA) \
2109         $(nodist_polkitpolicy_DATA) \
2110         src/73-seat-late.rules \
2111         src/99-systemd.rules \
2112         src/load-fragment-gperf.gperf \
2113         src/load-fragment-gperf.c \
2114         src/load-fragment-gperf-nulstr.c
2115
2116 if HAVE_VALAC
2117 CLEANFILES += \
2118         ${systemadm_SOURCES:.vala=.c}
2119 endif
2120
2121 if HAVE_XSLTPROC
2122 XSLTPROC_FLAGS = \
2123         --nonet \
2124         --stringparam funcsynopsis.style ansi
2125
2126 XSLTPROC_PROCESS_MAN = \
2127         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2128         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2129
2130 XSLTPROC_PROCESS_MAN_IN = \
2131         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2132         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
2133         mv ${@:.in=} $@
2134
2135 XSLTPROC_PROCESS_HTML = \
2136         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2137         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
2138
2139 XSLTPROC_PROCESS_HTML_IN = \
2140         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
2141         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< && \
2142         mv ${@:.in=} $@
2143
2144 man/%.1: man/%.xml
2145         $(XSLTPROC_PROCESS_MAN)
2146
2147 man/%.1.in: man/%.xml.in
2148         $(XSLTPROC_PROCESS_MAN)
2149
2150 man/%.3: man/%.xml
2151         $(XSLTPROC_PROCESS_MAN)
2152
2153 man/%.3.in: man/%.xml.in
2154         $(XSLTPROC_PROCESS_MAN)
2155
2156 man/%.5: man/%.xml
2157         $(XSLTPROC_PROCESS_MAN)
2158
2159 man/%.5.in: man/%.xml.in
2160         $(XSLTPROC_PROCESS_MAN)
2161
2162 man/%.7: man/%.xml
2163         $(XSLTPROC_PROCESS_MAN)
2164
2165 man/%.7.in: man/%.xml.in
2166         $(XSLTPROC_PROCESS_MAN_IN)
2167
2168 man/%.8: man/%.xml
2169         $(XSLTPROC_PROCESS_MAN)
2170
2171 man/%.8.in: man/%.xml.in
2172         $(XSLTPROC_PROCESS_MAN_IN)
2173
2174 man/%.html: man/%.xml
2175         $(XSLTPROC_PROCESS_HTML)
2176
2177 man/%.html.in: man/%.xml.in
2178         $(XSLTPROC_PROCESS_HTML_IN)
2179
2180 CLEANFILES += \
2181         $(dist_man_MANS) \
2182         ${nodist_man_MANS:=.in} \
2183         ${XML_FILES:.xml=.html} \
2184         ${XML_IN_FILES:.xml.in=.html.in}
2185 endif
2186
2187 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
2188
2189 org.freedesktop.systemd1.%.xml: systemd
2190         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
2191                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
2192                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
2193
2194 CLEANFILES += \
2195         $(dbusinterface_DATA)
2196
2197 systemd-install-data-hook:
2198         $(MKDIR_P) -m 0755 \
2199                 $(DESTDIR)$(tmpfilesdir) \
2200                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
2201                 $(DESTDIR)$(prefix)/lib/modules-load.d \
2202                 $(DESTDIR)$(sysconfdir)/modules-load.d \
2203                 $(DESTDIR)$(prefix)/lib/sysctl.d \
2204                 $(DESTDIR)$(sysconfdir)/sysctl.d \
2205                 $(DESTDIR)$(systemshutdowndir) \
2206                 $(DESTDIR)$(systemgeneratordir) \
2207                 $(DESTDIR)$(usergeneratordir)
2208         $(MKDIR_P) -m 0755 \
2209                 $(DESTDIR)$(systemunitdir) \
2210                 $(DESTDIR)$(userunitdir) \
2211                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
2212                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
2213                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
2214                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
2215                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
2216                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
2217                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
2218                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
2219                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
2220                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
2221                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
2222                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
2223                 $(DESTDIR)$(pkgsysconfdir)/system \
2224                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
2225                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
2226                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
2227                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
2228                 $(DESTDIR)$(pkgsysconfdir)/user \
2229                 $(DESTDIR)$(dbussessionservicedir) \
2230                 $(DESTDIR)$(sysconfdir)/xdg/systemd
2231         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
2232                 rm -f user && \
2233                 $(LN_S) $(pkgsysconfdir)/user user )
2234         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
2235                 rm -f systemd-initctl.socket systemd-shutdownd.socket && \
2236                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
2237                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
2238         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
2239                 rm -f systemd-update-utmp-runlevel.service && \
2240                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2241         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
2242                 rm -f systemd-update-utmp-runlevel.service && \
2243                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2244         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
2245                 rm -f systemd-update-utmp-runlevel.service && \
2246                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2247         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
2248                 rm -f systemd-update-utmp-runlevel.service && \
2249                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2250         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
2251                 rm -f systemd-update-utmp-runlevel.service && \
2252                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
2253         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
2254                 rm -f systemd-update-utmp-shutdown.service && \
2255                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service )
2256         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2257                 rm -f systemd-remount-api-vfs.service \
2258                         fsck-root.service \
2259                         remount-rootfs.service \
2260                         var-run.mount \
2261                         media.mount && \
2262                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
2263                 $(LN_S) ../fsck-root.service fsck-root.service && \
2264                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
2265                 $(LN_S) ../var-run.mount var-run.mount && \
2266                 $(LN_S) ../media.mount media.mount )
2267         ( cd $(DESTDIR)$(userunitdir) && \
2268                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
2269                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
2270                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
2271                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
2272                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
2273                 $(LN_S) $(systemunitdir)/sound.target sound.target )
2274         ( cd $(DESTDIR)$(systemunitdir) && \
2275                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
2276                 $(LN_S) poweroff.target runlevel0.target && \
2277                 $(LN_S) rescue.target runlevel1.target && \
2278                 $(LN_S) multi-user.target runlevel2.target && \
2279                 $(LN_S) multi-user.target runlevel3.target && \
2280                 $(LN_S) multi-user.target runlevel4.target && \
2281                 $(LN_S) graphical.target runlevel5.target && \
2282                 $(LN_S) reboot.target runlevel6.target )
2283         ( cd $(DESTDIR)$(systemunitdir) && \
2284                 rm -f default.target ctrl-alt-del.target autovt@.service && \
2285                 $(LN_S) graphical.target default.target && \
2286                 $(LN_S) reboot.target ctrl-alt-del.target && \
2287                 $(LN_S) getty@.service autovt@.service )
2288         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2289                 rm -f getty.target systemd-ask-password-wall.path && \
2290                 $(LN_S) ../getty.target getty.target && \
2291                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path)
2292         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2293                 rm -f getty@tty1.service && \
2294                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
2295         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2296                 rm -f remote-fs.target && \
2297                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
2298         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2299                 rm -f dev-hugepages.mount \
2300                         dev-mqueue.mount \
2301                         sys-kernel-config.mount \
2302                         sys-kernel-debug.mount \
2303                         sys-kernel-security.mount \
2304                         sys-fs-fuse-connections.mount \
2305                         systemd-modules-load.service \
2306                         systemd-tmpfiles-setup.service \
2307                         systemd-sysctl.service \
2308                         systemd-ask-password-console.path && \
2309                 $(LN_S) ../dev-hugepages.mount dev-hugepages.mount && \
2310                 $(LN_S) ../dev-mqueue.mount dev-mqueue.mount && \
2311                 $(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
2312                 $(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
2313                 $(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
2314                 $(LN_S) ../sys-fs-fuse-connections.mount sys-fs-fuse-connections.mount && \
2315                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
2316                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
2317                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
2318                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path )
2319         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
2320                 rm -f systemd-tmpfiles-clean.timer && \
2321                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
2322         ( cd $(DESTDIR)$(dbussessionservicedir) && \
2323                 rm -f org.freedesktop.systemd1.service && \
2324                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
2325 if HAVE_PLYMOUTH
2326         $(MKDIR_P) -m 0755 \
2327                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
2328                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
2329                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
2330                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
2331                 $(DESTDIR)$(systemunitdir)/halt.target.wants
2332         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
2333                 rm -f plymouth-start.service plymouth-read-write.service && \
2334                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
2335                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
2336         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2337                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
2338                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
2339                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
2340         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
2341                 rm -f plymouth-reboot.service && \
2342                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
2343         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
2344                 rm -f plymouth-kexec.service && \
2345                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
2346         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
2347                 rm -f plymouth-poweroff.service && \
2348                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
2349         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
2350                 rm -f plymouth-halt.service && \
2351                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
2352 endif
2353 if TARGET_MEEGO
2354         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2355         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
2356                 rm -f network.target && \
2357                 $(LN_S) $(systemunitdir)/network.target network.target )
2358         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
2359                 rm -f * )
2360         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
2361                 rm -f * )
2362         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
2363                 rm -f * )
2364         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
2365                 rm -f * )
2366 endif
2367
2368 if TARGET_FEDORA
2369         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2370         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2371                 rm -f halt-local.service && \
2372                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2373         ( cd $(DESTDIR)$(systemunitdir) && \
2374                 rm -f display-manager.service single.service && \
2375                 $(LN_S) prefdm.service display-manager.service && \
2376                 $(LN_S) rescue.service single.service )
2377         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2378                 rm -f display-manager.service && \
2379                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2380 endif
2381
2382 if TARGET_MANDRIVA
2383         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2384         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2385                 rm -f halt-local.service && \
2386                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2387         ( cd $(DESTDIR)$(systemunitdir) && \
2388                 rm -f display-manager.service dm.service single.service && \
2389                 $(LN_S) prefdm.service display-manager.service && \
2390                 $(LN_S) prefdm.service dm.service && \
2391                 $(LN_S) rescue.service single.service )
2392         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
2393                 rm -f display-manager.service && \
2394                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
2395 endif
2396
2397 if TARGET_DEBIAN_OR_UBUNTU
2398         ( cd $(DESTDIR)$(systemunitdir) && \
2399                 rm -f runlevel5.target && \
2400                 $(LN_S) multi-user.target runlevel5.target )
2401 endif
2402
2403 if TARGET_SUSE
2404         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
2405         ( cd $(DESTDIR)$(systemunitdir) && \
2406                 rm -f local.service && \
2407                 $(LN_S) rc-local.service local.service )
2408         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
2409                 rm -f halt-local.service && \
2410                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
2411 endif
2412
2413 if TARGET_MAGEIA
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 && \
2420                 $(LN_S) prefdm.service display-manager.service && \
2421                 $(LN_S) prefdm.service dm.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 HAVE_SYSV_COMPAT
2428         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
2429                 rm -f var-lock.mount && \
2430                 $(LN_S) ../var-lock.mount var-lock.mount )
2431 endif
2432
2433 install-exec-hook: $(INSTALL_EXEC_HOOKS)
2434
2435 uninstall-hook: $(UNINSTALL_EXEC_HOOKS)
2436
2437 install-data-hook: systemd-install-data-hook $(INSTALL_DATA_HOOKS)
2438
2439 DISTCHECK_CONFIGURE_FLAGS = \
2440         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
2441         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
2442         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
2443         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
2444         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
2445         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
2446         --with-rootprefix=$$dc_install_base/$(rootprefix)
2447
2448 upload: all distcheck
2449         cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/
2450         scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/
2451         scp man/*.html tango:public/systemd-man/
2452
2453 git-tag:
2454         git tag "v$(VERSION)" -m "systemd $(VERSION)"