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