1 # This file is part of systemd.
3 # Copyright 2010 Lennart Poettering
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.
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.
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/>.
18 ACLOCAL_AMFLAGS = -I m4
20 # Dirs of external packages
21 dbuspolicydir=@dbuspolicydir@
22 dbussessionservicedir=@dbussessionservicedir@
23 dbussystemservicedir=@dbussystemservicedir@
24 dbusinterfacedir=@dbusinterfacedir@
25 udevrulesdir=@udevrulesdir@
27 pkgconfigdatadir=$(datadir)/pkgconfig
29 # Our own, non-special dirs
30 pkgsysconfdir=$(sysconfdir)/systemd
31 sessionunitdir=$(pkgdatadir)/session
33 # And these are the special ones for /
35 rootbindir=$(rootdir)/bin
36 rootlibexecdir=$(rootdir)/lib/systemd
37 systemunitdir=$(rootdir)/lib/systemd/system
40 -include $(top_builddir)/config.h \
41 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
42 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
43 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
44 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
45 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
46 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
47 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
48 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
49 -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
50 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
51 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
52 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
68 rootlibexec_PROGRAMS = \
70 systemd-cgroups-agent \
84 pamlib_LTLIBRARIES = \
88 dist_pkgsysconf_DATA = \
91 dist_dbuspolicy_DATA = \
92 src/org.freedesktop.systemd1.conf
94 dist_dbussystemservice_DATA = \
95 src/org.freedesktop.systemd1.service
97 dist_udevrules_DATA = \
100 dbusinterface_DATA = \
101 org.freedesktop.systemd1.Manager.xml \
102 org.freedesktop.systemd1.Job.xml \
103 org.freedesktop.systemd1.Unit.xml \
104 org.freedesktop.systemd1.Service.xml \
105 org.freedesktop.systemd1.Socket.xml \
106 org.freedesktop.systemd1.Timer.xml \
107 org.freedesktop.systemd1.Target.xml \
108 org.freedesktop.systemd1.Device.xml \
109 org.freedesktop.systemd1.Mount.xml \
110 org.freedesktop.systemd1.Automount.xml \
111 org.freedesktop.systemd1.Snapshot.xml \
112 org.freedesktop.systemd1.Swap.xml \
113 org.freedesktop.systemd1.Path.xml
115 dist_systemunit_DATA = \
116 units/emergency.service \
117 units/emergency.target \
121 units/local-fs.target \
122 units/network.target \
123 units/nss-lookup.target \
124 units/mail-transfer-agent.target \
125 units/poweroff.target \
126 units/reboot.target \
127 units/rescue.target \
128 units/rpcbind.target \
129 units/rtc-set.target \
130 units/shutdown.target \
131 units/umount.target \
132 units/sigpwr.target \
133 units/sockets.target \
136 units/systemd-initctl.socket \
137 units/systemd-logger.socket \
138 units/dev-hugepages.automount \
139 units/dev-hugepages.mount \
140 units/dev-mqueue.automount \
141 units/dev-mqueue.mount \
142 units/proc-sys-fs-binfmt_misc.automount \
143 units/proc-sys-fs-binfmt_misc.mount \
144 units/sys-kernel-debug.automount \
145 units/sys-kernel-debug.mount \
146 units/sys-kernel-security.automount \
147 units/sys-kernel-security.mount \
148 units/var-lock.mount \
149 units/var-run.mount \
150 units/printer.target \
151 units/bluetooth.target \
152 units/smartcard.target
154 nodist_systemunit_DATA = \
155 units/sysinit.target \
156 units/getty@.service \
157 units/graphical.target \
158 units/remote-fs.target \
159 units/multi-user.target \
160 units/systemd-initctl.service \
161 units/systemd-logger.service \
162 units/systemd-update-utmp-runlevel.service \
163 units/systemd-update-utmp-shutdown.service \
166 dist_sessionunit_DATA = \
167 units/session/default.target
169 nodist_sessionunit_DATA = \
170 units/session/remote-fs.target \
171 units/session/exit.service
174 units/sysinit.target.m4 \
175 units/getty@.service.m4 \
176 units/graphical.target.m4 \
177 units/multi-user.target.m4 \
178 units/remote-fs.target.m4 \
179 units/systemd-initctl.service.in \
180 units/systemd-logger.service.in \
181 units/systemd-update-utmp-runlevel.service.in \
182 units/systemd-update-utmp-shutdown.service.in \
183 units/syslog.target.in \
184 units/session/exit.service.in \
188 dist_systemunit_DATA += \
189 units/fedora/halt.service \
190 units/fedora/killall.service \
191 units/fedora/poweroff.service \
192 units/fedora/prefdm.service \
193 units/fedora/rc-local.service \
194 units/fedora/reboot.service \
195 units/fedora/sysinit.service \
196 units/fedora/single.service \
197 units/fedora/plymouth-quit.service \
198 units/fedora/plymouth-reboot.service \
199 units/fedora/plymouth-poweroff.service \
200 units/fedora/plymouth-halt.service
204 dist_systemunit_DATA += \
205 units/suse/halt.service \
206 units/suse/poweroff.service \
207 units/suse/reboot.service \
208 units/suse/fsck.target
212 dist_systemunit_DATA += \
213 units/gentoo/halt.service \
214 units/gentoo/killall.service \
215 units/gentoo/poweroff.service \
216 units/gentoo/reboot.service \
217 units/gentoo/xdm.service
221 dist_systemunit_DATA += \
222 units/arch/sysinit.service \
223 units/arch/rc-local.service \
224 units/arch/halt.service \
225 units/arch/poweroff.service \
226 units/arch/reboot.service
236 pkgconfigdata_DATA = \
239 noinst_LTLIBRARIES = \
240 libsystemd-basic.la \
243 libsystemd_basic_la_SOURCES = \
254 libsystemd_basic_la_CFLAGS = \
258 libsystemd_basic_la_LIBADD = \
261 libsystemd_core_la_SOURCES = \
266 src/load-fragment.c \
288 src/dbus-automount.c \
290 src/dbus-snapshot.c \
296 src/hostname-setup.c \
297 src/loopback-setup.c \
299 src/modprobe-setup.c \
307 libsystemd_core_la_CFLAGS = \
315 libsystemd_core_la_LIBADD = \
316 libsystemd-basic.la \
323 # This is needed because automake is buggy in how it generates the
324 # rules for C programs, but not Vala programs. We therefore can't
325 # list the .h files as dependencies if we want make dist to work.
328 ${libsystemd_basic_la_SOURCES:.c=.h} \
329 ${libsystemd_core_la_SOURCES:.c=.h} \
335 src/linux/auto_dev-ioctl.h \
350 man/systemd-notify.1 \
353 man/sd_listen_fds.3 \
356 man/systemd.service.5 \
357 man/systemd.socket.5 \
358 man/systemd.mount.5 \
359 man/systemd.automount.5 \
361 man/systemd.timer.5 \
363 man/systemd.target.5 \
364 man/systemd.device.5 \
365 man/systemd.snapshot.5 \
380 man/sd_is_socket_unix.3 \
381 man/sd_is_socket_inet.3 \
385 man/reboot.8: man/halt.8
386 man/poweroff.8: man/halt.8
387 man/sd_is_socket.3: man/sd_is_fifo.3
388 man/sd_is_socket_unix.3: man/sd_is_fifo.3
389 man/sd_is_socket_inet.3: man/sd_is_fifo.3
390 man/sd_notifyf.3: man/sd_notify.3
391 man/init.1: man/systemd.1
398 man/systemd.special.7
401 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
404 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
407 ${XML_FILES:.xml=.html}
409 nodist_noinst_DATA = \
410 ${XML_IN_FILES:.xml.in=.html}
415 ${nodist_man_MANS:=.in} \
416 ${XML_IN_FILES:.xml.in=.html.in}
429 test_engine_SOURCES = \
432 test_engine_CFLAGS = $(systemd_CFLAGS)
433 test_engine_LDADD = $(systemd_LDADD)
435 test_job_type_SOURCES = \
438 test_job_type_CFLAGS = $(systemd_CFLAGS)
439 test_job_type_LDADD = $(systemd_LDADD)
444 test_ns_CFLAGS = $(systemd_CFLAGS)
445 test_ns_LDADD = $(systemd_LDADD)
447 test_loopback_SOURCES = \
448 src/test-loopback.c \
451 test_loopback_LDADD = \
454 test_daemon_SOURCES = \
458 test_daemon_LDADD = \
461 test_cgroup_SOURCES = \
465 test_cgroup_CFLAGS = \
468 test_cgroup_LDADD = \
471 test_env_replace_SOURCES = \
472 src/test-env-replace.c
474 test_env_replace_CFLAGS = \
477 test_env_replace_LDADD = \
480 systemd_logger_SOURCES = \
485 systemd_logger_LDADD = \
486 libsystemd-basic.la \
489 systemd_initctl_SOURCES = \
494 systemd_initctl_CFLAGS = \
498 systemd_initctl_LDADD = \
499 libsystemd-basic.la \
502 systemd_update_utmp_SOURCES = \
507 systemd_update_utmp_CFLAGS = \
512 systemd_update_utmp_LDADD = \
513 libsystemd-basic.la \
517 systemd_cgroups_agent_SOURCES = \
518 src/cgroups-agent.c \
521 systemd_cgroups_agent_CFLAGS = \
525 systemd_cgroups_agent_LDADD = \
526 libsystemd-basic.la \
529 systemctl_SOURCES = \
543 libsystemd-basic.la \
546 systemd_notify_SOURCES = \
550 systemd_notify_LDADD = \
553 systemd_cgls_SOURCES = \
558 systemd_cgls_CFLAGS = \
561 systemd_cgls_LDADD = \
564 systemadm_SOURCES = \
566 src/systemd-interfaces.vala
572 -Wno-unused-variable \
573 -Wno-unused-function \
575 -Wno-format-nonliteral
577 systemadm_VALAFLAGS = \
587 pam_systemd_la_SOURCES = \
592 pam_systemd_la_CFLAGS = \
596 pam_systemd_la_LDFLAGS = \
601 -export-symbols-regex '^pam_sm_.*'
603 pam_systemd_la_LIBADD = \
604 libsystemd-basic.la \
608 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
609 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
610 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
611 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
612 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
613 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
614 -e 's,@systemunitdir\@,$(systemunitdir),g' \
615 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
616 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
617 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
618 -e 's,@prefix\@,$(prefix),g' \
621 units/%: units/%.in Makefile
624 man/%: man/%.in Makefile
627 %.pc: %.pc.in Makefile
630 M4_PROCESS_SYSTEM = \
631 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
632 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
634 M4_PROCESS_SESSION = \
635 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
636 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
638 units/%: units/%.m4 Makefile
641 units/session/%: units/%.m4 Makefile
642 $(M4_PROCESS_SESSION)
645 $(nodist_systemunit_DATA) \
646 $(nodist_sessionunit_DATA) \
648 ${XML_IN_FILES:.xml.in=.html} \
649 $(pkgconfigdata_DATA)
653 ${systemadm_SOURCES:.vala=.c}
659 --param funcsynopsis.style "'ansi'"
661 XSLTPROC_PROCESS_MAN = \
662 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
663 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
665 XSLTPROC_PROCESS_MAN_IN = \
666 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
667 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
670 XSLTPROC_PROCESS_HTML = \
671 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
672 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
674 XSLTPROC_PROCESS_HTML_IN = \
675 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
676 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
680 $(XSLTPROC_PROCESS_MAN)
682 man/%.1.in: man/%.xml.in
683 $(XSLTPROC_PROCESS_MAN)
686 $(XSLTPROC_PROCESS_MAN)
688 man/%.3.in: man/%.xml.in
689 $(XSLTPROC_PROCESS_MAN)
692 $(XSLTPROC_PROCESS_MAN)
694 man/%.5.in: man/%.xml.in
695 $(XSLTPROC_PROCESS_MAN)
698 $(XSLTPROC_PROCESS_MAN)
700 man/%.7.in: man/%.xml.in
701 $(XSLTPROC_PROCESS_MAN_IN)
704 $(XSLTPROC_PROCESS_MAN)
706 man/%.8.in: man/%.xml.in
707 $(XSLTPROC_PROCESS_MAN_IN)
709 man/%.html: man/%.xml
710 $(XSLTPROC_PROCESS_HTML)
712 man/%.html.in: man/%.xml.in
713 $(XSLTPROC_PROCESS_HTML_IN)
717 ${nodist_man_MANS:=.in} \
718 ${XML_FILES:.xml=.html} \
719 ${XML_IN_FILES:.xml.in=.html.in}
722 org.freedesktop.systemd1.%.xml: systemd
723 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
726 $(dbusinterface_DATA)
730 $(DESTDIR)$(systemunitdir) \
731 $(DESTDIR)$(sessionunitdir) \
732 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
733 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
734 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
735 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
736 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
737 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
738 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
739 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
740 $(DESTDIR)$(pkgsysconfdir)/system \
741 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
742 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
743 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
744 $(DESTDIR)$(pkgsysconfdir)/session \
745 $(DESTDIR)$(sysconfdir)/xdg/systemd
746 $(MKDIR_P) -m 0755 $(DESTDIR)/cgroup || \
747 echo "Don't forget to create /cgroup! Couldn't create it for you, continuing anyway."
748 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
750 $(LN_S) $(pkgsysconfdir)/session session )
751 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
752 rm -f systemd-initctl.socket systemd-logger.socket && \
753 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
754 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket )
755 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
756 rm -f systemd-update-utmp-runlevel.service && \
757 $(LN_S) ../systemd-update-utmp-runlevel.service )
758 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
759 rm -f systemd-update-utmp-runlevel.service && \
760 $(LN_S) ../systemd-update-utmp-runlevel.service )
761 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
762 rm -f systemd-update-utmp-runlevel.service && \
763 $(LN_S) ../systemd-update-utmp-runlevel.service )
764 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
765 rm -f systemd-update-utmp-runlevel.service && \
766 $(LN_S) ../systemd-update-utmp-runlevel.service )
767 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
768 rm -f systemd-update-utmp-runlevel.service && \
769 $(LN_S) ../systemd-update-utmp-runlevel.service )
770 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
771 rm -f systemd-update-utmp-shutdown.service && \
772 $(LN_S) ../systemd-update-utmp-shutdown.service )
773 ( cd $(DESTDIR)$(sessionunitdir) && \
774 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
775 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
776 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
777 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
778 $(LN_S) $(systemunitdir)/swap.target swap.target && \
779 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
780 $(LN_S) $(systemunitdir)/printer.target printer.target)
781 ( cd $(DESTDIR)$(systemunitdir) && \
782 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
783 $(LN_S) poweroff.target runlevel0.target && \
784 $(LN_S) rescue.target runlevel1.target && \
785 $(LN_S) multi-user.target runlevel2.target && \
786 $(LN_S) multi-user.target runlevel3.target && \
787 $(LN_S) multi-user.target runlevel4.target && \
788 $(LN_S) graphical.target runlevel5.target && \
789 $(LN_S) reboot.target runlevel6.target )
790 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
791 rm -f default.target ctrl-alt-del.target kbrequest.target && \
792 $(LN_S) $(systemunitdir)/graphical.target default.target && \
793 $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \
794 $(LN_S) $(systemunitdir)/rescue.target kbrequest.target )
795 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
796 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
797 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
798 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
799 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
800 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
801 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
802 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
803 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
804 rm -f getty.target remote-fs.target && \
805 $(LN_S) $(systemunitdir)/getty.target getty.target && \
806 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
807 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
808 rm -f dev-hugepages.automount \
809 dev-mqueue.automount \
810 proc-sys-fs-binfmt_misc.automount \
811 sys-kernel-debug.automount \
812 sys-kernel-security.automount && \
813 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
814 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
815 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
816 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
817 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount )
818 ( cd $(DESTDIR)$(dbussessionservicedir) && \
819 rm -f org.freedesktop.systemd1.service && \
820 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
823 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
824 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
825 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
826 $(DESTDIR)$(systemunitdir)/halt.target.wants \
827 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
828 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
829 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
830 rm -f display-manager.service && \
831 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
832 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
833 rm -f prefdm.service && \
834 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
835 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
836 rm -f rc-local.service && \
837 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
838 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
839 rm -f single.service && \
840 $(LN_S) $(systemunitdir)/single.service single.service )
841 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
842 rm -f plymouth-quit.service && \
843 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
844 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
845 rm -f plymouth-reboot.service && \
846 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
847 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
848 rm -f plymouth-poweroff.service && \
849 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
850 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
851 rm -f plymouth-halt.service && \
852 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
853 ( cd $(DESTDIR)$(systemunitdir) && \
854 rm -f local.service && \
855 $(LN_S) rc-local.service local.service )
856 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
857 $(LN_S) halt reboot > /dev/null 2>&1 || true )
860 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
861 rm -f display-manager.service && \
862 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
863 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
864 rm -f xdm.service && \
865 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
868 ( cd $(DESTDIR)$(systemunitdir) && \
869 rm -f fsck.target && \
870 $(LN_S) sysinit.target fsck.target )
873 DISTCHECK_CONFIGURE_FLAGS = \
874 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
875 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
876 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
877 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
878 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
879 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
880 --with-rootdir=$$dc_install_base/$(rootdir)
882 upload: all distcheck
883 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/cvs.fedora/systemd/devel/
884 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
885 scp man/*.html tango:public/systemd-man/
888 git tag "v$(VERSION)" -m "systemd $(VERSION)"