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