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