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