chiark / gitweb /
units: make fedora/single.service standard and rename it to rescue.service
[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-quit.service \
305         units/fedora/plymouth-reboot.service \
306         units/fedora/plymouth-kexec.service \
307         units/fedora/plymouth-poweroff.service \
308         units/fedora/plymouth-halt.service
309 endif
310
311 if TARGET_DEBIAN_OR_UBUNTU
312 dist_systemunit_DATA += \
313         units/debian/umountfs.service \
314         units/debian/umountnfs.service \
315         units/debian/umountroot.service
316 endif
317
318 if TARGET_GENTOO
319 dist_systemunit_DATA += \
320         units/gentoo/xdm.service
321 endif
322
323 if TARGET_ARCH
324 dist_systemunit_DATA += \
325         units/arch/rc-local.service
326 endif
327
328 dist_doc_DATA = \
329         README \
330         LICENSE \
331         DISTRO_PORTING \
332         src/sd-daemon.h \
333         src/sd-daemon.c \
334         src/sd-readahead.h \
335         src/sd-readahead.c
336
337 pkgconfigdata_DATA = \
338         systemd.pc
339
340 dist_polkitpolicy_DATA = \
341         src/org.freedesktop.systemd1.policy
342
343 noinst_LTLIBRARIES = \
344         libsystemd-basic.la \
345         libsystemd-core.la
346
347 libsystemd_basic_la_SOURCES = \
348         src/util.c \
349         src/label.c \
350         src/hashmap.c \
351         src/set.c \
352         src/strv.c \
353         src/conf-parser.c \
354         src/socket-util.c \
355         src/log.c \
356         src/ratelimit.c
357
358 libsystemd_basic_la_CFLAGS = \
359         $(AM_CFLAGS) \
360         $(SELINUX_CFLAGS)
361
362 libsystemd_basic_la_LIBADD = \
363         $(SELINUX_LIBS)
364
365 libsystemd_core_la_SOURCES = \
366         src/unit.c \
367         src/job.c \
368         src/manager.c \
369         src/path-lookup.c \
370         src/load-fragment.c \
371         src/service.c \
372         src/automount.c \
373         src/mount.c \
374         src/swap.c \
375         src/device.c \
376         src/target.c \
377         src/snapshot.c \
378         src/socket.c \
379         src/timer.c \
380         src/path.c \
381         src/load-dropin.c \
382         src/execute.c \
383         src/utmp-wtmp.c \
384         src/exit-status.c \
385         src/dbus.c \
386         src/dbus-manager.c \
387         src/dbus-unit.c \
388         src/dbus-job.c \
389         src/dbus-service.c \
390         src/dbus-socket.c \
391         src/dbus-timer.c \
392         src/dbus-target.c \
393         src/dbus-mount.c \
394         src/dbus-automount.c \
395         src/dbus-swap.c \
396         src/dbus-snapshot.c \
397         src/dbus-device.c \
398         src/dbus-execute.c \
399         src/dbus-path.c \
400         src/cgroup.c \
401         src/mount-setup.c \
402         src/hostname-setup.c \
403         src/selinux-setup.c \
404         src/loopback-setup.c \
405         src/kmod-setup.c \
406         src/locale-setup.c \
407         src/specifier.c \
408         src/unit-name.c \
409         src/fdset.c \
410         src/namespace.c \
411         src/tcpwrap.c \
412         src/cgroup-util.c \
413         src/condition.c
414
415 libsystemd_core_la_CFLAGS = \
416         $(AM_CFLAGS) \
417         $(DBUS_CFLAGS) \
418         $(UDEV_CFLAGS) \
419         $(LIBWRAP_CFLAGS) \
420         $(PAM_CFLAGS) \
421         $(AUDIT_CFLAGS)
422
423 libsystemd_core_la_LIBADD = \
424         libsystemd-basic.la \
425         $(DBUS_LIBS) \
426         $(UDEV_LIBS) \
427         $(LIBWRAP_LIBS) \
428         $(PAM_LIBS) \
429         $(AUDIT_LIBS)
430
431 # This is needed because automake is buggy in how it generates the
432 # rules for C programs, but not Vala programs.  We therefore can't
433 # list the .h files as dependencies if we want make dist to work.
434
435 EXTRA_DIST += \
436         ${libsystemd_basic_la_SOURCES:.c=.h} \
437         ${libsystemd_core_la_SOURCES:.c=.h} \
438         src/macro.h \
439         src/ioprio.h \
440         src/missing.h \
441         src/list.h \
442         src/securebits.h \
443         src/linux/auto_dev-ioctl.h \
444         src/linux/fanotify.h \
445         src/initreq.h \
446         src/sd-daemon.h \
447         src/sd-readahead.h \
448         src/special.h \
449         src/dbus-common.h \
450         src/bus-errors.h \
451         src/cgroup-show.h \
452         src/build.h \
453         src/shutdownd.h \
454         src/umount.h \
455         src/readahead-common.h
456
457 MANPAGES = \
458         man/systemd.1 \
459         man/systemctl.1 \
460         man/systemadm.1 \
461         man/systemd-cgls.1 \
462         man/systemd-notify.1 \
463         man/sd_notify.3 \
464         man/sd_readahead.3 \
465         man/sd_booted.3 \
466         man/sd_listen_fds.3 \
467         man/sd_is_fifo.3 \
468         man/systemd.unit.5 \
469         man/systemd.service.5 \
470         man/systemd.socket.5 \
471         man/systemd.mount.5 \
472         man/systemd.automount.5 \
473         man/systemd.swap.5 \
474         man/systemd.timer.5 \
475         man/systemd.path.5 \
476         man/systemd.target.5 \
477         man/systemd.device.5 \
478         man/systemd.snapshot.5 \
479         man/systemd.exec.5 \
480         man/daemon.7 \
481         man/sd-daemon.7 \
482         man/sd-readahead.7 \
483         man/runlevel.8 \
484         man/telinit.8 \
485         man/halt.8 \
486         man/shutdown.8 \
487         man/pam_systemd.8 \
488         man/systemd.conf.5
489
490 MANPAGES_ALIAS = \
491         man/reboot.8 \
492         man/poweroff.8 \
493         man/sd_is_socket.3 \
494         man/sd_is_socket_unix.3 \
495         man/sd_is_socket_inet.3 \
496         man/sd_notifyf.3 \
497         man/init.1
498
499 man/reboot.8: man/halt.8
500 man/poweroff.8: man/halt.8
501 man/sd_is_socket.3: man/sd_is_fifo.3
502 man/sd_is_socket_unix.3: man/sd_is_fifo.3
503 man/sd_is_socket_inet.3: man/sd_is_fifo.3
504 man/sd_notifyf.3: man/sd_notify.3
505 man/init.1: man/systemd.1
506
507 dist_man_MANS = \
508         $(MANPAGES) \
509         $(MANPAGES_ALIAS)
510
511 nodist_man_MANS = \
512         man/systemd.special.7
513
514 XML_FILES = \
515         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
516
517 XML_IN_FILES = \
518         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
519
520 dist_noinst_DATA = \
521         ${XML_FILES:.xml=.html}
522
523 nodist_noinst_DATA = \
524         ${XML_IN_FILES:.xml.in=.html}
525
526 EXTRA_DIST += \
527         $(XML_FILES) \
528         $(XML_IN_FILES) \
529         ${nodist_man_MANS:=.in} \
530         ${XML_IN_FILES:.xml.in=.html.in}
531
532 systemd_SOURCES = \
533         src/main.c
534
535 systemd_CFLAGS = \
536         $(AM_CFLAGS) \
537         $(DBUS_CFLAGS) \
538         $(UDEV_CFLAGS)
539
540 systemd_LDADD = \
541         libsystemd-core.la
542
543 test_engine_SOURCES = \
544         src/test-engine.c
545
546 test_engine_CFLAGS = $(systemd_CFLAGS)
547 test_engine_LDADD = $(systemd_LDADD)
548
549 test_job_type_SOURCES = \
550         src/test-job-type.c
551
552 test_job_type_CFLAGS = $(systemd_CFLAGS)
553 test_job_type_LDADD = $(systemd_LDADD)
554
555 test_ns_SOURCES = \
556         src/test-ns.c
557
558 test_ns_CFLAGS = $(systemd_CFLAGS)
559 test_ns_LDADD = $(systemd_LDADD)
560
561 test_loopback_SOURCES = \
562         src/test-loopback.c \
563         src/loopback-setup.c
564
565 test_loopback_LDADD = \
566         libsystemd-basic.la
567
568 test_hostname_SOURCES = \
569         src/test-hostname.c \
570         src/hostname-setup.c
571
572 test_hostname_LDADD = \
573         libsystemd-basic.la
574
575 test_daemon_SOURCES = \
576         src/test-daemon.c \
577         src/sd-daemon.c
578
579 test_daemon_LDADD = \
580         libsystemd-basic.la
581
582 test_cgroup_SOURCES = \
583         src/test-cgroup.c \
584         src/cgroup-util.c
585
586 test_cgroup_CFLAGS = \
587         $(AM_CFLAGS)
588
589 test_cgroup_LDADD = \
590         libsystemd-basic.la
591
592 test_env_replace_SOURCES = \
593         src/test-env-replace.c
594
595 test_env_replace_CFLAGS = \
596         $(AM_CFLAGS)
597
598 test_env_replace_LDADD = \
599         libsystemd-basic.la
600
601 systemd_logger_SOURCES = \
602         src/logger.c \
603         src/sd-daemon.c \
604         src/tcpwrap.c
605
606 systemd_logger_LDADD = \
607         libsystemd-basic.la \
608         $(LIBWRAP_LIBS)
609
610 systemd_initctl_SOURCES = \
611         src/initctl.c \
612         src/sd-daemon.c \
613         src/dbus-common.c
614
615 systemd_initctl_CFLAGS = \
616         $(AM_CFLAGS) \
617         $(DBUS_CFLAGS)
618
619 systemd_initctl_LDADD = \
620         libsystemd-basic.la \
621         $(DBUS_LIBS)
622
623 systemd_update_utmp_SOURCES = \
624         src/update-utmp.c \
625         src/dbus-common.c \
626         src/utmp-wtmp.c
627
628 systemd_update_utmp_CFLAGS = \
629         $(AM_CFLAGS) \
630         $(DBUS_CFLAGS) \
631         $(AUDIT_CFLAGS)
632
633 systemd_update_utmp_LDADD = \
634         libsystemd-basic.la \
635         $(DBUS_LIBS) \
636         $(AUDIT_LIBS)
637
638 systemd_random_seed_SOURCES = \
639         src/random-seed.c
640
641 systemd_random_seed_CFLAGS = \
642         $(AM_CFLAGS)
643
644 systemd_random_seed_LDADD = \
645         libsystemd-basic.la
646
647 systemd_shutdownd_SOURCES = \
648         src/utmp-wtmp.c \
649         src/sd-daemon.c \
650         src/shutdownd.c
651
652 systemd_shutdownd_CFLAGS = \
653         $(AM_CFLAGS)
654
655 systemd_shutdownd_LDADD = \
656         libsystemd-basic.la
657
658 systemd_shutdown_SOURCES = \
659         src/mount-setup.c \
660         src/umount.c \
661         src/shutdown.c
662
663 systemd_shutdown_CFLAGS = \
664         $(AM_CFLAGS) \
665         $(UDEV_CFLAGS)
666
667 systemd_shutdown_LDADD = \
668         libsystemd-basic.la \
669         $(UDEV_LIBS)
670
671 systemd_modules_load_SOURCES = \
672         src/modules-load.c
673
674 systemd_modules_load_CFLAGS = \
675         $(AM_CFLAGS)
676
677 systemd_modules_load_LDADD = \
678         libsystemd-basic.la
679
680 systemd_tmpfiles_SOURCES = \
681         src/tmpfiles.c
682
683 systemd_tmpfiles_CFLAGS = \
684         $(AM_CFLAGS)
685
686 systemd_tmpfiles_LDADD = \
687         libsystemd-basic.la
688
689 systemd_fsck_SOURCES = \
690         src/fsck.c \
691         src/dbus-common.c
692
693 systemd_fsck_CFLAGS = \
694         $(AM_CFLAGS) \
695         $(UDEV_CFLAGS) \
696         $(DBUS_CFLAGS)
697
698 systemd_fsck_LDADD = \
699         libsystemd-basic.la \
700         $(UDEV_LIBS) \
701         $(DBUS_LIBS)
702
703 systemd_quotacheck_SOURCES = \
704         src/quotacheck.c
705
706 systemd_quotacheck_CFLAGS = \
707         $(AM_CFLAGS)
708
709 systemd_quotacheck_LDADD = \
710         libsystemd-basic.la
711
712 systemd_user_sessions_SOURCES = \
713         src/user-sessions.c \
714         src/cgroup-util.c
715
716 systemd_user_sessions_CFLAGS = \
717         $(AM_CFLAGS)
718
719 systemd_user_sessions_LDADD = \
720         libsystemd-basic.la
721
722 systemd_vconsole_setup_SOURCES = \
723         src/vconsole-setup.c
724
725 systemd_vconsole_setup_CFLAGS = \
726         $(AM_CFLAGS)
727
728 systemd_vconsole_setup_LDADD = \
729         libsystemd-basic.la
730
731 systemd_remount_api_vfs_SOURCES = \
732         src/remount-api-vfs.c \
733         src/mount-setup.c
734
735 systemd_remount_api_vfs_CFLAGS = \
736         $(AM_CFLAGS)
737
738 systemd_remount_api_vfs_LDADD = \
739         libsystemd-basic.la
740
741 systemd_cgroups_agent_SOURCES = \
742         src/cgroups-agent.c \
743         src/dbus-common.c
744
745 systemd_cgroups_agent_CFLAGS = \
746         $(AM_CFLAGS) \
747         $(DBUS_CFLAGS)
748
749 systemd_cgroups_agent_LDADD = \
750         libsystemd-basic.la \
751         $(DBUS_LIBS)
752
753 systemd_kmsg_syslogd_SOURCES = \
754         src/kmsg-syslogd.c \
755         src/sd-daemon.c \
756         src/fdset.c
757
758 systemd_kmsg_syslogd_CFLAGS = \
759         $(AM_CFLAGS)
760
761 systemd_kmsg_syslogd_LDADD = \
762         libsystemd-basic.la
763
764 systemctl_SOURCES = \
765         src/systemctl.c \
766         src/utmp-wtmp.c \
767         src/dbus-common.c \
768         src/path-lookup.c \
769         src/sd-daemon.c \
770         src/cgroup-show.c \
771         src/cgroup-util.c \
772         src/exit-status.c \
773         src/unit-name.c
774
775 systemctl_CFLAGS = \
776         $(AM_CFLAGS) \
777         $(DBUS_CFLAGS)
778
779 systemctl_LDADD = \
780         libsystemd-basic.la \
781         $(DBUS_LIBS)
782
783 systemd_notify_SOURCES = \
784         src/notify.c \
785         src/sd-daemon.c \
786         src/sd-readahead.c
787
788 systemd_notify_LDADD = \
789         libsystemd-basic.la
790
791 systemd_ask_password_SOURCES = \
792         src/ask-password.c
793
794 systemd_ask_password_LDADD = \
795         libsystemd-basic.la
796
797 systemd_reply_password_SOURCES = \
798         src/reply-password.c
799
800 systemd_reply_password_LDADD = \
801         libsystemd-basic.la
802
803 systemd_readahead_collect_SOURCES = \
804         src/readahead-collect.c \
805         src/sd-daemon.c \
806         src/readahead-common.c
807
808 systemd_readahead_collect_CFLAGS = \
809         $(UDEV_CFLAGS)
810
811 systemd_readahead_collect_LDADD = \
812         libsystemd-basic.la \
813         $(UDEV_LIBS)
814
815 systemd_readahead_replay_SOURCES = \
816         src/readahead-replay.c \
817         src/sd-daemon.c \
818         src/readahead-common.c
819
820 systemd_readahead_replay_CFLAGS = \
821         $(UDEV_CFLAGS)
822
823 systemd_readahead_replay_LDADD = \
824         libsystemd-basic.la \
825         $(UDEV_LIBS)
826
827 systemd_cgls_SOURCES = \
828         src/cgls.c \
829         src/cgroup-show.c \
830         src/cgroup-util.c
831
832 systemd_cgls_CFLAGS = \
833         $(AM_CFLAGS)
834
835 systemd_cgls_LDADD = \
836         libsystemd-basic.la
837
838 systemadm_SOURCES = \
839         src/systemadm.vala \
840         src/systemd-interfaces.vala
841
842 systemadm_CFLAGS = \
843         $(AM_CFLAGS) \
844         $(DBUSGLIB_CFLAGS) \
845         $(GTK_CFLAGS) \
846         -Wno-unused-variable \
847         -Wno-unused-function \
848         -Wno-shadow \
849         -Wno-format-nonliteral
850
851 systemadm_VALAFLAGS = \
852         --pkg=dbus-glib-1 \
853         --pkg=posix \
854         --pkg=gtk+-2.0 \
855         -g
856
857 systemadm_LDADD = \
858         $(DBUSGLIB_LIBS) \
859         $(GTK_LIBS)
860
861 systemd_gnome_ask_password_agent_SOURCES = \
862         src/gnome-ask-password-agent.vala
863
864 systemd_gnome_ask_password_agent_CFLAGS = \
865         $(AM_CFLAGS) \
866         $(DBUSGLIB_CFLAGS) \
867         $(GTK_CFLAGS) \
868         -Wno-unused-variable \
869         -Wno-unused-function \
870         -Wno-shadow \
871         -Wno-format-nonliteral
872
873 systemd_gnome_ask_password_agent_VALAFLAGS = \
874         --pkg=dbus-glib-1 \
875         --pkg=posix \
876         --pkg=gtk+-2.0 \
877         --pkg=linux \
878         --pkg=gio-unix-2.0 \
879         --pkg=libnotify \
880         -g
881
882 systemd_gnome_ask_password_agent_LDADD = \
883         $(DBUSGLIB_LIBS) \
884         $(GTK_LIBS)
885
886 systemd_tty_ask_password_agent_SOURCES = \
887         src/tty-ask-password-agent.c \
888         src/utmp-wtmp.c
889
890 systemd_tty_ask_password_agent_LDADD = \
891         libsystemd-basic.la
892
893 pam_systemd_la_SOURCES = \
894         src/pam-module.c \
895         src/cgroup-util.c \
896         src/sd-daemon.c
897
898 pam_systemd_la_CFLAGS = \
899         $(AM_CFLAGS)
900         -fvisibility=hidden
901
902 pam_systemd_la_LDFLAGS = \
903         -module \
904         -export-dynamic \
905         -avoid-version \
906         -shared \
907         -export-symbols-regex '^pam_sm_.*'
908
909 pam_systemd_la_LIBADD = \
910         libsystemd-basic.la \
911         $(PAM_LIBS)
912
913 SED_PROCESS = \
914         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
915         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
916                 -e 's,@rootbindir\@,$(rootbindir),g' \
917                 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
918                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
919                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
920                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
921                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
922                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
923                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
924                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
925                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
926                 -e 's,@prefix\@,$(prefix),g' \
927                 < $< > $@ || rm $@
928
929 units/%: units/%.in Makefile
930         $(SED_PROCESS)
931
932 man/%: man/%.in Makefile
933         $(SED_PROCESS)
934
935 %.pc: %.pc.in Makefile
936         $(SED_PROCESS)
937
938 M4_PROCESS_SYSTEM = \
939         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
940         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
941
942 M4_PROCESS_SESSION = \
943         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
944         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ || rm $@
945
946 units/%: units/%.m4 Makefile
947         $(M4_PROCESS_SYSTEM)
948
949 units/session/%: units/%.m4 Makefile
950         $(M4_PROCESS_SESSION)
951
952 CLEANFILES = \
953         $(nodist_systemunit_DATA) \
954         $(nodist_sessionunit_DATA) \
955         $(nodist_man_MANS) \
956         ${XML_IN_FILES:.xml.in=.html} \
957         $(pkgconfigdata_DATA)
958
959 if HAVE_VALAC
960 CLEANFILES += \
961         ${systemadm_SOURCES:.vala=.c}
962 endif
963
964 if HAVE_XSLTPROC
965 XSLTPROC_FLAGS = \
966         --nonet \
967         --param funcsynopsis.style "'ansi'"
968
969 XSLTPROC_PROCESS_MAN = \
970         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
971         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
972
973 XSLTPROC_PROCESS_MAN_IN = \
974         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
975         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
976         mv ${@:.in=} $@
977
978 XSLTPROC_PROCESS_HTML = \
979         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
980         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
981
982 XSLTPROC_PROCESS_HTML_IN = \
983         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
984         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
985         mv ${@:.in=} $@
986
987 man/%.1: man/%.xml
988         $(XSLTPROC_PROCESS_MAN)
989
990 man/%.1.in: man/%.xml.in
991         $(XSLTPROC_PROCESS_MAN)
992
993 man/%.3: man/%.xml
994         $(XSLTPROC_PROCESS_MAN)
995
996 man/%.3.in: man/%.xml.in
997         $(XSLTPROC_PROCESS_MAN)
998
999 man/%.5: man/%.xml
1000         $(XSLTPROC_PROCESS_MAN)
1001
1002 man/%.5.in: man/%.xml.in
1003         $(XSLTPROC_PROCESS_MAN)
1004
1005 man/%.7: man/%.xml
1006         $(XSLTPROC_PROCESS_MAN)
1007
1008 man/%.7.in: man/%.xml.in
1009         $(XSLTPROC_PROCESS_MAN_IN)
1010
1011 man/%.8: man/%.xml
1012         $(XSLTPROC_PROCESS_MAN)
1013
1014 man/%.8.in: man/%.xml.in
1015         $(XSLTPROC_PROCESS_MAN_IN)
1016
1017 man/%.html: man/%.xml
1018         $(XSLTPROC_PROCESS_HTML)
1019
1020 man/%.html.in: man/%.xml.in
1021         $(XSLTPROC_PROCESS_HTML_IN)
1022
1023 CLEANFILES += \
1024         $(dist_man_MANS) \
1025         ${nodist_man_MANS:=.in} \
1026         ${XML_FILES:.xml=.html} \
1027         ${XML_IN_FILES:.xml.in=.html.in}
1028 endif
1029
1030 org.freedesktop.systemd1.%.xml: systemd
1031         $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1032
1033 CLEANFILES += \
1034         $(dbusinterface_DATA)
1035
1036 install-data-hook:
1037         $(MKDIR_P) -m 0755 \
1038                 $(DESTDIR)$(systemunitdir) \
1039                 $(DESTDIR)$(sessionunitdir) \
1040                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1041                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1042                 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1043                 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1044                 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1045                 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1046                 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1047                 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1048                 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1049                 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1050                 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1051                 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1052                 $(DESTDIR)$(pkgsysconfdir)/system \
1053                 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1054                 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1055                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1056                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1057                 $(DESTDIR)$(pkgsysconfdir)/session \
1058                 $(DESTDIR)$(sysconfdir)/xdg/systemd
1059         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1060                 rm -f session && \
1061                 $(LN_S) $(pkgsysconfdir)/session session )
1062         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1063                 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1064                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1065                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1066                 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1067                 $(LN_S) ../syslog.socket syslog.socket )
1068         ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1069                 rm -f systemd-update-utmp-runlevel.service && \
1070                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1071         ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1072                 rm -f systemd-update-utmp-runlevel.service && \
1073                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1074         ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1075                 rm -f systemd-update-utmp-runlevel.service && \
1076                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1077         ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1078                 rm -f systemd-update-utmp-runlevel.service && \
1079                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1080         ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1081                 rm -f systemd-update-utmp-runlevel.service && \
1082                 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1083         ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1084                 rm -f systemd-update-utmp-shutdown.service \
1085                         hwclock-save.service \
1086                         systemd-random-seed-save.service && \
1087                 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1088                 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1089                 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1090         ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1091                 rm -f systemd-remount-api-vfs.service \
1092                         fsck-root.service \
1093                         remount-rootfs.service \
1094                         var-run.mount \
1095                         var-lock.mount && \
1096                 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1097                 $(LN_S) ../fsck-root.service fsck-root.service && \
1098                 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1099                 $(LN_S) ../var-run.mount var-run.mount && \
1100                 $(LN_S) ../var-lock.mount var-lock.mount )
1101         ( cd $(DESTDIR)$(sessionunitdir) && \
1102                 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1103                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1104                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1105                 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1106                 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1107                 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1108                 $(LN_S) $(systemunitdir)/printer.target printer.target)
1109         ( cd $(DESTDIR)$(systemunitdir) && \
1110                 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1111                 $(LN_S) poweroff.target runlevel0.target && \
1112                 $(LN_S) rescue.target runlevel1.target && \
1113                 $(LN_S) multi-user.target runlevel2.target && \
1114                 $(LN_S) multi-user.target runlevel3.target && \
1115                 $(LN_S) multi-user.target runlevel4.target && \
1116                 $(LN_S) graphical.target runlevel5.target && \
1117                 $(LN_S) reboot.target runlevel6.target )
1118         ( cd $(DESTDIR)$(systemunitdir) && \
1119                 rm -f default.target ctrl-alt-del.target && \
1120                 $(LN_S) graphical.target default.target && \
1121                 $(LN_S) reboot.target ctrl-alt-del.target )
1122         ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1123                 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1124                 $(LN_S) ../getty.target getty.target && \
1125                 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1126                 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1127         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1128                 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1129                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1130                 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1131                 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1132                 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1133                 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1134                 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1135         ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1136                 rm -f quotaon.service quotacheck.service && \
1137                 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1138                 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1139         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1140                 rm -f remote-fs.target && \
1141                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1142         ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1143                 rm -f hwclock-load.service && \
1144                 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1145         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1146                 rm -f dev-hugepages.automount \
1147                         dev-mqueue.automount \
1148                         proc-sys-fs-binfmt_misc.automount \
1149                         sys-kernel-debug.automount \
1150                         sys-kernel-security.automount \
1151                         systemd-vconsole-setup.service \
1152                         systemd-modules-load.service \
1153                         systemd-random-seed-load.service \
1154                         systemd-tmpfiles-setup.service \
1155                         sysctl.service && \
1156                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1157                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1158                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1159                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1160                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1161                 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1162                 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1163                 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1164                 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1165                 $(LN_S) ../sysctl.service sysctl.service )
1166         ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1167                 rm -f systemd-tmpfiles-clean.timer && \
1168                 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1169         ( cd $(DESTDIR)$(dbussessionservicedir) && \
1170                 rm -f org.freedesktop.systemd1.service && \
1171                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1172 if TARGET_FEDORA
1173         $(MKDIR_P) -m 0755 \
1174                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1175                 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1176                 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1177                 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1178                 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1179                 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1180                 $(DESTDIR)$(systemunitdir)/final.target.wants
1181         ( cd $(DESTDIR)$(systemunitdir)/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)/multi-user.target.wants && \
1188                 rm -f plymouth-quit.service  && \
1189                 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1190         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1191                 rm -f plymouth-start.service systemd-ask-password-plymouth.path && \
1192                 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1193                 $(LN_S) ../systemd-ask-password-plymouth.path systemd-ask-password-plymouth.path )
1194         ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1195                 rm -f plymouth-reboot.service && \
1196                 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1197         ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1198                 rm -f plymouth-kexec.service && \
1199                 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1200         ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1201                 rm -f plymouth-poweroff.service && \
1202                 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1203         ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1204                 rm -f plymouth-halt.service && \
1205                 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1206         ( cd $(DESTDIR)$(systemunitdir) && \
1207                 rm -f display-manager.service && \
1208                 $(LN_S) prefdm.service display-manager.service )
1209         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1210                 rm -f display-manager.service && \
1211                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1212 endif
1213 if TARGET_GENTOO
1214         ( cd $(DESTDIR)$(systemunitdir) && \
1215                 rm -f display-manager.service && \
1216                 $(LN_S) xdm.service display-manager.service )
1217         ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1218                 rm -f display-manager.service && \
1219                 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1220 endif
1221 if TARGET_DEBIAN_OR_UBUNTU
1222         $(MKDIR_P) -m 0755 \
1223                 $(DESTDIR)$(systemunitdir)/umount.target.wants
1224         ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1225                 rm -f umountfs.service umountnfs.service umountroot.service && \
1226                 $(LN_S) ../umountfs.service umountfs.service && \
1227                 $(LN_S) ../umountnfs.service umountnfs.service && \
1228                 $(LN_S) ../umountroot.service umountroot.service )
1229         ( cd $(DESTDIR)$(systemunitdir) && \
1230                 rm -f runlevel5.target && \
1231                 $(LN_S) multi-user.target runlevel5.target )
1232 endif
1233
1234 DISTCHECK_CONFIGURE_FLAGS = \
1235         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1236         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1237         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1238         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1239         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1240         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1241         --with-rootdir=$$dc_install_base/$(rootdir)
1242
1243 upload: all distcheck
1244         cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1245         scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1246         scp man/*.html tango:public/systemd-man/
1247
1248 git-tag:
1249         git tag "v$(VERSION)" -m "systemd $(VERSION)"
1250
1251 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1252 fedora: install
1253         rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-run.mount
1254         rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-lock.mount
1255         sed -i -e 's/^#MountAuto=yes$$/MountAuto=no/' \
1256                 -e 's/^#SwapAuto=yes$$/SwapAuto=no/' $(DESTDIR)/etc/systemd/system.conf