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
28 polkitpolicydir=$(datadir)/polkit-1/actions
30 # Our own, non-special dirs
31 pkgsysconfdir=$(sysconfdir)/systemd
32 sessionunitdir=$(pkgdatadir)/session
33 tmpfilesdir=$(sysconfdir)/tmpfiles.d
35 # And these are the special ones for /
37 rootbindir=$(rootdir)/bin
38 rootsbindir=$(rootdir)/sbin
39 rootlibexecdir=$(rootdir)/lib/systemd
40 systemunitdir=$(rootdir)/lib/systemd/system
43 -include $(top_builddir)/config.h \
44 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
45 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
46 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
47 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
48 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
49 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
50 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
51 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
52 -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
53 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
54 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
55 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
56 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
57 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
58 -DKEXEC_BINARY_PATH=\"$(rootsbindir)/kexec\" \
63 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
64 -DKBD_SETFONT=\"/usr/bin/setfont\" \
65 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
69 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
70 -DKBD_SETFONT=\"/usr/bin/setfont\" \
71 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
74 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
75 -DKBD_SETFONT=\"/bin/setfont\" \
76 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
92 systemd-ask-password-agent
95 rootlibexec_PROGRAMS = \
97 systemd-cgroups-agent \
100 systemd-random-seed \
103 systemd-modules-load \
104 systemd-remount-api-vfs \
105 systemd-kmsg-syslogd \
106 systemd-vconsole-setup \
107 systemd-reply-password \
108 systemd-readahead-collect \
109 systemd-readahead-replay \
123 pamlib_LTLIBRARIES = \
127 dist_pkgsysconf_DATA = \
130 dist_dbuspolicy_DATA = \
131 src/org.freedesktop.systemd1.conf
133 dist_dbussystemservice_DATA = \
134 src/org.freedesktop.systemd1.service
136 dist_udevrules_DATA = \
139 dbusinterface_DATA = \
140 org.freedesktop.systemd1.Manager.xml \
141 org.freedesktop.systemd1.Job.xml \
142 org.freedesktop.systemd1.Unit.xml \
143 org.freedesktop.systemd1.Service.xml \
144 org.freedesktop.systemd1.Socket.xml \
145 org.freedesktop.systemd1.Timer.xml \
146 org.freedesktop.systemd1.Target.xml \
147 org.freedesktop.systemd1.Device.xml \
148 org.freedesktop.systemd1.Mount.xml \
149 org.freedesktop.systemd1.Automount.xml \
150 org.freedesktop.systemd1.Snapshot.xml \
151 org.freedesktop.systemd1.Swap.xml \
152 org.freedesktop.systemd1.Path.xml
154 dist_tmpfiles_DATA = \
155 tmpfiles.d/systemd.conf \
158 dist_systemunit_DATA = \
159 units/emergency.service \
160 units/emergency.target \
164 units/local-fs.target \
165 units/network.target \
166 units/nss-lookup.target \
167 units/mail-transfer-agent.target \
168 units/http-daemon.target \
169 units/poweroff.target \
170 units/reboot.target \
171 units/rescue.target \
172 units/rpcbind.target \
173 units/rtc-set.target \
174 units/shutdown.target \
175 units/umount.target \
176 units/sigpwr.target \
177 units/sockets.target \
180 units/systemd-initctl.socket \
181 units/systemd-logger.socket \
182 units/systemd-shutdownd.socket \
183 units/systemd-kmsg-syslogd.socket \
184 units/dev-hugepages.automount \
185 units/dev-hugepages.mount \
186 units/dev-mqueue.automount \
187 units/dev-mqueue.mount \
188 units/proc-sys-fs-binfmt_misc.automount \
189 units/proc-sys-fs-binfmt_misc.mount \
190 units/sys-kernel-debug.automount \
191 units/sys-kernel-debug.mount \
192 units/sys-kernel-security.automount \
193 units/sys-kernel-security.mount \
195 units/var-lock.mount \
196 units/var-run.mount \
197 units/hwclock-load.service \
198 units/hwclock-save.service \
199 units/sysctl.service \
200 units/remount-rootfs.service \
201 units/printer.target \
202 units/bluetooth.target \
203 units/smartcard.target \
204 units/tmpwatch.service \
205 units/tmpwatch.timer \
206 units/systemd-readahead-done.timer
208 nodist_systemunit_DATA = \
209 units/sysinit.target \
210 units/getty@.service \
211 units/serial-getty@.service \
212 units/graphical.target \
213 units/remote-fs.target \
214 units/multi-user.target \
215 units/systemd-initctl.service \
216 units/systemd-logger.service \
217 units/systemd-shutdownd.service \
218 units/systemd-kmsg-syslogd.service \
219 units/systemd-modules-load.service \
220 units/systemd-vconsole-setup.service \
221 units/systemd-remount-api-vfs.service \
222 units/systemd-update-utmp-runlevel.service \
223 units/systemd-update-utmp-shutdown.service \
224 units/systemd-random-seed-save.service \
225 units/systemd-random-seed-load.service \
226 units/systemd-readahead-collect.service \
227 units/systemd-readahead-replay.service \
228 units/systemd-readahead-done.service \
229 units/systemd-tmpfiles.service \
232 dist_sessionunit_DATA = \
233 units/session/default.target
235 nodist_sessionunit_DATA = \
236 units/session/remote-fs.target \
237 units/session/exit.service
240 units/sysinit.target.m4 \
241 units/getty@.service.m4 \
242 units/serial-getty@.service.m4 \
243 units/graphical.target.m4 \
244 units/multi-user.target.m4 \
245 units/remote-fs.target.m4 \
246 units/systemd-initctl.service.in \
247 units/systemd-logger.service.in \
248 units/systemd-shutdownd.service.in \
249 units/systemd-kmsg-syslogd.service.in \
250 units/systemd-modules-load.service.in \
251 units/systemd-vconsole-setup.service.in \
252 units/systemd-remount-api-vfs.service.in \
253 units/systemd-update-utmp-runlevel.service.in \
254 units/systemd-update-utmp-shutdown.service.in \
255 units/systemd-random-seed-save.service.in \
256 units/systemd-random-seed-load.service.in \
257 units/systemd-readahead-collect.service.in \
258 units/systemd-readahead-replay.service.in \
259 units/systemd-readahead-done.service.in \
260 units/systemd-tmpfiles.service.in \
261 units/syslog.target.in \
262 units/session/exit.service.in \
266 dist_systemunit_DATA += \
267 units/fedora/halt.service \
268 units/fedora/killall.service \
269 units/fedora/poweroff.service \
270 units/fedora/prefdm.service \
271 units/fedora/rc-local.service \
272 units/fedora/reboot.service \
273 units/fedora/sysinit.service \
274 units/fedora/single.service \
275 units/fedora/plymouth-quit.service \
276 units/fedora/plymouth-reboot.service \
277 units/fedora/plymouth-poweroff.service \
278 units/fedora/plymouth-halt.service
282 dist_systemunit_DATA += \
283 units/debian/halt.service \
284 units/debian/killall.service \
285 units/debian/poweroff.service \
286 units/debian/reboot.service \
287 units/debian/fsck.target \
288 units/debian/umountfs.service \
289 units/debian/umountnfs.service \
290 units/debian/umountroot.service
294 dist_systemunit_DATA += \
295 units/suse/halt.service \
296 units/suse/poweroff.service \
297 units/suse/reboot.service \
298 units/suse/fsck.target
302 dist_systemunit_DATA += \
303 units/gentoo/halt.service \
304 units/gentoo/killall.service \
305 units/gentoo/poweroff.service \
306 units/gentoo/reboot.service \
307 units/gentoo/xdm.service
311 dist_systemunit_DATA += \
312 units/arch/sysinit.service \
313 units/arch/rc-local.service \
314 units/arch/halt.service \
315 units/arch/poweroff.service \
316 units/arch/reboot.service
328 pkgconfigdata_DATA = \
331 dist_polkitpolicy_DATA = \
332 src/org.freedesktop.systemd1.policy
334 noinst_LTLIBRARIES = \
335 libsystemd-basic.la \
338 libsystemd_basic_la_SOURCES = \
349 libsystemd_basic_la_CFLAGS = \
353 libsystemd_basic_la_LIBADD = \
356 libsystemd_core_la_SOURCES = \
361 src/load-fragment.c \
384 src/dbus-automount.c \
386 src/dbus-snapshot.c \
392 src/hostname-setup.c \
393 src/loopback-setup.c \
403 libsystemd_core_la_CFLAGS = \
411 libsystemd_core_la_LIBADD = \
412 libsystemd-basic.la \
419 # This is needed because automake is buggy in how it generates the
420 # rules for C programs, but not Vala programs. We therefore can't
421 # list the .h files as dependencies if we want make dist to work.
424 ${libsystemd_basic_la_SOURCES:.c=.h} \
425 ${libsystemd_core_la_SOURCES:.c=.h} \
431 src/linux/auto_dev-ioctl.h \
432 src/linux/fanotify.h \
443 src/readahead-common.h
450 man/systemd-notify.1 \
454 man/sd_listen_fds.3 \
457 man/systemd.service.5 \
458 man/systemd.socket.5 \
459 man/systemd.mount.5 \
460 man/systemd.automount.5 \
462 man/systemd.timer.5 \
464 man/systemd.target.5 \
465 man/systemd.device.5 \
466 man/systemd.snapshot.5 \
482 man/sd_is_socket_unix.3 \
483 man/sd_is_socket_inet.3 \
487 man/reboot.8: man/halt.8
488 man/poweroff.8: man/halt.8
489 man/sd_is_socket.3: man/sd_is_fifo.3
490 man/sd_is_socket_unix.3: man/sd_is_fifo.3
491 man/sd_is_socket_inet.3: man/sd_is_fifo.3
492 man/sd_notifyf.3: man/sd_notify.3
493 man/init.1: man/systemd.1
500 man/systemd.special.7
503 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
506 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
509 ${XML_FILES:.xml=.html}
511 nodist_noinst_DATA = \
512 ${XML_IN_FILES:.xml.in=.html}
517 ${nodist_man_MANS:=.in} \
518 ${XML_IN_FILES:.xml.in=.html.in}
531 test_engine_SOURCES = \
534 test_engine_CFLAGS = $(systemd_CFLAGS)
535 test_engine_LDADD = $(systemd_LDADD)
537 test_job_type_SOURCES = \
540 test_job_type_CFLAGS = $(systemd_CFLAGS)
541 test_job_type_LDADD = $(systemd_LDADD)
546 test_ns_CFLAGS = $(systemd_CFLAGS)
547 test_ns_LDADD = $(systemd_LDADD)
549 test_loopback_SOURCES = \
550 src/test-loopback.c \
553 test_loopback_LDADD = \
556 test_hostname_SOURCES = \
557 src/test-hostname.c \
560 test_hostname_LDADD = \
563 test_daemon_SOURCES = \
567 test_daemon_LDADD = \
570 test_cgroup_SOURCES = \
574 test_cgroup_CFLAGS = \
577 test_cgroup_LDADD = \
580 test_env_replace_SOURCES = \
581 src/test-env-replace.c
583 test_env_replace_CFLAGS = \
586 test_env_replace_LDADD = \
589 systemd_logger_SOURCES = \
594 systemd_logger_LDADD = \
595 libsystemd-basic.la \
598 systemd_initctl_SOURCES = \
603 systemd_initctl_CFLAGS = \
607 systemd_initctl_LDADD = \
608 libsystemd-basic.la \
611 systemd_update_utmp_SOURCES = \
616 systemd_update_utmp_CFLAGS = \
621 systemd_update_utmp_LDADD = \
622 libsystemd-basic.la \
626 systemd_random_seed_SOURCES = \
629 systemd_random_seed_CFLAGS = \
632 systemd_random_seed_LDADD = \
635 systemd_shutdownd_SOURCES = \
640 systemd_shutdownd_CFLAGS = \
643 systemd_shutdownd_LDADD = \
646 systemd_shutdown_SOURCES = \
651 systemd_shutdown_CFLAGS = \
655 systemd_shutdown_LDADD = \
656 libsystemd-basic.la \
659 systemd_modules_load_SOURCES = \
662 systemd_modules_load_CFLAGS = \
665 systemd_tmpfiles_LDADD = \
668 systemd_tmpfiles_SOURCES = \
671 systemd_tmpfiles_CFLAGS = \
674 systemd_modules_load_LDADD = \
677 systemd_vconsole_setup_SOURCES = \
680 systemd_vconsole_setup_CFLAGS = \
683 systemd_vconsole_setup_LDADD = \
686 systemd_remount_api_vfs_SOURCES = \
687 src/remount-api-vfs.c \
690 systemd_remount_api_vfs_CFLAGS = \
693 systemd_remount_api_vfs_LDADD = \
696 systemd_cgroups_agent_SOURCES = \
697 src/cgroups-agent.c \
700 systemd_cgroups_agent_CFLAGS = \
704 systemd_cgroups_agent_LDADD = \
705 libsystemd-basic.la \
708 systemd_kmsg_syslogd_SOURCES = \
713 systemd_kmsg_syslogd_CFLAGS = \
716 systemd_kmsg_syslogd_LDADD = \
719 systemctl_SOURCES = \
735 libsystemd-basic.la \
738 systemd_notify_SOURCES = \
743 systemd_notify_LDADD = \
746 systemd_ask_password_SOURCES = \
749 systemd_ask_password_LDADD = \
752 systemd_reply_password_SOURCES = \
755 systemd_reply_password_LDADD = \
758 systemd_readahead_collect_SOURCES = \
759 src/readahead-collect.c \
761 src/readahead-common.c
763 systemd_readahead_collect_CFLAGS = \
766 systemd_readahead_collect_LDADD = \
767 libsystemd-basic.la \
770 systemd_readahead_replay_SOURCES = \
771 src/readahead-replay.c \
773 src/readahead-common.c
775 systemd_readahead_replay_CFLAGS = \
778 systemd_readahead_replay_LDADD = \
779 libsystemd-basic.la \
782 systemd_cgls_SOURCES = \
787 systemd_cgls_CFLAGS = \
790 systemd_cgls_LDADD = \
793 systemadm_SOURCES = \
795 src/systemd-interfaces.vala
801 -Wno-unused-variable \
802 -Wno-unused-function \
804 -Wno-format-nonliteral
806 systemadm_VALAFLAGS = \
816 systemd_ask_password_agent_SOURCES = \
817 src/ask-password-agent.vala
819 systemd_ask_password_agent_CFLAGS = \
823 -Wno-unused-variable \
824 -Wno-unused-function \
826 -Wno-format-nonliteral
828 systemd_ask_password_agent_VALAFLAGS = \
837 systemd_ask_password_agent_LDADD = \
841 pam_systemd_la_SOURCES = \
846 pam_systemd_la_CFLAGS = \
850 pam_systemd_la_LDFLAGS = \
855 -export-symbols-regex '^pam_sm_.*'
857 pam_systemd_la_LIBADD = \
858 libsystemd-basic.la \
862 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
863 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
864 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
865 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
866 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
867 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
868 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
869 -e 's,@systemunitdir\@,$(systemunitdir),g' \
870 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
871 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
872 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
873 -e 's,@prefix\@,$(prefix),g' \
876 units/%: units/%.in Makefile
879 man/%: man/%.in Makefile
882 %.pc: %.pc.in Makefile
885 M4_PROCESS_SYSTEM = \
886 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
887 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
889 M4_PROCESS_SESSION = \
890 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
891 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
893 units/%: units/%.m4 Makefile
896 units/session/%: units/%.m4 Makefile
897 $(M4_PROCESS_SESSION)
900 $(nodist_systemunit_DATA) \
901 $(nodist_sessionunit_DATA) \
903 ${XML_IN_FILES:.xml.in=.html} \
904 $(pkgconfigdata_DATA)
908 ${systemadm_SOURCES:.vala=.c}
914 --param funcsynopsis.style "'ansi'"
916 XSLTPROC_PROCESS_MAN = \
917 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
918 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
920 XSLTPROC_PROCESS_MAN_IN = \
921 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
922 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
925 XSLTPROC_PROCESS_HTML = \
926 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
927 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
929 XSLTPROC_PROCESS_HTML_IN = \
930 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
931 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
935 $(XSLTPROC_PROCESS_MAN)
937 man/%.1.in: man/%.xml.in
938 $(XSLTPROC_PROCESS_MAN)
941 $(XSLTPROC_PROCESS_MAN)
943 man/%.3.in: man/%.xml.in
944 $(XSLTPROC_PROCESS_MAN)
947 $(XSLTPROC_PROCESS_MAN)
949 man/%.5.in: man/%.xml.in
950 $(XSLTPROC_PROCESS_MAN)
953 $(XSLTPROC_PROCESS_MAN)
955 man/%.7.in: man/%.xml.in
956 $(XSLTPROC_PROCESS_MAN_IN)
959 $(XSLTPROC_PROCESS_MAN)
961 man/%.8.in: man/%.xml.in
962 $(XSLTPROC_PROCESS_MAN_IN)
964 man/%.html: man/%.xml
965 $(XSLTPROC_PROCESS_HTML)
967 man/%.html.in: man/%.xml.in
968 $(XSLTPROC_PROCESS_HTML_IN)
972 ${nodist_man_MANS:=.in} \
973 ${XML_FILES:.xml=.html} \
974 ${XML_IN_FILES:.xml.in=.html.in}
977 org.freedesktop.systemd1.%.xml: systemd
978 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
981 $(dbusinterface_DATA)
985 $(DESTDIR)$(systemunitdir) \
986 $(DESTDIR)$(sessionunitdir) \
987 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
988 $(DESTDIR)$(systemunitdir)/basic.target.wants \
989 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
990 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
991 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
992 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
993 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
994 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
995 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
996 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
997 $(DESTDIR)$(pkgsysconfdir)/system \
998 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
999 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1000 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1001 $(DESTDIR)$(pkgsysconfdir)/session \
1002 $(DESTDIR)$(sysconfdir)/xdg/systemd
1003 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1005 $(LN_S) $(pkgsysconfdir)/session session )
1006 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1007 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
1008 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1009 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1010 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
1011 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1012 rm -f systemd-update-utmp-runlevel.service && \
1013 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1014 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1015 rm -f systemd-update-utmp-runlevel.service && \
1016 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1017 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1018 rm -f systemd-update-utmp-runlevel.service && \
1019 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1020 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1021 rm -f systemd-update-utmp-runlevel.service && \
1022 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1023 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1024 rm -f systemd-update-utmp-runlevel.service && \
1025 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1026 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1027 rm -f systemd-update-utmp-shutdown.service \
1028 hwclock-save.service \
1029 systemd-random-seed-save.service && \
1030 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1031 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1032 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1033 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1034 rm -f systemd-remount-api-vfs.service \
1035 remount-rootfs.service \
1038 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1039 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1040 $(LN_S) ../var-run.mount var-run.mount && \
1041 $(LN_S) ../var-lock.mount var-lock.mount )
1042 ( cd $(DESTDIR)$(sessionunitdir) && \
1043 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1044 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1045 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1046 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1047 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1048 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1049 $(LN_S) $(systemunitdir)/printer.target printer.target)
1050 ( cd $(DESTDIR)$(systemunitdir) && \
1051 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1052 $(LN_S) poweroff.target runlevel0.target && \
1053 $(LN_S) rescue.target runlevel1.target && \
1054 $(LN_S) multi-user.target runlevel2.target && \
1055 $(LN_S) multi-user.target runlevel3.target && \
1056 $(LN_S) multi-user.target runlevel4.target && \
1057 $(LN_S) graphical.target runlevel5.target && \
1058 $(LN_S) reboot.target runlevel6.target )
1059 ( cd $(DESTDIR)$(systemunitdir) && \
1060 rm -f default.target ctrl-alt-del.target && \
1061 $(LN_S) graphical.target default.target && \
1062 $(LN_S) reboot.target ctrl-alt-del.target )
1063 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1064 rm -f getty.target && \
1065 $(LN_S) ../getty.target getty.target )
1066 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1067 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1068 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1069 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1070 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1071 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1072 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1073 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1074 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1075 rm -f remote-fs.target && \
1076 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1077 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1078 rm -f dev-hugepages.automount \
1079 dev-mqueue.automount \
1080 proc-sys-fs-binfmt_misc.automount \
1081 sys-kernel-debug.automount \
1082 sys-kernel-security.automount \
1083 systemd-vconsole-setup.service \
1084 systemd-modules-load.service \
1085 systemd-random-seed-load.service \
1086 systemd-tmpfiles.service \
1089 tmpwatch.service && \
1090 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1091 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1092 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1093 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1094 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1095 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1096 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1097 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1098 $(LN_S) ../systemd-tmpfiles.service systemd-tmpfiles.service && \
1099 $(LN_S) ../sysctl.service sysctl.service && \
1100 $(LN_S) ../tmpwatch.timer tmpwatch.timer && \
1101 $(LN_S) ../tmpwatch.service tmpwatch.service )
1102 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1103 rm -f org.freedesktop.systemd1.service && \
1104 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1106 $(MKDIR_P) -m 0755 \
1107 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1108 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1109 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1110 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1111 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1112 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1113 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1114 rm -f display-manager.service && \
1115 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1116 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1117 rm -f prefdm.service && \
1118 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1119 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1120 rm -f rc-local.service && \
1121 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1122 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1123 rm -f single.service && \
1124 $(LN_S) $(systemunitdir)/single.service single.service )
1125 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1126 rm -f plymouth-quit.service && \
1127 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1128 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1129 rm -f plymouth-reboot.service && \
1130 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1131 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1132 rm -f plymouth-poweroff.service && \
1133 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1134 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1135 rm -f plymouth-halt.service && \
1136 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1137 ( cd $(DESTDIR)$(systemunitdir) && \
1138 rm -f local.service && \
1139 $(LN_S) rc-local.service local.service )
1140 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1141 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1144 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1145 rm -f display-manager.service && \
1146 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1147 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1148 rm -f xdm.service && \
1149 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1152 $(MKDIR_P) -m 0755 \
1153 $(DESTDIR)$(systemunitdir)/umount.target.wants
1154 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1155 rm -f umountfs.service umountnfs.service umountroot.service && \
1156 $(LN_S) ../umountfs.service umountfs.service && \
1157 $(LN_S) ../umountnfs.service umountnfs.service && \
1158 $(LN_S) ../umountroot.service umountroot.service )
1159 ( cd $(DESTDIR)$(systemunitdir) && \
1160 rm -f runlevel5.target && \
1161 $(LN_S) multi-user.target runlevel5.target )
1165 ( cd $(DESTDIR)$(systemunitdir) && \
1166 rm -f fsck.target && \
1167 $(LN_S) sysinit.target fsck.target )
1171 DISTCHECK_CONFIGURE_FLAGS = \
1172 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1173 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1174 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1175 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1176 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1177 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1178 --with-rootdir=$$dc_install_base/$(rootdir)
1180 upload: all distcheck
1181 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1182 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1183 scp man/*.html tango:public/systemd-man/
1186 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1188 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1190 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1191 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount