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