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\" \
53 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
69 rootlibexec_PROGRAMS = \
71 systemd-cgroups-agent \
76 systemd-auto-serial-getty \
77 systemd-modules-load \
78 systemd-remount-api-vfs \
92 pamlib_LTLIBRARIES = \
96 dist_pkgsysconf_DATA = \
99 dist_dbuspolicy_DATA = \
100 src/org.freedesktop.systemd1.conf
102 dist_dbussystemservice_DATA = \
103 src/org.freedesktop.systemd1.service
105 dist_udevrules_DATA = \
108 dbusinterface_DATA = \
109 org.freedesktop.systemd1.Manager.xml \
110 org.freedesktop.systemd1.Job.xml \
111 org.freedesktop.systemd1.Unit.xml \
112 org.freedesktop.systemd1.Service.xml \
113 org.freedesktop.systemd1.Socket.xml \
114 org.freedesktop.systemd1.Timer.xml \
115 org.freedesktop.systemd1.Target.xml \
116 org.freedesktop.systemd1.Device.xml \
117 org.freedesktop.systemd1.Mount.xml \
118 org.freedesktop.systemd1.Automount.xml \
119 org.freedesktop.systemd1.Snapshot.xml \
120 org.freedesktop.systemd1.Swap.xml \
121 org.freedesktop.systemd1.Path.xml
123 dist_systemunit_DATA = \
124 units/emergency.service \
125 units/emergency.target \
129 units/local-fs.target \
130 units/network.target \
131 units/nss-lookup.target \
132 units/mail-transfer-agent.target \
133 units/poweroff.target \
134 units/reboot.target \
135 units/rescue.target \
136 units/rpcbind.target \
137 units/rtc-set.target \
138 units/shutdown.target \
139 units/umount.target \
140 units/sigpwr.target \
141 units/sockets.target \
144 units/systemd-initctl.socket \
145 units/systemd-logger.socket \
146 units/systemd-shutdownd.socket \
147 units/systemd-kmsg-syslogd.socket \
148 units/dev-hugepages.automount \
149 units/dev-hugepages.mount \
150 units/dev-mqueue.automount \
151 units/dev-mqueue.mount \
152 units/proc-sys-fs-binfmt_misc.automount \
153 units/proc-sys-fs-binfmt_misc.mount \
154 units/sys-kernel-debug.automount \
155 units/sys-kernel-debug.mount \
156 units/sys-kernel-security.automount \
157 units/sys-kernel-security.mount \
159 units/var-lock.mount \
160 units/var-lock.service \
161 units/var-run.mount \
162 units/var-run.service \
163 units/hwclock-load.service \
164 units/hwclock-save.service \
165 units/sysctl.service \
166 units/remount-rootfs.service \
167 units/printer.target \
168 units/bluetooth.target \
169 units/smartcard.target
171 nodist_systemunit_DATA = \
172 units/sysinit.target \
173 units/getty@.service \
174 units/serial-getty@.service \
175 units/graphical.target \
176 units/remote-fs.target \
177 units/multi-user.target \
178 units/systemd-initctl.service \
179 units/systemd-logger.service \
180 units/systemd-shutdownd.service \
181 units/systemd-kmsg-syslogd.service \
182 units/systemd-auto-serial-getty.service \
183 units/systemd-modules-load.service \
184 units/systemd-remount-api-vfs.service \
185 units/systemd-update-utmp-runlevel.service \
186 units/systemd-update-utmp-shutdown.service \
187 units/systemd-random-seed-save.service \
188 units/systemd-random-seed-load.service \
191 dist_sessionunit_DATA = \
192 units/session/default.target
194 nodist_sessionunit_DATA = \
195 units/session/remote-fs.target \
196 units/session/exit.service
199 units/sysinit.target.m4 \
200 units/getty@.service.m4 \
201 units/serial-getty@.service.m4 \
202 units/graphical.target.m4 \
203 units/multi-user.target.m4 \
204 units/remote-fs.target.m4 \
205 units/systemd-initctl.service.in \
206 units/systemd-logger.service.in \
207 units/systemd-shutdownd.service.in \
208 units/systemd-kmsg-syslogd.service.in \
209 units/systemd-auto-serial-getty.service.in \
210 units/systemd-modules-load.service.in \
211 units/systemd-remount-api-vfs.service.in \
212 units/systemd-update-utmp-runlevel.service.in \
213 units/systemd-update-utmp-shutdown.service.in \
214 units/systemd-random-seed-save.service.in \
215 units/systemd-random-seed-load.service.in \
216 units/syslog.target.in \
217 units/session/exit.service.in \
221 dist_systemunit_DATA += \
222 units/fedora/halt.service \
223 units/fedora/killall.service \
224 units/fedora/poweroff.service \
225 units/fedora/prefdm.service \
226 units/fedora/rc-local.service \
227 units/fedora/reboot.service \
228 units/fedora/sysinit.service \
229 units/fedora/single.service \
230 units/fedora/plymouth-quit.service \
231 units/fedora/plymouth-reboot.service \
232 units/fedora/plymouth-poweroff.service \
233 units/fedora/plymouth-halt.service
237 dist_systemunit_DATA += \
238 units/suse/halt.service \
239 units/suse/poweroff.service \
240 units/suse/reboot.service \
241 units/suse/fsck.target
245 dist_systemunit_DATA += \
246 units/gentoo/halt.service \
247 units/gentoo/killall.service \
248 units/gentoo/poweroff.service \
249 units/gentoo/reboot.service \
250 units/gentoo/xdm.service
254 dist_systemunit_DATA += \
255 units/arch/sysinit.service \
256 units/arch/rc-local.service \
257 units/arch/halt.service \
258 units/arch/poweroff.service \
259 units/arch/reboot.service
269 pkgconfigdata_DATA = \
272 noinst_LTLIBRARIES = \
273 libsystemd-basic.la \
276 libsystemd_basic_la_SOURCES = \
287 libsystemd_basic_la_CFLAGS = \
291 libsystemd_basic_la_LIBADD = \
294 libsystemd_core_la_SOURCES = \
299 src/load-fragment.c \
322 src/dbus-automount.c \
324 src/dbus-snapshot.c \
330 src/hostname-setup.c \
331 src/loopback-setup.c \
340 libsystemd_core_la_CFLAGS = \
348 libsystemd_core_la_LIBADD = \
349 libsystemd-basic.la \
356 # This is needed because automake is buggy in how it generates the
357 # rules for C programs, but not Vala programs. We therefore can't
358 # list the .h files as dependencies if we want make dist to work.
361 ${libsystemd_basic_la_SOURCES:.c=.h} \
362 ${libsystemd_core_la_SOURCES:.c=.h} \
368 src/linux/auto_dev-ioctl.h \
384 man/systemd-notify.1 \
387 man/sd_listen_fds.3 \
390 man/systemd.service.5 \
391 man/systemd.socket.5 \
392 man/systemd.mount.5 \
393 man/systemd.automount.5 \
395 man/systemd.timer.5 \
397 man/systemd.target.5 \
398 man/systemd.device.5 \
399 man/systemd.snapshot.5 \
414 man/sd_is_socket_unix.3 \
415 man/sd_is_socket_inet.3 \
419 man/reboot.8: man/halt.8
420 man/poweroff.8: man/halt.8
421 man/sd_is_socket.3: man/sd_is_fifo.3
422 man/sd_is_socket_unix.3: man/sd_is_fifo.3
423 man/sd_is_socket_inet.3: man/sd_is_fifo.3
424 man/sd_notifyf.3: man/sd_notify.3
425 man/init.1: man/systemd.1
432 man/systemd.special.7
435 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
438 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
441 ${XML_FILES:.xml=.html}
443 nodist_noinst_DATA = \
444 ${XML_IN_FILES:.xml.in=.html}
449 ${nodist_man_MANS:=.in} \
450 ${XML_IN_FILES:.xml.in=.html.in}
463 test_engine_SOURCES = \
466 test_engine_CFLAGS = $(systemd_CFLAGS)
467 test_engine_LDADD = $(systemd_LDADD)
469 test_job_type_SOURCES = \
472 test_job_type_CFLAGS = $(systemd_CFLAGS)
473 test_job_type_LDADD = $(systemd_LDADD)
478 test_ns_CFLAGS = $(systemd_CFLAGS)
479 test_ns_LDADD = $(systemd_LDADD)
481 test_loopback_SOURCES = \
482 src/test-loopback.c \
485 test_loopback_LDADD = \
488 test_hostname_SOURCES = \
489 src/test-hostname.c \
492 test_hostname_LDADD = \
495 test_daemon_SOURCES = \
499 test_daemon_LDADD = \
502 test_cgroup_SOURCES = \
506 test_cgroup_CFLAGS = \
509 test_cgroup_LDADD = \
512 test_env_replace_SOURCES = \
513 src/test-env-replace.c
515 test_env_replace_CFLAGS = \
518 test_env_replace_LDADD = \
521 systemd_logger_SOURCES = \
526 systemd_logger_LDADD = \
527 libsystemd-basic.la \
530 systemd_initctl_SOURCES = \
535 systemd_initctl_CFLAGS = \
539 systemd_initctl_LDADD = \
540 libsystemd-basic.la \
543 systemd_update_utmp_SOURCES = \
548 systemd_update_utmp_CFLAGS = \
553 systemd_update_utmp_LDADD = \
554 libsystemd-basic.la \
558 systemd_random_seed_SOURCES = \
561 systemd_random_seed_CFLAGS = \
564 systemd_random_seed_LDADD = \
567 systemd_shutdownd_SOURCES = \
572 systemd_shutdownd_CFLAGS = \
575 systemd_shutdownd_LDADD = \
578 systemd_auto_serial_getty_SOURCES = \
579 src/auto-serial-getty.c \
582 systemd_auto_serial_getty_CFLAGS = \
586 systemd_auto_serial_getty_LDADD = \
587 libsystemd-basic.la \
590 systemd_modules_load_SOURCES = \
593 systemd_modules_load_CFLAGS = \
596 systemd_modules_load_LDADD = \
599 systemd_remount_api_vfs_SOURCES = \
600 src/remount-api-vfs.c \
603 systemd_remount_api_vfs_CFLAGS = \
606 systemd_remount_api_vfs_LDADD = \
609 systemd_cgroups_agent_SOURCES = \
610 src/cgroups-agent.c \
613 systemd_cgroups_agent_CFLAGS = \
617 systemd_cgroups_agent_LDADD = \
618 libsystemd-basic.la \
621 systemd_kmsg_syslogd_SOURCES = \
626 systemd_kmsg_syslogd_CFLAGS = \
629 systemd_kmsg_syslogd_LDADD = \
632 systemctl_SOURCES = \
647 libsystemd-basic.la \
650 systemd_notify_SOURCES = \
654 systemd_notify_LDADD = \
657 systemd_cgls_SOURCES = \
662 systemd_cgls_CFLAGS = \
665 systemd_cgls_LDADD = \
668 systemadm_SOURCES = \
670 src/systemd-interfaces.vala
676 -Wno-unused-variable \
677 -Wno-unused-function \
679 -Wno-format-nonliteral
681 systemadm_VALAFLAGS = \
691 pam_systemd_la_SOURCES = \
696 pam_systemd_la_CFLAGS = \
700 pam_systemd_la_LDFLAGS = \
705 -export-symbols-regex '^pam_sm_.*'
707 pam_systemd_la_LIBADD = \
708 libsystemd-basic.la \
712 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
713 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
714 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
715 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
716 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
717 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
718 -e 's,@systemunitdir\@,$(systemunitdir),g' \
719 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
720 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
721 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
722 -e 's,@prefix\@,$(prefix),g' \
725 units/%: units/%.in Makefile
728 man/%: man/%.in Makefile
731 %.pc: %.pc.in Makefile
734 M4_PROCESS_SYSTEM = \
735 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
736 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
738 M4_PROCESS_SESSION = \
739 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
740 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
742 units/%: units/%.m4 Makefile
745 units/session/%: units/%.m4 Makefile
746 $(M4_PROCESS_SESSION)
749 $(nodist_systemunit_DATA) \
750 $(nodist_sessionunit_DATA) \
752 ${XML_IN_FILES:.xml.in=.html} \
753 $(pkgconfigdata_DATA)
757 ${systemadm_SOURCES:.vala=.c}
763 --param funcsynopsis.style "'ansi'"
765 XSLTPROC_PROCESS_MAN = \
766 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
767 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
769 XSLTPROC_PROCESS_MAN_IN = \
770 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
771 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
774 XSLTPROC_PROCESS_HTML = \
775 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
776 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
778 XSLTPROC_PROCESS_HTML_IN = \
779 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
780 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
784 $(XSLTPROC_PROCESS_MAN)
786 man/%.1.in: man/%.xml.in
787 $(XSLTPROC_PROCESS_MAN)
790 $(XSLTPROC_PROCESS_MAN)
792 man/%.3.in: man/%.xml.in
793 $(XSLTPROC_PROCESS_MAN)
796 $(XSLTPROC_PROCESS_MAN)
798 man/%.5.in: man/%.xml.in
799 $(XSLTPROC_PROCESS_MAN)
802 $(XSLTPROC_PROCESS_MAN)
804 man/%.7.in: man/%.xml.in
805 $(XSLTPROC_PROCESS_MAN_IN)
808 $(XSLTPROC_PROCESS_MAN)
810 man/%.8.in: man/%.xml.in
811 $(XSLTPROC_PROCESS_MAN_IN)
813 man/%.html: man/%.xml
814 $(XSLTPROC_PROCESS_HTML)
816 man/%.html.in: man/%.xml.in
817 $(XSLTPROC_PROCESS_HTML_IN)
821 ${nodist_man_MANS:=.in} \
822 ${XML_FILES:.xml=.html} \
823 ${XML_IN_FILES:.xml.in=.html.in}
826 org.freedesktop.systemd1.%.xml: systemd
827 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
830 $(dbusinterface_DATA)
834 $(DESTDIR)$(systemunitdir) \
835 $(DESTDIR)$(sessionunitdir) \
836 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
837 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
838 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
839 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
840 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
841 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
842 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
843 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
844 $(DESTDIR)$(pkgsysconfdir)/system \
845 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
846 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
847 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
848 $(DESTDIR)$(pkgsysconfdir)/session \
849 $(DESTDIR)$(sysconfdir)/xdg/systemd
850 $(MKDIR_P) -m 0755 $(DESTDIR)/cgroup || \
851 echo "Don't forget to create /cgroup! Couldn't create it for you, continuing anyway."
852 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
854 $(LN_S) $(pkgsysconfdir)/session session )
855 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
856 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
857 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
858 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
859 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
860 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
861 rm -f systemd-update-utmp-runlevel.service && \
862 $(LN_S) ../systemd-update-utmp-runlevel.service )
863 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
864 rm -f systemd-update-utmp-runlevel.service && \
865 $(LN_S) ../systemd-update-utmp-runlevel.service )
866 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
867 rm -f systemd-update-utmp-runlevel.service && \
868 $(LN_S) ../systemd-update-utmp-runlevel.service )
869 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
870 rm -f systemd-update-utmp-runlevel.service && \
871 $(LN_S) ../systemd-update-utmp-runlevel.service )
872 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
873 rm -f systemd-update-utmp-runlevel.service && \
874 $(LN_S) ../systemd-update-utmp-runlevel.service )
875 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
876 rm -f systemd-update-utmp-shutdown.service && \
877 $(LN_S) ../systemd-update-utmp-shutdown.service )
878 ( cd $(DESTDIR)$(sessionunitdir) && \
879 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
880 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
881 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
882 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
883 $(LN_S) $(systemunitdir)/swap.target swap.target && \
884 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
885 $(LN_S) $(systemunitdir)/printer.target printer.target)
886 ( cd $(DESTDIR)$(systemunitdir) && \
887 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
888 $(LN_S) poweroff.target runlevel0.target && \
889 $(LN_S) rescue.target runlevel1.target && \
890 $(LN_S) multi-user.target runlevel2.target && \
891 $(LN_S) multi-user.target runlevel3.target && \
892 $(LN_S) multi-user.target runlevel4.target && \
893 $(LN_S) graphical.target runlevel5.target && \
894 $(LN_S) reboot.target runlevel6.target )
895 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
896 rm -f default.target ctrl-alt-del.target kbrequest.target && \
897 $(LN_S) $(systemunitdir)/graphical.target default.target && \
898 $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \
899 $(LN_S) $(systemunitdir)/rescue.target kbrequest.target )
900 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
901 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service systemd-auto-serial-getty.service && \
902 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
903 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
904 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
905 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
906 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
907 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service && \
908 $(LN_S) $(systemunitdir)/systemd-auto-serial-getty.service systemd-auto-serial-getty.service )
909 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
910 rm -f getty.target remote-fs.target && \
911 $(LN_S) $(systemunitdir)/getty.target getty.target && \
912 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
913 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
914 rm -f dev-hugepages.automount \
915 dev-mqueue.automount \
916 proc-sys-fs-binfmt_misc.automount \
917 sys-kernel-debug.automount \
918 sys-kernel-security.automount && \
919 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
920 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
921 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
922 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
923 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount )
924 ( cd $(DESTDIR)$(dbussessionservicedir) && \
925 rm -f org.freedesktop.systemd1.service && \
926 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
929 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
930 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
931 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
932 $(DESTDIR)$(systemunitdir)/halt.target.wants \
933 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
934 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
935 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
936 rm -f display-manager.service && \
937 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
938 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
939 rm -f prefdm.service && \
940 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
941 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
942 rm -f rc-local.service && \
943 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
944 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
945 rm -f single.service && \
946 $(LN_S) $(systemunitdir)/single.service single.service )
947 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
948 rm -f plymouth-quit.service && \
949 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
950 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
951 rm -f plymouth-reboot.service && \
952 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
953 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
954 rm -f plymouth-poweroff.service && \
955 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
956 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
957 rm -f plymouth-halt.service && \
958 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
959 ( cd $(DESTDIR)$(systemunitdir) && \
960 rm -f local.service && \
961 $(LN_S) rc-local.service local.service )
962 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
963 $(LN_S) halt reboot > /dev/null 2>&1 || true )
966 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
967 rm -f display-manager.service && \
968 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
969 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
970 rm -f xdm.service && \
971 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
974 ( cd $(DESTDIR)$(systemunitdir) && \
975 rm -f fsck.target && \
976 $(LN_S) sysinit.target fsck.target )
979 DISTCHECK_CONFIGURE_FLAGS = \
980 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
981 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
982 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
983 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
984 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
985 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
986 --with-rootdir=$$dc_install_base/$(rootdir)
988 upload: all distcheck
989 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/cvs.fedora/systemd/devel/
990 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
991 scp man/*.html tango:public/systemd-man/
994 git tag "v$(VERSION)" -m "systemd $(VERSION)"