chiark / gitweb /
ask-password: add basic tty agent
[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 # Dirs of external packages
21 dbuspolicydir=@dbuspolicydir@
22 dbussessionservicedir=@dbussessionservicedir@
23 dbussystemservicedir=@dbussystemservicedir@
24 dbusinterfacedir=@dbusinterfacedir@
25 udevrulesdir=@udevrulesdir@
26 pamlibdir=@pamlibdir@
27 pkgconfigdatadir=$(datadir)/pkgconfig
28 polkitpolicydir=$(datadir)/polkit-1/actions
29
30 # Our own, non-special dirs
31 pkgsysconfdir=$(sysconfdir)/systemd
32 sessionunitdir=$(pkgdatadir)/session
33 tmpfilesdir=$(sysconfdir)/tmpfiles.d
34
35 # And these are the special ones for /
36 rootdir=@rootdir@
37 rootbindir=$(rootdir)/bin
38 rootsbindir=$(rootdir)/sbin
39 rootlibexecdir=$(rootdir)/lib/systemd
40 systemunitdir=$(rootdir)/lib/systemd/system
41
42 AM_CPPFLAGS = \
43         -include $(top_builddir)/config.h \
44         -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
45         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
46         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
47         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
48         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
49         -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
50         -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
51         -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
52         -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
53         -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
54         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
55         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
56         -DRUNTIME_DIR=\"$(localstatedir)/run\" \
57         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
58         -DKEXEC_BINARY_PATH=\"$(rootsbindir)/kexec\" \
59         -I $(top_srcdir)/src
60
61 if TARGET_GENTOO
62 AM_CPPFLAGS += \
63         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
64         -DKBD_SETFONT=\"/usr/bin/setfont\" \
65         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
66 else
67 if TARGET_ARCH
68 AM_CPPFLAGS += \
69         -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
70         -DKBD_SETFONT=\"/usr/bin/setfont\" \
71         -DDEFAULT_FONT=\"LatArCyrHeb-16\"
72 else
73 AM_CPPFLAGS += \
74         -DKBD_LOADKEYS=\"/bin/loadkeys\" \
75         -DKBD_SETFONT=\"/bin/setfont\" \
76         -DDEFAULT_FONT=\"latarcyrheb-sun16\"
77 endif
78 endif
79
80 rootbin_PROGRAMS = \
81         systemd \
82         systemctl \
83         systemd-notify \
84         systemd-ask-password \
85         systemd-tty-ask-password-agent
86
87 bin_PROGRAMS = \
88         systemd-cgls
89
90 if HAVE_GTK
91 bin_PROGRAMS += \
92         systemadm \
93         systemd-gnome-ask-password-agent
94 endif
95
96 rootlibexec_PROGRAMS = \
97         systemd-logger \
98         systemd-cgroups-agent \
99         systemd-initctl \
100         systemd-update-utmp \
101         systemd-random-seed \
102         systemd-shutdownd \
103         systemd-shutdown \
104         systemd-modules-load \
105         systemd-remount-api-vfs \
106         systemd-kmsg-syslogd \
107         systemd-vconsole-setup \
108         systemd-reply-password \
109         systemd-readahead-collect \
110         systemd-readahead-replay \
111         systemd-tmpfiles \
112         systemd-user-sessions \
113         systemd-fsck \
114         systemd-quotacheck
115
116 noinst_PROGRAMS = \
117         test-engine \
118         test-job-type \
119         test-ns \
120         test-loopback \
121         test-hostname \
122         test-daemon \
123         test-cgroup \
124         test-env-replace
125
126 if HAVE_PAM
127 pamlib_LTLIBRARIES = \
128         pam_systemd.la
129 endif
130
131 dist_pkgsysconf_DATA = \
132         src/system.conf
133
134 dist_dbuspolicy_DATA = \
135         src/org.freedesktop.systemd1.conf
136
137 dist_dbussystemservice_DATA = \
138         src/org.freedesktop.systemd1.service
139
140 dist_udevrules_DATA = \
141         src/99-systemd.rules
142
143 dbusinterface_DATA = \
144         org.freedesktop.systemd1.Manager.xml \
145         org.freedesktop.systemd1.Job.xml \
146         org.freedesktop.systemd1.Unit.xml \
147         org.freedesktop.systemd1.Service.xml \
148         org.freedesktop.systemd1.Socket.xml \
149         org.freedesktop.systemd1.Timer.xml \
150         org.freedesktop.systemd1.Target.xml \
151         org.freedesktop.systemd1.Device.xml \
152         org.freedesktop.systemd1.Mount.xml \
153         org.freedesktop.systemd1.Automount.xml \
154         org.freedesktop.systemd1.Snapshot.xml \
155         org.freedesktop.systemd1.Swap.xml \
156         org.freedesktop.systemd1.Path.xml
157
158 dist_tmpfiles_DATA = \
159         tmpfiles.d/systemd.conf \
160         tmpfiles.d/x11.conf
161
162 dist_systemunit_DATA = \
163         units/emergency.service \
164         units/emergency.target \
165         units/basic.target \
166         units/getty.target \
167         units/halt.target \
168         units/kexec.target \
169         units/local-fs.target \
170         units/network.target \
171         units/nss-lookup.target \
172         units/mail-transfer-agent.target \
173         units/http-daemon.target \
174         units/poweroff.target \
175         units/reboot.target \
176         units/rescue.target \
177         units/rpcbind.target \
178         units/rtc-set.target \
179         units/shutdown.target \
180         units/final.target \
181         units/umount.target \
182         units/sigpwr.target \
183         units/sockets.target \
184         units/swap.target \
185         units/dbus.target \
186         units/systemd-initctl.socket \
187         units/systemd-logger.socket \
188         units/systemd-shutdownd.socket \
189         units/syslog.socket \
190         units/dev-hugepages.automount \
191         units/dev-hugepages.mount \
192         units/dev-mqueue.automount \
193         units/dev-mqueue.mount \
194         units/proc-sys-fs-binfmt_misc.automount \
195         units/proc-sys-fs-binfmt_misc.mount \
196         units/sys-kernel-debug.automount \
197         units/sys-kernel-debug.mount \
198         units/sys-kernel-security.automount \
199         units/sys-kernel-security.mount \
200         units/tmp.mount \
201         units/var-lock.mount \
202         units/var-run.mount \
203         units/hwclock-load.service \
204         units/hwclock-save.service \
205         units/sysctl.service \
206         units/remount-rootfs.service \
207         units/printer.target \
208         units/bluetooth.target \
209         units/smartcard.target \
210         units/systemd-readahead-done.timer \
211         units/systemd-tmpfiles-clean.timer \
212         units/quotaon.service
213
214 nodist_systemunit_DATA = \
215         units/sysinit.target \
216         units/getty@.service \
217         units/serial-getty@.service \
218         units/graphical.target \
219         units/remote-fs.target \
220         units/multi-user.target \
221         units/systemd-initctl.service \
222         units/systemd-logger.service \
223         units/systemd-shutdownd.service \
224         units/systemd-kmsg-syslogd.service \
225         units/systemd-modules-load.service \
226         units/systemd-vconsole-setup.service \
227         units/systemd-remount-api-vfs.service \
228         units/systemd-update-utmp-runlevel.service \
229         units/systemd-update-utmp-shutdown.service \
230         units/systemd-random-seed-save.service \
231         units/systemd-random-seed-load.service \
232         units/systemd-readahead-collect.service \
233         units/systemd-readahead-replay.service \
234         units/systemd-readahead-done.service \
235         units/systemd-tmpfiles-setup.service \
236         units/systemd-tmpfiles-clean.service \
237         units/systemd-user-sessions.service \
238         units/syslog.target \
239         units/halt.service \
240         units/poweroff.service \
241         units/reboot.service \
242         units/kexec.service \
243         units/fsck@.service \
244         units/fsck-root.service \
245         units/quotacheck.service
246
247 dist_sessionunit_DATA = \
248         units/session/default.target \
249         units/session/exit.target
250
251 nodist_sessionunit_DATA = \
252         units/session/remote-fs.target \
253         units/session/exit.service
254
255 EXTRA_DIST = \
256         units/sysinit.target.m4 \
257         units/getty@.service.m4 \
258         units/serial-getty@.service.m4 \
259         units/graphical.target.m4 \
260         units/multi-user.target.m4 \
261         units/remote-fs.target.m4 \
262         units/systemd-initctl.service.in \
263         units/systemd-logger.service.in \
264         units/systemd-shutdownd.service.in \
265         units/systemd-kmsg-syslogd.service.in \
266         units/systemd-modules-load.service.in \
267         units/systemd-vconsole-setup.service.in \
268         units/systemd-remount-api-vfs.service.in \
269         units/systemd-update-utmp-runlevel.service.in \
270         units/systemd-update-utmp-shutdown.service.in \
271         units/systemd-random-seed-save.service.in \
272         units/systemd-random-seed-load.service.in \
273         units/systemd-readahead-collect.service.in \
274         units/systemd-readahead-replay.service.in \
275         units/systemd-readahead-done.service.in \
276         units/systemd-tmpfiles-setup.service.in \
277         units/systemd-tmpfiles-clean.service.in \
278         units/systemd-user-sessions.service.in \
279         units/syslog.target.in \
280         units/halt.service.in \
281         units/poweroff.service.in \
282         units/reboot.service.in \
283         units/kexec.service.in \
284         units/session/exit.service.in \
285         units/fsck@.service.in \
286         units/fsck-root.service.in \
287         units/quotacheck.service.in \
288         systemd.pc.in
289
290 if TARGET_FEDORA
291 dist_systemunit_DATA += \
292         units/fedora/prefdm.service \
293         units/fedora/rc-local.service \
294         units/fedora/halt-local.service \
295         units/fedora/sysinit.service \
296         units/fedora/single.service \
297         units/fedora/plymouth-quit.service \
298         units/fedora/plymouth-reboot.service \
299         units/fedora/plymouth-poweroff.service \
300         units/fedora/plymouth-halt.service
301 endif
302
303 if TARGET_DEBIAN
304 dist_systemunit_DATA += \
305         units/debian/fsck.target \
306         units/debian/umountfs.service \
307         units/debian/umountnfs.service \
308         units/debian/umountroot.service
309 endif
310
311 if TARGET_SUSE
312 dist_systemunit_DATA += \
313         units/suse/fsck.target
314 endif
315
316 if TARGET_GENTOO
317 dist_systemunit_DATA += \
318         units/gentoo/xdm.service
319 endif
320
321 if TARGET_ARCH
322 dist_systemunit_DATA += \
323         units/arch/sysinit.service \
324         units/arch/rc-local.service
325 endif
326
327 dist_doc_DATA = \
328         README \
329         LICENSE \
330         DISTRO_PORTING \
331         src/sd-daemon.h \
332         src/sd-daemon.c \
333         src/sd-readahead.h \
334         src/sd-readahead.c
335
336 pkgconfigdata_DATA = \
337         systemd.pc
338
339 dist_polkitpolicy_DATA = \
340         src/org.freedesktop.systemd1.policy
341
342 noinst_LTLIBRARIES = \
343         libsystemd-basic.la \
344         libsystemd-core.la
345
346 libsystemd_basic_la_SOURCES = \
347         src/util.c \
348         src/label.c \
349         src/hashmap.c \
350         src/set.c \
351         src/strv.c \
352         src/conf-parser.c \
353         src/socket-util.c \
354         src/log.c \
355         src/ratelimit.c
356
357 libsystemd_basic_la_CFLAGS = \
358         $(AM_CFLAGS) \
359         $(SELINUX_CFLAGS)
360
361 libsystemd_basic_la_LIBADD = \
362         $(SELINUX_LIBS)
363
364 libsystemd_core_la_SOURCES = \
365         src/unit.c \
366         src/job.c \
367         src/manager.c \
368         src/path-lookup.c \
369         src/load-fragment.c \
370         src/service.c \
371         src/automount.c \
372         src/mount.c \
373         src/swap.c \
374         src/device.c \
375         src/target.c \
376         src/snapshot.c \
377         src/socket.c \
378         src/timer.c \
379         src/path.c \
380         src/load-dropin.c \
381         src/execute.c \
382         src/utmp-wtmp.c \
383         src/exit-status.c \
384         src/dbus.c \
385         src/dbus-manager.c \
386         src/dbus-unit.c \
387         src/dbus-job.c \
388         src/dbus-service.c \
389         src/dbus-socket.c \
390         src/dbus-timer.c \
391         src/dbus-target.c \
392         src/dbus-mount.c \
393         src/dbus-automount.c \
394         src/dbus-swap.c \
395         src/dbus-snapshot.c \
396         src/dbus-device.c \
397         src/dbus-execute.c \
398         src/dbus-path.c \
399         src/cgroup.c \
400         src/mount-setup.c \
401         src/hostname-setup.c \
402         src/loopback-setup.c \
403         src/kmod-setup.c \
404         src/locale-setup.c \
405         src/specifier.c \
406         src/unit-name.c \
407         src/fdset.c \
408         src/namespace.c \
409         src/tcpwrap.c \
410         src/cgroup-util.c \
411         src/condition.c
412
413 libsystemd_core_la_CFLAGS = \
414         $(AM_CFLAGS) \
415         $(DBUS_CFLAGS) \
416         $(UDEV_CFLAGS) \
417         $(LIBWRAP_CFLAGS) \
418         $(PAM_CFLAGS) \
419         $(AUDIT_CFLAGS)
420
421 libsystemd_core_la_LIBADD = \
422         libsystemd-basic.la \
423         $(DBUS_LIBS) \
424         $(UDEV_LIBS) \
425         $(LIBWRAP_LIBS) \
426         $(PAM_LIBS) \
427         $(AUDIT_LIBS)
428
429 # This is needed because automake is buggy in how it generates the
430 # rules for C programs, but not Vala programs.  We therefore can't
431 # list the .h files as dependencies if we want make dist to work.
432
433 EXTRA_DIST += \
434         ${libsystemd_basic_la_SOURCES:.c=.h} \
435         ${libsystemd_core_la_SOURCES:.c=.h} \
436         src/macro.h \
437         src/ioprio.h \
438         src/missing.h \
439         src/list.h \
440         src/securebits.h \
441         src/linux/auto_dev-ioctl.h \
442         src/linux/fanotify.h \
443         src/initreq.h \
444         src/sd-daemon.h \
445         src/sd-readahead.h \
446         src/special.h \
447         src/dbus-common.h \
448         src/bus-errors.h \
449         src/cgroup-show.h \
450         src/build.h \
451         src/shutdownd.h \
452         src/umount.h \
453         src/readahead-common.h
454
455 MANPAGES = \
456         man/systemd.1 \
457         man/systemctl.1 \
458         man/systemadm.1 \
459         man/systemd-cgls.1 \
460         man/systemd-notify.1 \
461         man/sd_notify.3 \
462         man/sd_readahead.3 \
463         man/sd_booted.3 \
464         man/sd_listen_fds.3 \
465         man/sd_is_fifo.3 \
466         man/systemd.unit.5 \
467         man/systemd.service.5 \
468         man/systemd.socket.5 \
469         man/systemd.mount.5 \
470         man/systemd.automount.5 \
471         man/systemd.swap.5 \
472         man/systemd.timer.5 \
473         man/systemd.path.5 \
474         man/systemd.target.5 \
475         man/systemd.device.5 \
476         man/systemd.snapshot.5 \
477         man/systemd.exec.5 \
478         man/daemon.7 \
479         man/sd-daemon.7 \
480         man/sd-readahead.7 \
481         man/runlevel.8 \
482         man/telinit.8 \
483         man/halt.8 \
484         man/shutdown.8 \
485         man/pam_systemd.8 \
486         man/systemd.conf.5
487
488 MANPAGES_ALIAS = \
489         man/reboot.8 \
490         man/poweroff.8 \
491         man/sd_is_socket.3 \
492         man/sd_is_socket_unix.3 \
493         man/sd_is_socket_inet.3 \
494         man/sd_notifyf.3 \
495         man/init.1
496
497 man/reboot.8: man/halt.8
498 man/poweroff.8: man/halt.8
499 man/sd_is_socket.3: man/sd_is_fifo.3
500 man/sd_is_socket_unix.3: man/sd_is_fifo.3
501 man/sd_is_socket_inet.3: man/sd_is_fifo.3
502 man/sd_notifyf.3: man/sd_notify.3
503 man/init.1: man/systemd.1
504
505 dist_man_MANS = \
506         $(MANPAGES) \
507         $(MANPAGES_ALIAS)
508
509 nodist_man_MANS = \
510         man/systemd.special.7
511
512 XML_FILES = \
513         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
514
515 XML_IN_FILES = \
516         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
517
518 dist_noinst_DATA = \
519         ${XML_FILES:.xml=.html}
520
521 nodist_noinst_DATA = \
522         ${XML_IN_FILES:.xml.in=.html}
523
524 EXTRA_DIST += \
525         $(XML_FILES) \
526         $(XML_IN_FILES) \
527         ${nodist_man_MANS:=.in} \
528         ${XML_IN_FILES:.xml.in=.html.in}
529
530 systemd_SOURCES = \
531         src/main.c
532
533 systemd_CFLAGS = \
534         $(AM_CFLAGS) \
535         $(DBUS_CFLAGS) \
536         $(UDEV_CFLAGS)
537
538 systemd_LDADD = \
539         libsystemd-core.la
540
541 test_engine_SOURCES = \
542         src/test-engine.c
543
544 test_engine_CFLAGS = $(systemd_CFLAGS)
545 test_engine_LDADD = $(systemd_LDADD)
546
547 test_job_type_SOURCES = \
548         src/test-job-type.c
549
550 test_job_type_CFLAGS = $(systemd_CFLAGS)
551 test_job_type_LDADD = $(systemd_LDADD)
552
553 test_ns_SOURCES = \
554         src/test-ns.c
555
556 test_ns_CFLAGS = $(systemd_CFLAGS)
557 test_ns_LDADD = $(systemd_LDADD)
558
559 test_loopback_SOURCES = \
560         src/test-loopback.c \
561         src/loopback-setup.c
562
563 test_loopback_LDADD = \
564         libsystemd-basic.la
565
566 test_hostname_SOURCES = \
567         src/test-hostname.c \
568         src/hostname-setup.c
569
570 test_hostname_LDADD = \
571         libsystemd-basic.la
572
573 test_daemon_SOURCES = \
574         src/test-daemon.c \
575         src/sd-daemon.c
576
577 test_daemon_LDADD = \
578         libsystemd-basic.la
579
580 test_cgroup_SOURCES = \
581         src/test-cgroup.c \
582         src/cgroup-util.c
583
584 test_cgroup_CFLAGS = \
585         $(AM_CFLAGS)
586
587 test_cgroup_LDADD = \
588         libsystemd-basic.la
589
590 test_env_replace_SOURCES = \
591         src/test-env-replace.c
592
593 test_env_replace_CFLAGS = \
594         $(AM_CFLAGS)
595
596 test_env_replace_LDADD = \
597         libsystemd-basic.la
598
599 systemd_logger_SOURCES = \
600         src/logger.c \
601         src/sd-daemon.c \
602         src/tcpwrap.c
603
604 systemd_logger_LDADD = \
605         libsystemd-basic.la \
606         $(LIBWRAP_LIBS)
607
608 systemd_initctl_SOURCES = \
609         src/initctl.c \
610         src/sd-daemon.c \
611         src/dbus-common.c
612
613 systemd_initctl_CFLAGS = \
614         $(AM_CFLAGS) \
615         $(DBUS_CFLAGS)
616
617 systemd_initctl_LDADD = \
618         libsystemd-basic.la \
619         $(DBUS_LIBS)
620
621 systemd_update_utmp_SOURCES = \
622         src/update-utmp.c \
623         src/dbus-common.c \
624         src/utmp-wtmp.c
625
626 systemd_update_utmp_CFLAGS = \
627         $(AM_CFLAGS) \
628         $(DBUS_CFLAGS) \
629         $(AUDIT_CFLAGS)
630
631 systemd_update_utmp_LDADD = \
632         libsystemd-basic.la \
633         $(DBUS_LIBS) \
634         $(AUDIT_LIBS)
635
636 systemd_random_seed_SOURCES = \
637         src/random-seed.c
638
639 systemd_random_seed_CFLAGS = \
640         $(AM_CFLAGS)
641
642 systemd_random_seed_LDADD = \
643         libsystemd-basic.la
644
645 systemd_shutdownd_SOURCES = \
646         src/utmp-wtmp.c \
647         src/sd-daemon.c \
648         src/shutdownd.c
649
650 systemd_shutdownd_CFLAGS = \
651         $(AM_CFLAGS)
652
653 systemd_shutdownd_LDADD = \
654         libsystemd-basic.la
655
656 systemd_shutdown_SOURCES = \
657         src/mount-setup.c \
658         src/umount.c \
659         src/shutdown.c
660
661 systemd_shutdown_CFLAGS = \
662         $(AM_CFLAGS) \
663         $(UDEV_CFLAGS)
664
665 systemd_shutdown_LDADD = \
666         libsystemd-basic.la \
667         $(UDEV_LIBS)
668
669 systemd_modules_load_SOURCES = \
670         src/modules-load.c
671
672 systemd_modules_load_CFLAGS = \
673         $(AM_CFLAGS)
674
675 systemd_modules_load_LDADD = \
676         libsystemd-basic.la
677
678 systemd_tmpfiles_SOURCES = \
679         src/tmpfiles.c
680
681 systemd_tmpfiles_CFLAGS = \
682         $(AM_CFLAGS)
683
684 systemd_tmpfiles_LDADD = \
685         libsystemd-basic.la
686
687 systemd_fsck_SOURCES = \
688         src/fsck.c \
689         src/dbus-common.c
690
691 systemd_fsck_CFLAGS = \
692         $(AM_CFLAGS) \
693         $(UDEV_CFLAGS) \
694         $(DBUS_CFLAGS)
695
696 systemd_fsck_LDADD = \
697         libsystemd-basic.la \
698         $(UDEV_LIBS) \
699         $(DBUS_LIBS)
700
701 systemd_quotacheck_SOURCES = \
702         src/quotacheck.c
703
704 systemd_quotacheck_CFLAGS = \
705         $(AM_CFLAGS)
706
707 systemd_quotacheck_LDADD = \
708         libsystemd-basic.la
709
710 systemd_user_sessions_SOURCES = \
711         src/user-sessions.c \
712         src/cgroup-util.c
713
714 systemd_user_sessions_CFLAGS = \
715         $(AM_CFLAGS)
716
717 systemd_user_sessions_LDADD = \
718         libsystemd-basic.la
719
720 systemd_vconsole_setup_SOURCES = \
721         src/vconsole-setup.c
722
723 systemd_vconsole_setup_CFLAGS = \
724         $(AM_CFLAGS)
725
726 systemd_vconsole_setup_LDADD = \
727         libsystemd-basic.la
728
729 systemd_remount_api_vfs_SOURCES = \
730         src/remount-api-vfs.c \
731         src/mount-setup.c
732
733 systemd_remount_api_vfs_CFLAGS = \
734         $(AM_CFLAGS)
735
736 systemd_remount_api_vfs_LDADD = \
737         libsystemd-basic.la
738
739 systemd_cgroups_agent_SOURCES = \
740         src/cgroups-agent.c \
741         src/dbus-common.c
742
743 systemd_cgroups_agent_CFLAGS = \
744         $(AM_CFLAGS) \
745         $(DBUS_CFLAGS)
746
747 systemd_cgroups_agent_LDADD = \
748         libsystemd-basic.la \
749         $(DBUS_LIBS)
750
751 systemd_kmsg_syslogd_SOURCES = \
752         src/kmsg-syslogd.c \
753         src/sd-daemon.c \
754         src/fdset.c
755
756 systemd_kmsg_syslogd_CFLAGS = \
757         $(AM_CFLAGS)
758
759 systemd_kmsg_syslogd_LDADD = \
760         libsystemd-basic.la
761
762 systemctl_SOURCES = \
763         src/systemctl.c \
764         src/utmp-wtmp.c \
765         src/dbus-common.c \
766         src/path-lookup.c \
767         src/sd-daemon.c \
768         src/cgroup-show.c \
769         src/cgroup-util.c \
770         src/exit-status.c \
771         src/unit-name.c
772
773 systemctl_CFLAGS = \
774         $(AM_CFLAGS) \
775         $(DBUS_CFLAGS)
776
777 systemctl_LDADD = \
778         libsystemd-basic.la \
779         $(DBUS_LIBS)
780
781 systemd_notify_SOURCES = \
782         src/notify.c \
783         src/sd-daemon.c \
784         src/sd-readahead.c
785
786 systemd_notify_LDADD = \
787         libsystemd-basic.la
788
789 systemd_ask_password_SOURCES = \
790         src/ask-password.c
791
792 systemd_ask_password_LDADD = \
793         libsystemd-basic.la
794
795 systemd_reply_password_SOURCES = \
796         src/reply-password.c
797
798 systemd_reply_password_LDADD = \
799         libsystemd-basic.la
800
801 systemd_readahead_collect_SOURCES = \
802         src/readahead-collect.c \
803         src/sd-daemon.c \
804         src/readahead-common.c
805
806 systemd_readahead_collect_CFLAGS = \
807         $(UDEV_CFLAGS)
808
809 systemd_readahead_collect_LDADD = \
810         libsystemd-basic.la \
811         $(UDEV_LIBS)
812
813 systemd_readahead_replay_SOURCES = \
814         src/readahead-replay.c \
815         src/sd-daemon.c \
816         src/readahead-common.c
817
818 systemd_readahead_replay_CFLAGS = \
819         $(UDEV_CFLAGS)
820
821 systemd_readahead_replay_LDADD = \
822         libsystemd-basic.la \
823         $(UDEV_LIBS)
824
825 systemd_cgls_SOURCES = \
826         src/cgls.c \
827         src/cgroup-show.c \
828         src/cgroup-util.c
829
830 systemd_cgls_CFLAGS = \
831         $(AM_CFLAGS)
832
833 systemd_cgls_LDADD = \
834         libsystemd-basic.la
835
836 systemadm_SOURCES = \
837         src/systemadm.vala \
838         src/systemd-interfaces.vala
839
840 systemadm_CFLAGS = \
841         $(AM_CFLAGS) \
842         $(DBUSGLIB_CFLAGS) \
843         $(GTK_CFLAGS) \
844         -Wno-unused-variable \
845         -Wno-unused-function \
846         -Wno-shadow \
847         -Wno-format-nonliteral
848
849 systemadm_VALAFLAGS = \
850         --pkg=dbus-glib-1 \
851         --pkg=posix \
852         --pkg=gtk+-2.0 \
853         -g
854
855 systemadm_LDADD = \
856         $(DBUSGLIB_LIBS) \
857         $(GTK_LIBS)
858
859 systemd_gnome_ask_password_agent_SOURCES = \
860         src/gnome-ask-password-agent.vala
861
862 systemd_gnome_ask_password_agent_CFLAGS = \
863         $(AM_CFLAGS) \
864         $(DBUSGLIB_CFLAGS) \
865         $(GTK_CFLAGS) \
866         -Wno-unused-variable \
867         -Wno-unused-function \
868         -Wno-shadow \
869         -Wno-format-nonliteral
870
871 systemd_gnome_ask_password_agent_VALAFLAGS = \
872         --pkg=dbus-glib-1 \
873         --pkg=posix \
874         --pkg=gtk+-2.0 \
875         --pkg=linux \
876         --pkg=gio-unix-2.0 \
877         --pkg=libnotify \
878         -g
879
880 systemd_gnome_ask_password_agent_LDADD = \
881         $(DBUSGLIB_LIBS) \
882         $(GTK_LIBS)
883
884 systemd_tty_ask_password_agent_SOURCES = \
885         src/tty-ask-password-agent.c \
886         src/utmp-wtmp.c
887
888 systemd_tty_ask_password_agent_LDADD = \
889         libsystemd-basic.la
890
891 pam_systemd_la_SOURCES = \
892         src/pam-module.c \
893         src/cgroup-util.c \
894         src/sd-daemon.c
895
896 pam_systemd_la_CFLAGS = \
897         $(AM_CFLAGS)
898         -fvisibility=hidden
899
900 pam_systemd_la_LDFLAGS = \
901         -module \
902         -export-dynamic \
903         -avoid-version \
904         -shared \
905         -export-symbols-regex '^pam_sm_.*'
906
907 pam_systemd_la_LIBADD = \
908         libsystemd-basic.la \
909         $(PAM_LIBS)
910
911 SED_PROCESS = \
912         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
913         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
914                 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
915                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
916                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
917                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
918                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
919                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
920                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
921                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
922                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
923                 -e 's,@prefix\@,$(prefix),g' \
924                 < $< > $@
925
926 units/%: units/%.in Makefile
927         $(SED_PROCESS)
928
929 man/%: man/%.in Makefile
930         $(SED_PROCESS)
931
932 %.pc: %.pc.in Makefile
933         $(SED_PROCESS)
934
935 M4_PROCESS_SYSTEM = \
936         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
937         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
938
939 M4_PROCESS_SESSION = \
940         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
941         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
942
943 units/%: units/%.m4 Makefile
944         $(M4_PROCESS_SYSTEM)
945
946 units/session/%: units/%.m4 Makefile
947         $(M4_PROCESS_SESSION)
948
949 CLEANFILES = \
950         $(nodist_systemunit_DATA) \
951         $(nodist_sessionunit_DATA) \
952         $(nodist_man_MANS) \
953         ${XML_IN_FILES:.xml.in=.html} \
954         $(pkgconfigdata_DATA)
955
956 if HAVE_VALAC
957 CLEANFILES += \
958         ${systemadm_SOURCES:.vala=.c}
959 endif
960
961 if HAVE_XSLTPROC
962 XSLTPROC_FLAGS = \
963         --nonet \
964         --param funcsynopsis.style "'ansi'"
965
966 XSLTPROC_PROCESS_MAN = \
967         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
968         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
969
970 XSLTPROC_PROCESS_MAN_IN = \
971         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
972         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
973         mv ${@:.in=} $@
974
975 XSLTPROC_PROCESS_HTML = \
976         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
977         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
978
979 XSLTPROC_PROCESS_HTML_IN = \
980         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
981         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
982         mv ${@:.in=} $@
983
984 man/%.1: man/%.xml
985         $(XSLTPROC_PROCESS_MAN)
986
987 man/%.1.in: man/%.xml.in
988         $(XSLTPROC_PROCESS_MAN)
989
990 man/%.3: man/%.xml
991         $(XSLTPROC_PROCESS_MAN)
992
993 man/%.3.in: man/%.xml.in
994         $(XSLTPROC_PROCESS_MAN)
995
996 man/%.5: man/%.xml
997         $(XSLTPROC_PROCESS_MAN)
998
999 man/%.5.in: man/%.xml.in
1000         $(XSLTPROC_PROCESS_MAN)
1001
1002 man/%.7: man/%.xml
1003         $(XSLTPROC_PROCESS_MAN)
1004
1005 man/%.7.in: man/%.xml.in
1006         $(XSLTPROC_PROCESS_MAN_IN)
1007
1008 man/%.8: man/%.xml
1009         $(XSLTPROC_PROCESS_MAN)
1010
1011 man/%.8.in: man/%.xml.in
1012         $(XSLTPROC_PROCESS_MAN_IN)
1013
1014 man/%.html: man/%.xml
1015         $(XSLTPROC_PROCESS_HTML)
1016
1017 man/%.html.in: man/%.xml.in
1018         $(XSLTPROC_PROCESS_HTML_IN)
1019
1020 CLEANFILES += \
1021         $(dist_man_MANS) \
1022         ${nodist_man_MANS:=.in} \
1023         ${XML_FILES:.xml=.html} \
1024         ${XML_IN_FILES:.xml.in=.html.in}
1025 endif
1026
1027 org.freedesktop.systemd1.%.xml: systemd
1028         $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1029
1030 CLEANFILES += \
1031         $(dbusinterface_DATA)
1032
1033 install-data-hook:
1034         $(MKDIR_P) -m 0755 \
1035                 $(DESTDIR)$(systemunitdir) \
1036                 $(DESTDIR)$(sessionunitdir) \
1037                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1038                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1039                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1040                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1041                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1042                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1043                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1044                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1045                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1046                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1047                 $(DESTDIR)$(pkgsysconfdir)/system \
1048                 $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants \
1049                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1050                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1051                 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1052                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1053                 $(DESTDIR)$(pkgsysconfdir)/session \
1054                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1055         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1056                 rm -f session && \
1057                 $(LN_S) $(pkgsysconfdir)/session session )
1058         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1059                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1060                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1061                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1062                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1063                 $(LN_S) ../syslog.socket syslog.socket )
1064         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1065                 rm -f systemd-update-utmp-runlevel.service && \
1066                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1067         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1068                 rm -f systemd-update-utmp-runlevel.service && \
1069                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1070         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1071                 rm -f systemd-update-utmp-runlevel.service && \
1072                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1073         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1074                 rm -f systemd-update-utmp-runlevel.service && \
1075                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1076         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1077                 rm -f systemd-update-utmp-runlevel.service && \
1078                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1079         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1080                 rm -f systemd-update-utmp-shutdown.service \
1081                         hwclock-save.service \
1082                         systemd-random-seed-save.service && \
1083                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1084                 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1085                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1086         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1087                 rm -f systemd-remount-api-vfs.service \
1088                         fsck-root.service \
1089                         remount-rootfs.service \
1090                         var-run.mount \
1091                         var-lock.mount && \
1092                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1093                 $(LN_S) ../fsck-root.service fsck-root.service && \
1094                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1095                 $(LN_S) ../var-run.mount var-run.mount && \
1096                 $(LN_S) ../var-lock.mount var-lock.mount )
1097         ( cd $(DESTDIR)$(sessionunitdir) && \
1098                 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1099                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1100                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1101                 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1102                 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1103                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1104                 $(LN_S) $(systemunitdir)/printer.target printer.target)
1105         ( cd $(DESTDIR)$(systemunitdir) && \
1106                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1107                 $(LN_S) poweroff.target runlevel0.target && \
1108                 $(LN_S) rescue.target runlevel1.target && \
1109                 $(LN_S) multi-user.target runlevel2.target && \
1110                 $(LN_S) multi-user.target runlevel3.target && \
1111                 $(LN_S) multi-user.target runlevel4.target && \
1112                 $(LN_S) graphical.target runlevel5.target && \
1113                 $(LN_S) reboot.target runlevel6.target )
1114         ( cd $(DESTDIR)$(systemunitdir) && \
1115                 rm -f default.target ctrl-alt-del.target && \
1116                 $(LN_S) graphical.target default.target && \
1117                 $(LN_S) reboot.target ctrl-alt-del.target )
1118         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1119                 rm -f getty.target systemd-user-sessions.service && \
1120                 $(LN_S) ../getty.target getty.target && \
1121                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1122         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1123                 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1124                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1125                 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1126                 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1127                 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1128                 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1129                 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1130         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1131                 rm -f quotaon.service quotacheck.service && \
1132                 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1133                 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1134         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1135                 rm -f remote-fs.target && \
1136                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1137         ( cd $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants && \
1138                 rm -f hwclock-load.service && \
1139                 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1140         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1141                 rm -f dev-hugepages.automount \
1142                         dev-mqueue.automount \
1143                         proc-sys-fs-binfmt_misc.automount \
1144                         sys-kernel-debug.automount \
1145                         sys-kernel-security.automount \
1146                         systemd-vconsole-setup.service \
1147                         systemd-modules-load.service \
1148                         systemd-random-seed-load.service \
1149                         systemd-tmpfiles-setup.service \
1150                         sysctl.service \
1151                         systemd-tmpfiles-clean.timer && \
1152                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1153                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1154                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1155                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1156                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1157                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1158                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1159                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1160                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1161                 $(LN_S) ../sysctl.service sysctl.service && \
1162                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1163         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1164                 rm -f org.freedesktop.systemd1.service && \
1165                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1166 if TARGET_FEDORA
1167         $(MKDIR_P) -m 0755 \
1168                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1169                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1170                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1171                 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1172                 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1173                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1174                 $(DESTDIR)$(systemunitdir)/final.target.wants
1175         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1176                 rm -f display-manager.service && \
1177                 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1178         ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1179                 rm -f prefdm.service && \
1180                 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1181         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1182                 rm -f rc-local.service && \
1183                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1184         ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1185                 rm -f halt-local.service && \
1186                 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1187         ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1188                 rm -f single.service && \
1189                 $(LN_S) $(systemunitdir)/single.service single.service )
1190         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1191                 rm -f plymouth-quit.service && \
1192                 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1193         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1194                 rm -f plymouth-reboot.service && \
1195                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1196         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1197                 rm -f plymouth-poweroff.service && \
1198                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1199         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1200                 rm -f plymouth-halt.service && \
1201                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1202         ( cd $(DESTDIR)$(systemunitdir) && \
1203                 rm -f local.service && \
1204                 $(LN_S) rc-local.service local.service )
1205         ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1206                 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1207 endif
1208 if TARGET_GENTOO
1209         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1210                 rm -f display-manager.service && \
1211                 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1212         ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1213                 rm -f xdm.service && \
1214                 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1215 endif
1216 if TARGET_DEBIAN
1217         $(MKDIR_P) -m 0755 \
1218                 $(DESTDIR)$(systemunitdir)/umount.target.wants
1219         ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1220                 rm -f umountfs.service umountnfs.service umountroot.service && \
1221                 $(LN_S) ../umountfs.service umountfs.service && \
1222                 $(LN_S) ../umountnfs.service umountnfs.service && \
1223                 $(LN_S) ../umountroot.service umountroot.service )
1224         ( cd $(DESTDIR)$(systemunitdir) && \
1225                 rm -f runlevel5.target && \
1226                 $(LN_S) multi-user.target runlevel5.target )
1227 endif
1228 if !TARGET_SUSE
1229 if !TARGET_DEBIAN
1230         ( cd $(DESTDIR)$(systemunitdir) && \
1231                 rm -f fsck.target && \
1232                 $(LN_S) sysinit.target fsck.target )
1233 endif
1234 endif
1235
1236 DISTCHECK_CONFIGURE_FLAGS = \
1237         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1238         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1239         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1240         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1241         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1242         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1243         --with-rootdir=$$dc_install_base/$(rootdir)
1244
1245 upload: all distcheck
1246         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1247         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1248         scp man/*.html tango:public/systemd-man/
1249
1250 git-tag:
1251         git tag "v$(VERSION)" -m "systemd $(VERSION)"
1252
1253 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1254 fedora: install
1255         rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1256         rm /lib/systemd/system/local-fs.target.wants/var-lock.mount