chiark / gitweb /
cgroup: expose cgroup attributes as unit properties on the bus
[elogind.git] / Makefile.am
1 #  This file is part of systemd.
2 #
3 #  Copyright 2010 Lennart Poettering
4 #
5 #  systemd is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation; either version 2 of the License, or
8 #  (at your option) any later version.
9 #
10 #  systemd is distributed in the hope that it will be useful, but
11 #  WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 #  General Public License for more details.
14 #
15 #  You should have received a copy of the GNU General Public License
16 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 SUBDIRS = po
21
22 LIBSYSTEMD_LOGIN_CURRENT=0
23 LIBSYSTEMD_LOGIN_REVISION=2
24 LIBSYSTEMD_LOGIN_AGE=0
25
26 LIBSYSTEMD_DAEMON_CURRENT=0
27 LIBSYSTEMD_DAEMON_REVISION=0
28 LIBSYSTEMD_DAEMON_AGE=0
29
30 # Dirs of external packages
31 dbuspolicydir=@dbuspolicydir@
32 dbussessionservicedir=@dbussessionservicedir@
33 dbussystemservicedir=@dbussystemservicedir@
34 dbusinterfacedir=@dbusinterfacedir@
35 udevrulesdir=@udevrulesdir@
36 pamlibdir=@pamlibdir@
37 pkgconfigdatadir=$(datadir)/pkgconfig
38 pkgconfiglibdir=$(libdir)/pkgconfig
39 polkitpolicydir=$(datadir)/polkit-1/actions
40 bashcompletiondir=$(sysconfdir)/bash_completion.d
41
42 # Our own, non-special dirs
43 pkgsysconfdir=$(sysconfdir)/systemd
44 userunitdir=$(prefix)/lib/systemd/user
45 tmpfilesdir=$(prefix)/lib/tmpfiles.d
46 usergeneratordir=$(pkglibexecdir)/user-generators
47 pkgincludedir=$(includedir)/systemd
48
49 # And these are the special ones for /
50 rootdir=@rootdir@
51 rootbindir=$(rootdir)/bin
52 rootlibexecdir=$(rootdir)/lib/systemd
53 systemgeneratordir=$(rootlibexecdir)/system-generators
54 systemshutdowndir=$(rootlibexecdir)/system-shutdown
55 systemunitdir=$(rootdir)/lib/systemd/system
56
57 AM_CPPFLAGS = \
58         -include $(top_builddir)/config.h \
59         -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
60         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
61         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
62         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
63         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
64         -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
65         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
66         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
67         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
68         -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
69         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
70         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
71         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
72         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
73         -DRUNTIME_DIR=\"/run\" \
74         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
75         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
76         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
77         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
78         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
79         -I $(top_srcdir)/src
80
81 if TARGET_GENTOO
82 AM_CPPFLAGS += \
83         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
84         -DKBD_SETFONT=\"/usr/bin/setfont\" \
85         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
86 else
87 if TARGET_ARCH
88 AM_CPPFLAGS += \
89         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
90         -DKBD_SETFONT=\"/usr/bin/setfont\" \
91         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
92 else
93 if TARGET_FRUGALWARE
94 AM_CPPFLAGS += \
95         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
96         -DKBD_SETFONT=\"/usr/bin/setfont\" \
97         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
98 else
99 if TARGET_MANDRIVA
100 AM_CPPFLAGS += \
101         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
102         -DKBD_SETFONT=\"/bin/setfont\" \
103         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
104 else
105 if TARGET_MEEGO
106 AM_CPPFLAGS += \
107         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
108         -DKBD_SETFONT=\"/bin/setfont\" \
109         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
110 else
111 if TARGET_ANGSTROM
112 AM_CPPFLAGS += \
113         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
114         -DKBD_SETFONT=\"/usr/bin/setfont\" \
115         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
116 else
117 AM_CPPFLAGS += \
118         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
119         -DKBD_SETFONT=\"/bin/setfont\" \
120         -DDEFAULT_FONT=\"latarcyrheb-sun16\"
121 endif
122 endif
123 endif
124 endif
125 endif
126 endif
127
128 rootbin_PROGRAMS = \
129         systemd \
130         systemctl \
131         systemd-loginctl \
132         systemd-notify \
133         systemd-ask-password \
134         systemd-tty-ask-password-agent \
135         systemd-tmpfiles \
136         systemd-machine-id-setup
137
138 bin_PROGRAMS = \
139         systemd-cgls \
140         systemd-stdio-bridge \
141         systemd-nspawn
142
143 dist_bin_SCRIPTS = \
144         src/systemd-analyze
145
146 if HAVE_GTK
147 bin_PROGRAMS += \
148         systemadm \
149         systemd-gnome-ask-password-agent
150 endif
151
152 rootlibexec_PROGRAMS = \
153         systemd-logger \
154         systemd-cgroups-agent \
155         systemd-initctl \
156         systemd-update-utmp \
157         systemd-random-seed \
158         systemd-shutdownd \
159         systemd-shutdown \
160         systemd-modules-load \
161         systemd-remount-api-vfs \
162         systemd-kmsg-syslogd \
163         systemd-vconsole-setup \
164         systemd-reply-password \
165         systemd-readahead-collect \
166         systemd-readahead-replay \
167         systemd-user-sessions \
168         systemd-fsck \
169         systemd-quotacheck \
170         systemd-timestamp \
171         systemd-ac-power \
172         systemd-detect-virt \
173         systemd-sysctl \
174         systemd-localed \
175         systemd-timedated \
176         systemd-logind \
177         systemd-uaccess
178
179 if ENABLE_BINFMT
180 rootlibexec_PROGRAMS += \
181         systemd-binfmt
182 endif
183
184 if ENABLE_HOSTNAMED
185 rootlibexec_PROGRAMS += \
186         systemd-hostnamed
187 endif
188
189 systemgenerator_PROGRAMS = \
190         systemd-getty-generator
191
192 if HAVE_LIBCRYPTSETUP
193 rootlibexec_PROGRAMS += \
194         systemd-cryptsetup
195
196 systemgenerator_PROGRAMS += \
197         systemd-cryptsetup-generator
198 endif
199
200 lib_LTLIBRARIES = \
201         libsystemd-daemon.la \
202         libsystemd-login.la
203
204 pkginclude_HEADERS = \
205         src/sd-daemon.h \
206         src/sd-login.h
207
208 noinst_PROGRAMS = \
209         test-engine \
210         test-job-type \
211         test-ns \
212         test-loopback \
213         test-hostname \
214         test-daemon \
215         test-cgroup \
216         test-env-replace \
217         test-strv \
218         test-login \
219         test-install
220
221 if HAVE_PAM
222 pamlib_LTLIBRARIES = \
223         pam_systemd.la
224 endif
225
226 dist_pkgsysconf_DATA = \
227         src/system.conf \
228         src/user.conf \
229         src/systemd-logind.conf
230
231 dist_dbuspolicy_DATA = \
232         src/org.freedesktop.systemd1.conf \
233         src/org.freedesktop.locale1.conf \
234         src/org.freedesktop.timedate1.conf \
235         src/org.freedesktop.login1.conf
236
237 if ENABLE_HOSTNAMED
238 dist_dbuspolicy_DATA += \
239         src/org.freedesktop.hostname1.conf
240 endif
241
242 dist_dbussystemservice_DATA = \
243         src/org.freedesktop.systemd1.service \
244         src/org.freedesktop.locale1.service \
245         src/org.freedesktop.timedate1.service \
246         src/org.freedesktop.login1.service
247
248 if ENABLE_HOSTNAMED
249 dist_dbussystemservice_DATA += \
250         src/org.freedesktop.hostname1.service
251 endif
252
253 dist_udevrules_DATA = \
254         src/70-uaccess.rules \
255         src/71-seat.rules
256
257 nodist_udevrules_DATA = \
258         src/73-seat-late.rules \
259         src/99-systemd.rules
260
261 dbusinterface_DATA = \
262         org.freedesktop.systemd1.Manager.xml \
263         org.freedesktop.systemd1.Job.xml \
264         org.freedesktop.systemd1.Unit.xml \
265         org.freedesktop.systemd1.Service.xml \
266         org.freedesktop.systemd1.Socket.xml \
267         org.freedesktop.systemd1.Timer.xml \
268         org.freedesktop.systemd1.Target.xml \
269         org.freedesktop.systemd1.Device.xml \
270         org.freedesktop.systemd1.Mount.xml \
271         org.freedesktop.systemd1.Automount.xml \
272         org.freedesktop.systemd1.Snapshot.xml \
273         org.freedesktop.systemd1.Swap.xml \
274         org.freedesktop.systemd1.Path.xml \
275         org.freedesktop.locale1.xml \
276         org.freedesktop.timedate1.xml
277
278 if ENABLE_HOSTNAMED
279 dbusinterface_DATA += \
280         org.freedesktop.hostname1.xml
281 endif
282
283 dist_bashcompletion_DATA = \
284         src/systemctl-bash-completion.sh
285
286 dist_tmpfiles_DATA = \
287         tmpfiles.d/systemd.conf \
288         tmpfiles.d/x11.conf
289
290 if HAVE_SYSV_COMPAT
291 dist_tmpfiles_DATA += \
292         tmpfiles.d/legacy.conf
293 endif
294
295 dist_systemunit_DATA = \
296         units/graphical.target \
297         units/multi-user.target \
298         units/emergency.service \
299         units/emergency.target \
300         units/sysinit.target \
301         units/basic.target \
302         units/getty.target \
303         units/halt.target \
304         units/kexec.target \
305         units/local-fs.target \
306         units/remote-fs.target \
307         units/cryptsetup.target \
308         units/network.target \
309         units/nss-lookup.target \
310         units/mail-transfer-agent.target \
311         units/http-daemon.target \
312         units/poweroff.target \
313         units/reboot.target \
314         units/rescue.target \
315         units/rpcbind.target \
316         units/time-sync.target \
317         units/shutdown.target \
318         units/final.target \
319         units/umount.target \
320         units/sigpwr.target \
321         units/sockets.target \
322         units/swap.target \
323         units/systemd-initctl.socket \
324         units/systemd-logger.socket \
325         units/systemd-shutdownd.socket \
326         units/syslog.socket \
327         units/dev-hugepages.automount \
328         units/dev-hugepages.mount \
329         units/dev-mqueue.automount \
330         units/dev-mqueue.mount \
331         units/sys-kernel-debug.automount \
332         units/sys-kernel-debug.mount \
333         units/sys-kernel-security.automount \
334         units/sys-kernel-security.mount \
335         units/var-run.mount \
336         units/media.mount \
337         units/remount-rootfs.service \
338         units/printer.target \
339         units/sound.target \
340         units/bluetooth.target \
341         units/smartcard.target \
342         units/systemd-readahead-done.timer \
343         units/systemd-tmpfiles-clean.timer \
344         units/quotaon.service \
345         units/systemd-ask-password-wall.path \
346         units/systemd-ask-password-console.path \
347         units/syslog.target
348
349 if HAVE_SYSV_COMPAT
350 dist_systemunit_DATA += \
351         units/var-lock.mount
352 endif
353
354 if ENABLE_BINFMT
355 dist_systemunit_DATA += \
356         units/proc-sys-fs-binfmt_misc.automount \
357         units/proc-sys-fs-binfmt_misc.mount
358 endif
359
360 nodist_systemunit_DATA = \
361         units/getty@.service \
362         units/serial-getty@.service \
363         units/console-shell.service \
364         units/systemd-initctl.service \
365         units/systemd-logger.service \
366         units/systemd-shutdownd.service \
367         units/systemd-localed.service \
368         units/systemd-timedated.service \
369         units/systemd-logind.service \
370         units/systemd-kmsg-syslogd.service \
371         units/systemd-modules-load.service \
372         units/systemd-vconsole-setup.service \
373         units/systemd-remount-api-vfs.service \
374         units/systemd-update-utmp-runlevel.service \
375         units/systemd-update-utmp-shutdown.service \
376         units/systemd-random-seed-save.service \
377         units/systemd-random-seed-load.service \
378         units/systemd-readahead-collect.service \
379         units/systemd-readahead-replay.service \
380         units/systemd-readahead-done.service \
381         units/systemd-tmpfiles-setup.service \
382         units/systemd-tmpfiles-clean.service \
383         units/systemd-user-sessions.service \
384         units/systemd-ask-password-wall.service \
385         units/systemd-ask-password-console.service \
386         units/systemd-sysctl.service \
387         units/halt.service \
388         units/poweroff.service \
389         units/reboot.service \
390         units/kexec.service \
391         units/fsck@.service \
392         units/fsck-root.service \
393         units/quotacheck.service \
394         units/rescue.service \
395         units/user@.service
396
397 if ENABLE_BINFMT
398 nodist_systemunit_DATA += \
399         units/systemd-binfmt.service
400 endif
401
402 if ENABLE_HOSTNAMED
403 nodist_systemunit_DATA += \
404         units/systemd-hostnamed.service
405 endif
406
407 dist_userunit_DATA = \
408         units/user/default.target \
409         units/user/exit.target
410
411 nodist_userunit_DATA = \
412         units/user/exit.service
413
414 EXTRA_DIST = \
415         units/getty@.service.m4 \
416         units/serial-getty@.service.m4 \
417         units/console-shell.service.m4 \
418         units/rescue.service.m4 \
419         units/systemd-initctl.service.in \
420         units/systemd-logger.service.in \
421         units/systemd-shutdownd.service.in \
422         units/systemd-localed.service.in \
423         units/systemd-timedated.service.in \
424         units/systemd-logind.service.in \
425         units/systemd-kmsg-syslogd.service.in \
426         units/systemd-modules-load.service.in \
427         units/systemd-vconsole-setup.service.in \
428         units/systemd-remount-api-vfs.service.in \
429         units/systemd-update-utmp-runlevel.service.in \
430         units/systemd-update-utmp-shutdown.service.in \
431         units/systemd-random-seed-save.service.in \
432         units/systemd-random-seed-load.service.in \
433         units/systemd-readahead-collect.service.in \
434         units/systemd-readahead-replay.service.in \
435         units/systemd-readahead-done.service.in \
436         units/systemd-tmpfiles-setup.service.in \
437         units/systemd-tmpfiles-clean.service.in \
438         units/systemd-user-sessions.service.in \
439         units/systemd-ask-password-wall.service.in \
440         units/systemd-ask-password-console.service.in \
441         units/systemd-sysctl.service.in \
442         units/halt.service.in \
443         units/poweroff.service.in \
444         units/reboot.service.in \
445         units/kexec.service.in \
446         units/user/exit.service.in \
447         units/fsck@.service.in \
448         units/fsck-root.service.in \
449         units/quotacheck.service.in \
450         units/user@.service.in \
451         systemd.pc.in \
452         libsystemd-daemon.pc.in \
453         libsystemd-login.pc.in \
454         src/libsystemd-daemon.sym \
455         src/libsystemd-login.sym \
456         introspect.awk \
457         src/73-seat-late.rules.in \
458         src/99-systemd.rules.in
459
460 if ENABLE_BINFMT
461 EXTRA_DIST += \
462         units/systemd-binfmt.service.in
463 endif
464
465 if ENABLE_HOSTNAMED
466 EXTRA_DIST += \
467         units/systemd-hostnamed.service.in
468 endif
469
470 if TARGET_FEDORA
471 dist_systemunit_DATA += \
472         units/fedora/prefdm.service \
473         units/fedora/rc-local.service \
474         units/fedora/halt-local.service
475 endif
476
477 if TARGET_MANDRIVA
478 dist_systemunit_DATA += \
479         units/mandriva/prefdm.service \
480         units/fedora/rc-local.service \
481         units/fedora/halt-local.service
482 endif
483
484 if TARGET_FRUGALWARE
485 dist_systemunit_DATA += \
486         units/frugalware/display-manager.service
487 endif
488
489 if TARGET_SUSE
490 dist_systemunit_DATA += \
491         units/suse/rc-local.service \
492         units/suse/halt-local.service
493 endif
494
495 if HAVE_PLYMOUTH
496 dist_systemunit_DATA += \
497         units/plymouth-start.service \
498         units/plymouth-read-write.service \
499         units/plymouth-quit.service \
500         units/plymouth-quit-wait.service \
501         units/plymouth-reboot.service \
502         units/plymouth-kexec.service \
503         units/plymouth-poweroff.service \
504         units/plymouth-halt.service \
505         units/systemd-ask-password-plymouth.path
506
507 nodist_systemunit_DATA += \
508         units/systemd-ask-password-plymouth.service
509
510 EXTRA_DIST += \
511         units/systemd-ask-password-plymouth.service.in
512 endif
513
514 dist_doc_DATA = \
515         README \
516         LICENSE \
517         DISTRO_PORTING \
518         src/sd-daemon.h \
519         src/sd-daemon.c \
520         src/sd-readahead.h \
521         src/sd-readahead.c
522
523 pkgconfigdata_DATA = \
524         systemd.pc
525
526 pkgconfiglib_DATA = \
527         libsystemd-daemon.pc \
528         libsystemd-login.pc
529
530 # Passed through intltool only
531 polkitpolicy_in_files = \
532         src/org.freedesktop.locale1.policy.in \
533         src/org.freedesktop.timedate1.policy.in \
534         src/org.freedesktop.login1.policy.in
535
536 if ENABLE_HOSTNAMED
537 polkitpolicy_in_files += \
538         src/org.freedesktop.hostname1.policy.in
539 endif
540
541 # First passed through sed, followed by intltool
542 polkitpolicy_in_in_files = \
543         src/org.freedesktop.systemd1.policy.in.in
544
545 nodist_polkitpolicy_DATA = \
546         $(polkitpolicy_in_files:.policy.in=.policy) \
547         $(polkitpolicy_in_in_files:.policy.in.in=.policy)
548
549 EXTRA_DIST += \
550         $(polkitpolicy_in_files) \
551         $(polkitpolicy_in_in_files)
552
553 @INTLTOOL_POLICY_RULE@
554
555 noinst_LTLIBRARIES = \
556         libsystemd-basic.la \
557         libsystemd-core.la
558
559 libsystemd_basic_la_SOURCES = \
560         src/util.c \
561         src/label.c \
562         src/hashmap.c \
563         src/set.c \
564         src/strv.c \
565         src/conf-parser.c \
566         src/socket-util.c \
567         src/log.c \
568         src/ratelimit.c \
569         src/exit-status.c
570
571 libsystemd_basic_la_CFLAGS = \
572         $(AM_CFLAGS) \
573         $(SELINUX_CFLAGS)
574
575 libsystemd_basic_la_LIBADD = \
576         $(SELINUX_LIBS) \
577         $(CAP_LIBS)
578
579 libsystemd_core_la_SOURCES = \
580         src/unit.c \
581         src/job.c \
582         src/manager.c \
583         src/path-lookup.c \
584         src/load-fragment.c \
585         src/service.c \
586         src/automount.c \
587         src/mount.c \
588         src/swap.c \
589         src/device.c \
590         src/target.c \
591         src/snapshot.c \
592         src/socket.c \
593         src/timer.c \
594         src/path.c \
595         src/load-dropin.c \
596         src/execute.c \
597         src/utmp-wtmp.c \
598         src/dbus.c \
599         src/dbus-manager.c \
600         src/dbus-unit.c \
601         src/dbus-job.c \
602         src/dbus-service.c \
603         src/dbus-socket.c \
604         src/dbus-timer.c \
605         src/dbus-target.c \
606         src/dbus-mount.c \
607         src/dbus-automount.c \
608         src/dbus-swap.c \
609         src/dbus-snapshot.c \
610         src/dbus-device.c \
611         src/dbus-execute.c \
612         src/dbus-path.c \
613         src/cgroup.c \
614         src/mount-setup.c \
615         src/hostname-setup.c \
616         src/selinux-setup.c \
617         src/loopback-setup.c \
618         src/kmod-setup.c \
619         src/locale-setup.c \
620         src/machine-id-setup.c \
621         src/specifier.c \
622         src/unit-name.c \
623         src/fdset.c \
624         src/namespace.c \
625         src/tcpwrap.c \
626         src/cgroup-util.c \
627         src/condition.c \
628         src/dbus-common.c \
629         src/sd-daemon.c \
630         src/install.c \
631         src/cgroup-attr.c
632
633 nodist_libsystemd_core_la_SOURCES = \
634         src/load-fragment-gperf.c \
635         src/load-fragment-gperf-nulstr.c
636
637 EXTRA_DIST += \
638         src/load-fragment-gperf.gperf.m4
639
640 libsystemd_core_la_CFLAGS = \
641         $(AM_CFLAGS) \
642         $(DBUS_CFLAGS) \
643         $(UDEV_CFLAGS) \
644         $(LIBWRAP_CFLAGS) \
645         $(PAM_CFLAGS) \
646         $(AUDIT_CFLAGS)
647
648 libsystemd_core_la_LIBADD = \
649         libsystemd-basic.la \
650         $(DBUS_LIBS) \
651         $(UDEV_LIBS) \
652         $(LIBWRAP_LIBS) \
653         $(PAM_LIBS) \
654         $(AUDIT_LIBS) \
655         $(CAP_LIBS)
656
657 # This is needed because automake is buggy in how it generates the
658 # rules for C programs, but not Vala programs.  We therefore can't
659 # list the .h files as dependencies if we want make dist to work.
660
661 EXTRA_DIST += \
662         ${libsystemd_basic_la_SOURCES:.c=.h} \
663         ${libsystemd_core_la_SOURCES:.c=.h} \
664         ${libsystemd_daemon_la_SOURCES:.c=.h} \
665         src/macro.h \
666         src/def.h \
667         src/ioprio.h \
668         src/missing.h \
669         src/list.h \
670         src/securebits.h \
671         src/linux/auto_dev-ioctl.h \
672         src/linux/fanotify.h \
673         src/initreq.h \
674         src/sd-readahead.h \
675         src/special.h \
676         src/dbus-common.h \
677         src/bus-errors.h \
678         src/cgroup-show.h \
679         src/build.h \
680         src/shutdownd.h \
681         src/umount.h \
682         src/readahead-common.h \
683         src/ask-password-api.h \
684         src/pager.h \
685         src/sysfs-show.h \
686         src/polkit.h \
687         src/logind.h \
688         src/logind-device.h \
689         src/logind-seat.h \
690         src/logind-session.h \
691         src/logind-user.h \
692         src/logind-acl.h \
693         src/dbus-loop.h \
694         src/spawn-agent.h
695
696 MANPAGES = \
697         man/systemd.1 \
698         man/systemctl.1 \
699         man/systemadm.1 \
700         man/systemd-cgls.1 \
701         man/systemd-nspawn.1 \
702         man/systemd-tmpfiles.8 \
703         man/systemd-notify.1 \
704         man/sd_notify.3 \
705         man/sd_readahead.3 \
706         man/sd_booted.3 \
707         man/sd_listen_fds.3 \
708         man/sd_is_fifo.3 \
709         man/systemd.unit.5 \
710         man/systemd.service.5 \
711         man/systemd.socket.5 \
712         man/systemd.mount.5 \
713         man/systemd.automount.5 \
714         man/systemd.swap.5 \
715         man/systemd.timer.5 \
716         man/systemd.path.5 \
717         man/systemd.target.5 \
718         man/systemd.device.5 \
719         man/systemd.snapshot.5 \
720         man/systemd.exec.5 \
721         man/daemon.7 \
722         man/sd-daemon.7 \
723         man/sd-readahead.7 \
724         man/runlevel.8 \
725         man/telinit.8 \
726         man/halt.8 \
727         man/shutdown.8 \
728         man/pam_systemd.8 \
729         man/systemd.conf.5 \
730         man/systemd-logind.conf.5 \
731         man/tmpfiles.d.5 \
732         man/hostname.5 \
733         man/machine-id.5 \
734         man/vconsole.conf.5 \
735         man/locale.conf.5 \
736         man/os-release.5 \
737         man/machine-info.5 \
738         man/modules-load.d.5 \
739         man/sysctl.d.5 \
740         man/systemd-ask-password.1 \
741         man/systemd-loginctl.1
742
743 if ENABLE_BINFMT
744 MANPAGES += \
745         man/binfmt.d.5
746 endif
747
748 MANPAGES_ALIAS = \
749         man/reboot.8 \
750         man/poweroff.8 \
751         man/sd_is_socket.3 \
752         man/sd_is_socket_unix.3 \
753         man/sd_is_socket_inet.3 \
754         man/sd_notifyf.3 \
755         man/init.1
756
757 man/reboot.8: man/halt.8
758 man/poweroff.8: man/halt.8
759 man/sd_is_socket.3: man/sd_is_fifo.3
760 man/sd_is_socket_unix.3: man/sd_is_fifo.3
761 man/sd_is_socket_inet.3: man/sd_is_fifo.3
762 man/sd_notifyf.3: man/sd_notify.3
763 man/init.1: man/systemd.1
764
765 dist_man_MANS = \
766         $(MANPAGES) \
767         $(MANPAGES_ALIAS)
768
769 nodist_man_MANS = \
770         man/systemd.special.7
771
772 XML_FILES = \
773         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
774
775 XML_IN_FILES = \
776         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
777
778 dist_noinst_DATA = \
779         ${XML_FILES:.xml=.html}
780
781 nodist_noinst_DATA = \
782         ${XML_IN_FILES:.xml.in=.html}
783
784 EXTRA_DIST += \
785         $(XML_FILES) \
786         $(XML_IN_FILES) \
787         ${nodist_man_MANS:=.in} \
788         ${XML_IN_FILES:.xml.in=.html.in}
789
790 systemd_SOURCES = \
791         src/main.c
792
793 systemd_CFLAGS = \
794         $(AM_CFLAGS) \
795         $(DBUS_CFLAGS) \
796         $(UDEV_CFLAGS)
797
798 systemd_LDADD = \
799         libsystemd-core.la
800
801 test_engine_SOURCES = \
802         src/test-engine.c
803
804 test_engine_CFLAGS = $(systemd_CFLAGS)
805 test_engine_LDADD = $(systemd_LDADD)
806
807 test_job_type_SOURCES = \
808         src/test-job-type.c
809
810 test_job_type_CFLAGS = $(systemd_CFLAGS)
811 test_job_type_LDADD = $(systemd_LDADD)
812
813 test_ns_SOURCES = \
814         src/test-ns.c
815
816 test_ns_CFLAGS = $(systemd_CFLAGS)
817 test_ns_LDADD = $(systemd_LDADD)
818
819 test_loopback_SOURCES = \
820         src/test-loopback.c \
821         src/loopback-setup.c
822
823 test_loopback_LDADD = \
824         libsystemd-basic.la
825
826 test_hostname_SOURCES = \
827         src/test-hostname.c \
828         src/hostname-setup.c
829
830 test_hostname_LDADD = \
831         libsystemd-basic.la
832
833 test_daemon_SOURCES = \
834         src/test-daemon.c
835
836 test_daemon_LDADD = \
837         libsystemd-basic.la \
838         libsystemd-daemon.la
839
840 test_cgroup_SOURCES = \
841         src/test-cgroup.c \
842         src/cgroup-util.c
843
844 test_cgroup_CFLAGS = \
845         $(AM_CFLAGS)
846
847 test_cgroup_LDADD = \
848         libsystemd-basic.la
849
850 test_env_replace_SOURCES = \
851         src/test-env-replace.c
852
853 test_env_replace_CFLAGS = \
854         $(AM_CFLAGS)
855
856 test_env_replace_LDADD = \
857         libsystemd-basic.la
858
859 test_strv_SOURCES = \
860         src/test-strv.c \
861         src/specifier.c
862
863 test_strv_CFLAGS = \
864         $(AM_CFLAGS)
865
866 test_strv_LDADD = \
867         libsystemd-basic.la
868
869 test_login_SOURCES = \
870         src/test-login.c
871
872 test_login_CFLAGS = \
873         $(AM_CFLAGS)
874
875 test_login_LDADD = \
876         libsystemd-basic.la \
877         libsystemd-login.la
878
879 test_install_SOURCES = \
880         src/test-install.c \
881         src/install.c \
882         src/path-lookup.c \
883         src/unit-name.c
884
885 test_install_CFLAGS = \
886         $(AM_CFLAGS) \
887         $(DBUS_CFLAGS)
888
889 test_install_LDADD = \
890         libsystemd-basic.la
891
892 systemd_logger_SOURCES = \
893         src/logger.c \
894         src/tcpwrap.c
895
896 systemd_logger_LDADD = \
897         libsystemd-basic.la \
898         libsystemd-daemon.la \
899         $(LIBWRAP_LIBS)
900
901 systemd_initctl_SOURCES = \
902         src/initctl.c \
903         src/dbus-common.c
904
905 systemd_initctl_CFLAGS = \
906         $(AM_CFLAGS) \
907         $(DBUS_CFLAGS)
908
909 systemd_initctl_LDADD = \
910         libsystemd-basic.la \
911         libsystemd-daemon.la \
912         $(DBUS_LIBS)
913
914 systemd_update_utmp_SOURCES = \
915         src/update-utmp.c \
916         src/dbus-common.c \
917         src/utmp-wtmp.c
918
919 systemd_update_utmp_CFLAGS = \
920         $(AM_CFLAGS) \
921         $(DBUS_CFLAGS) \
922         $(AUDIT_CFLAGS)
923
924 systemd_update_utmp_LDADD = \
925         libsystemd-basic.la \
926         $(DBUS_LIBS) \
927         $(AUDIT_LIBS)
928
929 systemd_random_seed_SOURCES = \
930         src/random-seed.c
931
932 systemd_random_seed_CFLAGS = \
933         $(AM_CFLAGS)
934
935 systemd_random_seed_LDADD = \
936         libsystemd-basic.la
937
938 systemd_shutdownd_SOURCES = \
939         src/utmp-wtmp.c \
940         src/shutdownd.c
941
942 systemd_shutdownd_CFLAGS = \
943         $(AM_CFLAGS)
944
945 systemd_shutdownd_LDADD = \
946         libsystemd-basic.la \
947         libsystemd-daemon.la
948
949 systemd_hostnamed_SOURCES = \
950         src/hostnamed.c \
951         src/dbus-common.c \
952         src/polkit.c
953
954 systemd_hostnamed_CFLAGS = \
955         $(AM_CFLAGS) \
956         $(DBUS_CFLAGS)
957
958 systemd_hostnamed_LDADD = \
959         libsystemd-basic.la \
960         libsystemd-daemon.la \
961         $(DBUS_LIBS)
962
963 systemd_localed_SOURCES = \
964         src/localed.c \
965         src/dbus-common.c \
966         src/polkit.c
967
968 systemd_localed_CFLAGS = \
969         $(AM_CFLAGS) \
970         $(DBUS_CFLAGS)
971
972 systemd_localed_LDADD = \
973         libsystemd-basic.la \
974         libsystemd-daemon.la \
975         $(DBUS_LIBS)
976
977 systemd_timedated_SOURCES = \
978         src/timedated.c \
979         src/dbus-common.c \
980         src/polkit.c
981
982 systemd_timedated_CFLAGS = \
983         $(AM_CFLAGS) \
984         $(DBUS_CFLAGS)
985
986 systemd_timedated_LDADD = \
987         libsystemd-basic.la \
988         libsystemd-daemon.la \
989         $(DBUS_LIBS)
990
991 systemd_logind_SOURCES = \
992         src/logind.c \
993         src/logind-dbus.c \
994         src/logind-device.c \
995         src/logind-seat.c \
996         src/logind-seat-dbus.c \
997         src/logind-session.c \
998         src/logind-session-dbus.c \
999         src/logind-user.c \
1000         src/logind-user-dbus.c \
1001         src/dbus-common.c \
1002         src/dbus-loop.c \
1003         src/cgroup-util.c \
1004         src/polkit.c
1005
1006 nodist_systemd_logind_SOURCES = \
1007         src/logind-gperf.c
1008
1009 EXTRA_DIST += \
1010         src/logind-gperf.gperf
1011
1012 systemd_logind_CFLAGS = \
1013         $(AM_CFLAGS) \
1014         $(DBUS_CFLAGS) \
1015         $(UDEV_CFLAGS) \
1016         $(ACL_CFLAGS)
1017
1018 systemd_logind_LDADD = \
1019         libsystemd-basic.la \
1020         libsystemd-daemon.la \
1021         $(DBUS_LIBS) \
1022         $(UDEV_LIBS) \
1023         $(ACL_LIBS)
1024
1025 systemd_uaccess_SOURCES = \
1026         src/uaccess.c
1027
1028 if HAVE_ACL
1029 systemd_logind_SOURCES += \
1030         src/logind-acl.c
1031
1032 systemd_uaccess_SOURCES += \
1033         src/logind-acl.c
1034 endif
1035
1036 systemd_uaccess_CFLAGS = \
1037         $(AM_CFLAGS) \
1038         $(UDEV_CFLAGS) \
1039         $(ACL_CFLAGS)
1040
1041 systemd_uaccess_LDADD = \
1042         libsystemd-basic.la \
1043         libsystemd-daemon.la \
1044         libsystemd-login.la \
1045         $(UDEV_LIBS) \
1046         $(ACL_LIBS)
1047
1048 systemd_shutdown_SOURCES = \
1049         src/mount-setup.c \
1050         src/umount.c \
1051         src/shutdown.c
1052
1053 systemd_shutdown_CFLAGS = \
1054         $(AM_CFLAGS) \
1055         $(UDEV_CFLAGS)
1056
1057 systemd_shutdown_LDADD = \
1058         libsystemd-basic.la \
1059         $(UDEV_LIBS)
1060
1061 systemd_modules_load_SOURCES = \
1062         src/modules-load.c
1063
1064 systemd_modules_load_CFLAGS = \
1065         $(AM_CFLAGS)
1066
1067 systemd_modules_load_LDADD = \
1068         libsystemd-basic.la
1069
1070 systemd_tmpfiles_SOURCES = \
1071         src/tmpfiles.c
1072
1073 systemd_tmpfiles_CFLAGS = \
1074         $(AM_CFLAGS)
1075
1076 systemd_tmpfiles_LDADD = \
1077         libsystemd-basic.la
1078
1079 systemd_machine_id_setup_SOURCES = \
1080         src/machine-id-setup.c \
1081         src/machine-id-main.c
1082
1083 systemd_machine_id_setup_CFLAGS = \
1084         $(AM_CFLAGS)
1085
1086 systemd_machine_id_setup_LDADD = \
1087         libsystemd-basic.la
1088
1089 systemd_sysctl_SOURCES = \
1090         src/sysctl.c
1091
1092 systemd_sysctl_CFLAGS = \
1093         $(AM_CFLAGS)
1094
1095 systemd_sysctl_LDADD = \
1096         libsystemd-basic.la
1097
1098 systemd_binfmt_SOURCES = \
1099         src/binfmt.c
1100
1101 systemd_binfmt_CFLAGS = \
1102         $(AM_CFLAGS)
1103
1104 systemd_binfmt_LDADD = \
1105         libsystemd-basic.la
1106
1107 systemd_fsck_SOURCES = \
1108         src/fsck.c \
1109         src/dbus-common.c
1110
1111 systemd_fsck_CFLAGS = \
1112         $(AM_CFLAGS) \
1113         $(UDEV_CFLAGS) \
1114         $(DBUS_CFLAGS)
1115
1116 systemd_fsck_LDADD = \
1117         libsystemd-basic.la \
1118         $(UDEV_LIBS) \
1119         $(DBUS_LIBS)
1120
1121 systemd_quotacheck_SOURCES = \
1122         src/quotacheck.c
1123
1124 systemd_quotacheck_CFLAGS = \
1125         $(AM_CFLAGS)
1126
1127 systemd_quotacheck_LDADD = \
1128         libsystemd-basic.la
1129
1130 systemd_timestamp_SOURCES = \
1131         src/timestamp.c
1132
1133 systemd_timestamp_CFLAGS = \
1134         $(AM_CFLAGS)
1135
1136 systemd_timestamp_LDADD = \
1137         libsystemd-basic.la
1138
1139 systemd_ac_power_SOURCES = \
1140         src/ac-power.c
1141
1142 systemd_ac_power_CFLAGS = \
1143         $(AM_CFLAGS) \
1144         $(UDEV_CFLAGS)
1145
1146 systemd_ac_power_LDADD = \
1147         libsystemd-basic.la \
1148         $(UDEV_LIBS)
1149
1150 systemd_detect_virt_SOURCES = \
1151         src/detect-virt.c
1152
1153 systemd_detect_virt_CFLAGS = \
1154         $(AM_CFLAGS)
1155
1156 systemd_detect_virt_LDADD = \
1157         libsystemd-basic.la
1158
1159 systemd_cryptsetup_SOURCES = \
1160         src/cryptsetup.c \
1161         src/ask-password-api.c
1162
1163 systemd_cryptsetup_CFLAGS = \
1164         $(LIBCRYPTSETUP_CFLAGS) \
1165         $(UDEV_CFLAGS) \
1166         $(AM_CFLAGS)
1167
1168 systemd_cryptsetup_LDADD = \
1169         $(LIBCRYPTSETUP_LIBS) \
1170         $(UDEV_LIBS) \
1171         libsystemd-basic.la
1172
1173 systemd_cryptsetup_generator_SOURCES = \
1174         src/cryptsetup-generator.c \
1175         src/unit-name.c
1176
1177 systemd_cryptsetup_generator_CFLAGS = \
1178         $(AM_CFLAGS)
1179
1180 systemd_cryptsetup_generator_LDADD = \
1181         libsystemd-basic.la
1182
1183 systemd_getty_generator_SOURCES = \
1184         src/getty-generator.c \
1185         src/unit-name.c
1186
1187 systemd_getty_generator_CFLAGS = \
1188         $(AM_CFLAGS)
1189
1190 systemd_getty_generator_LDADD = \
1191         libsystemd-basic.la
1192
1193 systemd_user_sessions_SOURCES = \
1194         src/user-sessions.c \
1195         src/cgroup-util.c
1196
1197 systemd_user_sessions_CFLAGS = \
1198         $(AM_CFLAGS)
1199
1200 systemd_user_sessions_LDADD = \
1201         libsystemd-basic.la
1202
1203 systemd_vconsole_setup_SOURCES = \
1204         src/vconsole-setup.c
1205
1206 systemd_vconsole_setup_CFLAGS = \
1207         $(AM_CFLAGS)
1208
1209 systemd_vconsole_setup_LDADD = \
1210         libsystemd-basic.la
1211
1212 systemd_remount_api_vfs_SOURCES = \
1213         src/remount-api-vfs.c \
1214         src/mount-setup.c \
1215         src/exit-status.c
1216
1217 systemd_remount_api_vfs_CFLAGS = \
1218         $(AM_CFLAGS)
1219
1220 systemd_remount_api_vfs_LDADD = \
1221         libsystemd-basic.la
1222
1223 systemd_cgroups_agent_SOURCES = \
1224         src/cgroups-agent.c \
1225         src/dbus-common.c
1226
1227 systemd_cgroups_agent_CFLAGS = \
1228         $(AM_CFLAGS) \
1229         $(DBUS_CFLAGS)
1230
1231 systemd_cgroups_agent_LDADD = \
1232         libsystemd-basic.la \
1233         $(DBUS_LIBS)
1234
1235 systemd_kmsg_syslogd_SOURCES = \
1236         src/kmsg-syslogd.c \
1237         src/fdset.c
1238
1239 systemd_kmsg_syslogd_CFLAGS = \
1240         $(AM_CFLAGS)
1241
1242 systemd_kmsg_syslogd_LDADD = \
1243         libsystemd-basic.la \
1244         libsystemd-daemon.la
1245
1246 systemctl_SOURCES = \
1247         src/systemctl.c \
1248         src/utmp-wtmp.c \
1249         src/dbus-common.c \
1250         src/path-lookup.c \
1251         src/cgroup-show.c \
1252         src/cgroup-util.c \
1253         src/exit-status.c \
1254         src/unit-name.c \
1255         src/pager.c \
1256         src/install.c \
1257         src/spawn-agent.c
1258
1259 systemctl_CFLAGS = \
1260         $(AM_CFLAGS) \
1261         $(DBUS_CFLAGS)
1262
1263 systemctl_LDADD = \
1264         libsystemd-basic.la \
1265         libsystemd-daemon.la \
1266         $(DBUS_LIBS)
1267
1268 systemd_loginctl_SOURCES = \
1269         src/loginctl.c \
1270         src/dbus-common.c \
1271         src/cgroup-show.c \
1272         src/cgroup-util.c \
1273         src/pager.c \
1274         src/sysfs-show.c
1275
1276 systemd_loginctl_CFLAGS = \
1277         $(AM_CFLAGS) \
1278         $(DBUS_CFLAGS) \
1279         $(UDEV_CFLAGS)
1280
1281 systemd_loginctl_LDADD = \
1282         libsystemd-basic.la \
1283         $(DBUS_LIBS) \
1284         $(UDEV_LIBS)
1285
1286 systemd_notify_SOURCES = \
1287         src/notify.c \
1288         src/sd-readahead.c
1289
1290 systemd_notify_LDADD = \
1291         libsystemd-basic.la \
1292         libsystemd-daemon.la
1293
1294 systemd_ask_password_SOURCES = \
1295         src/ask-password.c \
1296         src/ask-password-api.c
1297
1298 systemd_ask_password_LDADD = \
1299         libsystemd-basic.la
1300
1301 systemd_reply_password_SOURCES = \
1302         src/reply-password.c
1303
1304 systemd_reply_password_LDADD = \
1305         libsystemd-basic.la
1306
1307 systemd_readahead_collect_SOURCES = \
1308         src/readahead-collect.c \
1309         src/readahead-common.c
1310
1311 systemd_readahead_collect_CFLAGS = \
1312         $(UDEV_CFLAGS)
1313
1314 systemd_readahead_collect_LDADD = \
1315         libsystemd-basic.la \
1316         libsystemd-daemon.la \
1317         $(UDEV_LIBS)
1318
1319 systemd_readahead_replay_SOURCES = \
1320         src/readahead-replay.c \
1321         src/readahead-common.c
1322
1323 systemd_readahead_replay_CFLAGS = \
1324         $(UDEV_CFLAGS)
1325
1326 systemd_readahead_replay_LDADD = \
1327         libsystemd-basic.la \
1328         libsystemd-daemon.la \
1329         $(UDEV_LIBS)
1330
1331 systemd_cgls_SOURCES = \
1332         src/cgls.c \
1333         src/cgroup-show.c \
1334         src/cgroup-util.c \
1335         src/pager.c
1336
1337 systemd_cgls_CFLAGS = \
1338         $(AM_CFLAGS)
1339
1340 systemd_cgls_LDADD = \
1341         libsystemd-basic.la
1342
1343 systemd_nspawn_SOURCES = \
1344         src/nspawn.c \
1345         src/cgroup-util.c \
1346         src/loopback-setup.c
1347
1348 systemd_nspawn_CFLAGS = \
1349         $(AM_CFLAGS)
1350
1351 systemd_nspawn_LDADD = \
1352         libsystemd-basic.la \
1353         libsystemd-daemon.la
1354
1355 systemd_stdio_bridge_SOURCES = \
1356         src/bridge.c
1357
1358 systemd_stdio_bridge_LDADD = \
1359         libsystemd-basic.la
1360
1361 systemadm_SOURCES = \
1362         src/systemadm.vala \
1363         src/systemd-interfaces.vala
1364
1365 systemadm_CFLAGS = \
1366         $(AM_CFLAGS) \
1367         $(GTK_CFLAGS) \
1368         -Wno-unused-variable \
1369         -Wno-unused-function \
1370         -Wno-shadow \
1371         -Wno-format-nonliteral
1372
1373 systemadm_VALAFLAGS = \
1374         --pkg=posix \
1375         --pkg=gtk+-2.0 \
1376         -g
1377
1378 systemadm_LDADD = \
1379         $(GTK_LIBS)
1380
1381 systemd_gnome_ask_password_agent_SOURCES = \
1382         src/gnome-ask-password-agent.vala
1383
1384 systemd_gnome_ask_password_agent_CFLAGS = \
1385         $(AM_CFLAGS) \
1386         $(LIBNOTIFY_CFLAGS) \
1387         $(GTK_CFLAGS) \
1388         -Wno-unused-variable \
1389         -Wno-unused-function \
1390         -Wno-shadow \
1391         -Wno-format-nonliteral
1392
1393 systemd_gnome_ask_password_agent_VALAFLAGS = \
1394         --pkg=posix \
1395         --pkg=gtk+-2.0 \
1396         --pkg=linux \
1397         --pkg=gio-unix-2.0 \
1398         --pkg=libnotify
1399 if LIBNOTIFY07
1400 systemd_gnome_ask_password_agent_VALAFLAGS += \
1401         -D LIBNOTIFY07
1402 endif
1403 systemd_gnome_ask_password_agent_VALAFLAGS += \
1404         -g
1405
1406 systemd_gnome_ask_password_agent_LDADD = \
1407         $(LIBNOTIFY_LIBS) \
1408         $(GTK_LIBS)
1409
1410 systemd_tty_ask_password_agent_SOURCES = \
1411         src/tty-ask-password-agent.c \
1412         src/ask-password-api.c \
1413         src/utmp-wtmp.c
1414
1415 systemd_tty_ask_password_agent_LDADD = \
1416         libsystemd-basic.la
1417
1418 pam_systemd_la_SOURCES = \
1419         src/pam-module.c \
1420         src/dbus-common.c
1421
1422 pam_systemd_la_CFLAGS = \
1423         $(AM_CFLAGS) \
1424         $(PAM_CFLAGS) \
1425         $(DBUS_CFLAGS) \
1426         -fvisibility=hidden
1427
1428 pam_systemd_la_LDFLAGS = \
1429         -module \
1430         -export-dynamic \
1431         -avoid-version \
1432         -shared \
1433         -export-symbols-regex '^pam_sm_.*'
1434
1435 pam_systemd_la_LIBADD = \
1436         libsystemd-basic.la \
1437         libsystemd-daemon.la \
1438         $(PAM_LIBS) \
1439         $(DBUS_LIBS)
1440
1441 libsystemd_daemon_la_SOURCES = \
1442         src/sd-daemon.c
1443
1444 libsystemd_daemon_la_CFLAGS = \
1445         $(AM_CFLAGS) \
1446         -fvisibility=hidden \
1447         -DSD_EXPORT_SYMBOLS
1448
1449 libsystemd_daemon_la_LDFLAGS = \
1450         -shared \
1451         -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1452         -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon.sym
1453
1454 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1455 libsystemd-daemon-install-hook:
1456         if test "$(libdir)" != "$(rootlibdir)"; then \
1457                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1458                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-daemon.so) && \
1459                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1460                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-daemon.so && \
1461                 mv $(DESTDIR)$(libdir)/libsystemd-daemon.so.* $(DESTDIR)$(rootlibdir); \
1462         fi
1463
1464 libsystemd-daemon-uninstall-hook:
1465         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1466
1467 libsystemd_login_la_SOURCES = \
1468         src/sd-login.c \
1469         src/cgroup-util.c
1470
1471 libsystemd_login_la_CFLAGS = \
1472         $(AM_CFLAGS) \
1473         -fvisibility=hidden
1474
1475 libsystemd_login_la_LDFLAGS = \
1476         -shared \
1477         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
1478         -Wl,--version-script=$(top_srcdir)/src/libsystemd-login.sym
1479
1480 libsystemd_login_la_LIBADD = \
1481         libsystemd-basic.la
1482
1483 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1484 libsystemd-login-install-hook:
1485         if test "$(libdir)" != "$(rootlibdir)"; then \
1486                 mkdir -p $(DESTDIR)$(rootlibdir) && \
1487                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/libsystemd-login.so) && \
1488                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
1489                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libsystemd-login.so && \
1490                 mv $(DESTDIR)$(libdir)/libsystemd-login.so.* $(DESTDIR)$(rootlibdir); \
1491         fi
1492
1493 libsystemd-login-uninstall-hook:
1494         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
1495
1496 SED_PROCESS = \
1497         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1498         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1499                 -e 's,@rootbindir\@,$(rootbindir),g' \
1500                 -e 's,@bindir\@,$(bindir),g' \
1501                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1502                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1503                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1504                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1505                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
1506                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1507                 -e 's,@userunitdir\@,$(userunitdir),g' \
1508                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1509                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1510                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1511                 -e 's,@prefix\@,$(prefix),g' \
1512                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
1513                 -e 's,@libdir\@,$(libdir),g' \
1514                 -e 's,@includedir\@,$(includedir),g' \
1515                 < $< > $@ || rm $@
1516
1517 units/%: units/%.in Makefile
1518         $(SED_PROCESS)
1519
1520 man/%: man/%.in Makefile
1521         $(SED_PROCESS)
1522
1523 %.pc: %.pc.in Makefile
1524         $(SED_PROCESS)
1525
1526 src/%.policy.in: src/%.policy.in.in Makefile
1527         $(SED_PROCESS)
1528
1529 src/%.rules: src/%.rules.in Makefile
1530         $(SED_PROCESS)
1531
1532 src/%.c: src/%.gperf
1533         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1534         $(GPERF) < $< > $@
1535
1536 src/%: src/%.m4
1537         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1538         $(M4) -P $(M4_DEFINES) < $< > $@ || rm $@
1539
1540 src/load-fragment-gperf-nulstr.c: src/load-fragment-gperf.gperf
1541         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1542         $(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 $@
1543
1544 M4_PROCESS_SYSTEM = \
1545         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1546         $(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1547
1548 M4_PROCESS_USER = \
1549         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1550         $(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ || rm $@
1551
1552 units/%: units/%.m4 Makefile
1553         $(M4_PROCESS_SYSTEM)
1554
1555 units/user/%: units/%.m4 Makefile
1556         $(M4_PROCESS_USER)
1557
1558 CLEANFILES = \
1559         $(nodist_systemunit_DATA) \
1560         $(nodist_userunit_DATA) \
1561         $(nodist_man_MANS) \
1562         ${XML_IN_FILES:.xml.in=.html} \
1563         $(pkgconfigdata_DATA) \
1564         $(pkgconfiglib_DATA) \
1565         $(nodist_polkitpolicy_DATA) \
1566         src/73-seat-late.rules \
1567         src/99-systemd.rules \
1568         src/load-fragment-gperf.gperf \
1569         src/load-fragment-gperf.c \
1570         src/load-fragment-gperf-nulstr.c \
1571         src/logind-gperf.c
1572
1573 if HAVE_VALAC
1574 CLEANFILES += \
1575         ${systemadm_SOURCES:.vala=.c}
1576 endif
1577
1578 if HAVE_XSLTPROC
1579 XSLTPROC_FLAGS = \
1580         --nonet \
1581         --param funcsynopsis.style "'ansi'"
1582
1583 XSLTPROC_PROCESS_MAN = \
1584         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1585         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1586
1587 XSLTPROC_PROCESS_MAN_IN = \
1588         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1589         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1590         mv ${@:.in=} $@
1591
1592 XSLTPROC_PROCESS_HTML = \
1593         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1594         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1595
1596 XSLTPROC_PROCESS_HTML_IN = \
1597         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1598         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1599         mv ${@:.in=} $@
1600
1601 man/%.1: man/%.xml
1602         $(XSLTPROC_PROCESS_MAN)
1603
1604 man/%.1.in: man/%.xml.in
1605         $(XSLTPROC_PROCESS_MAN)
1606
1607 man/%.3: man/%.xml
1608         $(XSLTPROC_PROCESS_MAN)
1609
1610 man/%.3.in: man/%.xml.in
1611         $(XSLTPROC_PROCESS_MAN)
1612
1613 man/%.5: man/%.xml
1614         $(XSLTPROC_PROCESS_MAN)
1615
1616 man/%.5.in: man/%.xml.in
1617         $(XSLTPROC_PROCESS_MAN)
1618
1619 man/%.7: man/%.xml
1620         $(XSLTPROC_PROCESS_MAN)
1621
1622 man/%.7.in: man/%.xml.in
1623         $(XSLTPROC_PROCESS_MAN_IN)
1624
1625 man/%.8: man/%.xml
1626         $(XSLTPROC_PROCESS_MAN)
1627
1628 man/%.8.in: man/%.xml.in
1629         $(XSLTPROC_PROCESS_MAN_IN)
1630
1631 man/%.html: man/%.xml
1632         $(XSLTPROC_PROCESS_HTML)
1633
1634 man/%.html.in: man/%.xml.in
1635         $(XSLTPROC_PROCESS_HTML_IN)
1636
1637 CLEANFILES += \
1638         $(dist_man_MANS) \
1639         ${nodist_man_MANS:=.in} \
1640         ${XML_FILES:.xml=.html} \
1641         ${XML_IN_FILES:.xml.in=.html.in}
1642 endif
1643
1644 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1645
1646 org.freedesktop.systemd1.%.xml: systemd
1647         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1648                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1649                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1650
1651 org.freedesktop.hostname1.xml: systemd-hostnamed
1652         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
1653                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1654                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1655
1656 org.freedesktop.locale1.xml: systemd-localed
1657         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
1658                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1659                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1660
1661 org.freedesktop.timedate1.xml: systemd-timedated
1662         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
1663                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1664                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1665
1666 CLEANFILES += \
1667         $(dbusinterface_DATA)
1668
1669 install-data-hook:
1670         $(MKDIR_P) -m 0755 \
1671                 $(DESTDIR)$(tmpfilesdir) \
1672                 $(DESTDIR)$(sysconfdir)/tmpfiles.d \
1673                 $(DESTDIR)$(prefix)/lib/modules-load.d \
1674                 $(DESTDIR)$(sysconfdir)/modules-load.d \
1675                 $(DESTDIR)$(prefix)/lib/sysctl.d \
1676                 $(DESTDIR)$(sysconfdir)/sysctl.d \
1677                 $(DESTDIR)$(systemshutdowndir) \
1678                 $(DESTDIR)$(systemgeneratordir) \
1679                 $(DESTDIR)$(usergeneratordir)
1680 if ENABLE_BINFMT
1681         $(MKDIR_P) -m 0755 \
1682                 $(DESTDIR)$(prefix)/lib/binfmt.d \
1683                 $(DESTDIR)$(sysconfdir)/binfmt.d
1684 endif
1685         $(MKDIR_P) -m 0755 \
1686                 $(DESTDIR)$(systemunitdir) \
1687                 $(DESTDIR)$(userunitdir) \
1688                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1689                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1690                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1691                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1692                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1693                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1694                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1695                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1696                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1697                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1698                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1699                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1700                 $(DESTDIR)$(pkgsysconfdir)/system \
1701                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1702                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1703                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1704                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1705                 $(DESTDIR)$(pkgsysconfdir)/user \
1706                 $(DESTDIR)$(dbussessionservicedir) \
1707                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1708         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1709                 rm -f user && \
1710                 $(LN_S) $(pkgsysconfdir)/user user )
1711         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1712                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1713                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1714                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1715                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1716                 $(LN_S) ../syslog.socket syslog.socket )
1717         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1718                 rm -f systemd-update-utmp-runlevel.service && \
1719                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1720         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1721                 rm -f systemd-update-utmp-runlevel.service && \
1722                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1723         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1724                 rm -f systemd-update-utmp-runlevel.service && \
1725                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1726         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1727                 rm -f systemd-update-utmp-runlevel.service && \
1728                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1729         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1730                 rm -f systemd-update-utmp-runlevel.service && \
1731                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1732         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1733                 rm -f systemd-update-utmp-shutdown.service \
1734                         systemd-random-seed-save.service && \
1735                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1736                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1737         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1738                 rm -f systemd-remount-api-vfs.service \
1739                         fsck-root.service \
1740                         remount-rootfs.service \
1741                         var-run.mount \
1742                         media.mount && \
1743                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1744                 $(LN_S) ../fsck-root.service fsck-root.service && \
1745                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1746                 $(LN_S) ../var-run.mount var-run.mount && \
1747                 $(LN_S) ../media.mount media.mount )
1748         ( cd $(DESTDIR)$(userunitdir) && \
1749                 rm -f shutdown.target sockets.target bluetooth.target printer.target sound.target && \
1750                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1751                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1752                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1753                 $(LN_S) $(systemunitdir)/printer.target printer.target && \
1754                 $(LN_S) $(systemunitdir)/sound.target sound.target )
1755         ( cd $(DESTDIR)$(systemunitdir) && \
1756                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1757                 $(LN_S) poweroff.target runlevel0.target && \
1758                 $(LN_S) rescue.target runlevel1.target && \
1759                 $(LN_S) multi-user.target runlevel2.target && \
1760                 $(LN_S) multi-user.target runlevel3.target && \
1761                 $(LN_S) multi-user.target runlevel4.target && \
1762                 $(LN_S) graphical.target runlevel5.target && \
1763                 $(LN_S) reboot.target runlevel6.target )
1764         ( cd $(DESTDIR)$(systemunitdir) && \
1765                 rm -f default.target ctrl-alt-del.target dbus-org.freedesktop.locale1.service dbus-org.freedesktop.timedate1.service dbus-org.freedesktop.login1.service autovt@.service && \
1766                 $(LN_S) graphical.target default.target && \
1767                 $(LN_S) reboot.target ctrl-alt-del.target && \
1768                 $(LN_S) systemd-localed.service dbus-org.freedesktop.locale1.service && \
1769                 $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service && \
1770                 $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service && \
1771                 $(LN_S) getty@.service autovt@.service )
1772         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1773                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path systemd-logind.service && \
1774                 $(LN_S) ../getty.target getty.target && \
1775                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1776                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path && \
1777                 $(LN_S) ../systemd-logind.service systemd-logind.service )
1778         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1779                 rm -f getty@tty1.service && \
1780                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service )
1781         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1782                 rm -f remote-fs.target && \
1783                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1784         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1785                 rm -f dev-hugepages.automount \
1786                         dev-mqueue.automount \
1787                         sys-kernel-debug.automount \
1788                         sys-kernel-security.automount \
1789                         systemd-vconsole-setup.service \
1790                         systemd-modules-load.service \
1791                         systemd-random-seed-load.service \
1792                         systemd-tmpfiles-setup.service \
1793                         systemd-sysctl.service \
1794                         systemd-ask-password-console.path \
1795                         systemd-kmsg-syslogd.service \
1796                         cryptsetup.target && \
1797                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1798                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1799                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1800                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1801                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1802                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1803                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1804                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1805                 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1806                 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
1807                 $(LN_S) ../systemd-kmsg-syslogd.service && \
1808                 $(LN_S) ../cryptsetup.target cryptsetup.target )
1809 if ENABLE_BINFMT
1810         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1811                 rm -f systemd-binfmt.service \
1812                         proc-sys-fs-binfmt_misc.automount && \
1813                 $(LN_S) ../systemd-binfmt.service systemd-binfmt.service && \
1814                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount )
1815 endif
1816 if ENABLE_HOSTNAMED
1817         ( cd $(DESTDIR)$(systemunitdir) && \
1818                 rm -f dbus-org.freedesktop.hostname1.service && \
1819                 $(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
1820 endif
1821         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1822                 rm -f systemd-tmpfiles-clean.timer && \
1823                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1824         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1825                 rm -f org.freedesktop.systemd1.service && \
1826                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1827 if HAVE_PLYMOUTH
1828         $(MKDIR_P) -m 0755 \
1829                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1830                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1831                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1832                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1833                 $(DESTDIR)$(systemunitdir)/halt.target.wants
1834         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1835                 rm -f plymouth-start.service plymouth-read-write.service && \
1836                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1837                 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1838         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1839                 rm -f plymouth-quit.service plymouth-quit-wait.service && \
1840                 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
1841                 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
1842         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1843                 rm -f plymouth-reboot.service && \
1844                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1845         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1846                 rm -f plymouth-kexec.service && \
1847                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1848         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1849                 rm -f plymouth-poweroff.service && \
1850                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1851         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1852                 rm -f plymouth-halt.service && \
1853                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1854 endif
1855 if TARGET_MEEGO
1856         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1857         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1858                 rm -f network.target && \
1859                 $(LN_S) $(systemunitdir)/network.target network.target )
1860         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1861                 rm -f * )
1862         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1863                 rm -f * )
1864         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1865                 rm -f * )
1866         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1867                 rm -f * )
1868 endif
1869
1870 if TARGET_FEDORA
1871         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1872         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1873                 rm -f rc-local.service && \
1874                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1875         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1876                 rm -f halt-local.service && \
1877                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1878         ( cd $(DESTDIR)$(systemunitdir) && \
1879                 rm -f display-manager.service single.service && \
1880                 $(LN_S) prefdm.service display-manager.service && \
1881                 $(LN_S) rescue.service single.service )
1882         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1883                 rm -f display-manager.service && \
1884                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1885 endif
1886
1887 if TARGET_MANDRIVA
1888         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1889         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1890                 rm -f rc-local.service && \
1891                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1892         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1893                 rm -f halt-local.service && \
1894                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1895         ( cd $(DESTDIR)$(systemunitdir) && \
1896                 rm -f display-manager.service dm.service single.service && \
1897                 $(LN_S) prefdm.service display-manager.service && \
1898                 $(LN_S) prefdm.service dm.service && \
1899                 $(LN_S) rescue.service single.service )
1900         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1901                 rm -f display-manager.service && \
1902                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1903 endif
1904
1905 if TARGET_DEBIAN_OR_UBUNTU
1906         ( cd $(DESTDIR)$(systemunitdir) && \
1907                 rm -f runlevel5.target && \
1908                 $(LN_S) multi-user.target runlevel5.target )
1909 endif
1910
1911 if TARGET_SUSE
1912         $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1913         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1914                 rm -f rc-local.service && \
1915                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1916         ( cd $(DESTDIR)$(systemunitdir) && \
1917                 rm -f local.service && \
1918                 $(LN_S) rc-local.service local.service )
1919         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1920                 rm -f halt-local.service && \
1921                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1922 endif
1923
1924 if HAVE_SYSV_COMPAT
1925         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1926                 rm -f var-lock.mount && \
1927                 $(LN_S) ../var-lock.mount var-lock.mount )
1928 endif
1929
1930 install-exec-hook: libsystemd-daemon-install-hook libsystemd-login-install-hook
1931
1932 uninstall-hook: libsystemd-daemon-uninstall-hook libsystemd-login-uninstall-hook
1933
1934 DISTCHECK_CONFIGURE_FLAGS = \
1935         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1936         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1937         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1938         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1939         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1940         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1941         --with-rootdir=$$dc_install_base/$(rootdir)
1942
1943 upload: all distcheck
1944         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1945         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1946         scp man/*.html tango:public/systemd-man/
1947
1948 git-tag:
1949         git tag "v$(VERSION)" -m "systemd $(VERSION)"