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