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 \
111 systemd-user-sessions
124 pamlib_LTLIBRARIES = \
128 dist_pkgsysconf_DATA = \
131 dist_dbuspolicy_DATA = \
132 src/org.freedesktop.systemd1.conf
134 dist_dbussystemservice_DATA = \
135 src/org.freedesktop.systemd1.service
137 dist_udevrules_DATA = \
140 dbusinterface_DATA = \
141 org.freedesktop.systemd1.Manager.xml \
142 org.freedesktop.systemd1.Job.xml \
143 org.freedesktop.systemd1.Unit.xml \
144 org.freedesktop.systemd1.Service.xml \
145 org.freedesktop.systemd1.Socket.xml \
146 org.freedesktop.systemd1.Timer.xml \
147 org.freedesktop.systemd1.Target.xml \
148 org.freedesktop.systemd1.Device.xml \
149 org.freedesktop.systemd1.Mount.xml \
150 org.freedesktop.systemd1.Automount.xml \
151 org.freedesktop.systemd1.Snapshot.xml \
152 org.freedesktop.systemd1.Swap.xml \
153 org.freedesktop.systemd1.Path.xml
155 dist_tmpfiles_DATA = \
156 tmpfiles.d/systemd.conf \
159 dist_systemunit_DATA = \
160 units/emergency.service \
161 units/emergency.target \
166 units/local-fs.target \
167 units/network.target \
168 units/nss-lookup.target \
169 units/mail-transfer-agent.target \
170 units/http-daemon.target \
171 units/poweroff.target \
172 units/reboot.target \
173 units/rescue.target \
174 units/rpcbind.target \
175 units/rtc-set.target \
176 units/shutdown.target \
178 units/umount.target \
179 units/sigpwr.target \
180 units/sockets.target \
183 units/systemd-initctl.socket \
184 units/systemd-logger.socket \
185 units/systemd-shutdownd.socket \
186 units/systemd-kmsg-syslogd.socket \
187 units/dev-hugepages.automount \
188 units/dev-hugepages.mount \
189 units/dev-mqueue.automount \
190 units/dev-mqueue.mount \
191 units/proc-sys-fs-binfmt_misc.automount \
192 units/proc-sys-fs-binfmt_misc.mount \
193 units/sys-kernel-debug.automount \
194 units/sys-kernel-debug.mount \
195 units/sys-kernel-security.automount \
196 units/sys-kernel-security.mount \
198 units/var-lock.mount \
199 units/var-run.mount \
200 units/hwclock-load.service \
201 units/hwclock-save.service \
202 units/sysctl.service \
203 units/remount-rootfs.service \
204 units/printer.target \
205 units/bluetooth.target \
206 units/smartcard.target \
207 units/systemd-readahead-done.timer \
208 units/systemd-tmpfiles-clean.timer
210 nodist_systemunit_DATA = \
211 units/sysinit.target \
212 units/getty@.service \
213 units/serial-getty@.service \
214 units/graphical.target \
215 units/remote-fs.target \
216 units/multi-user.target \
217 units/systemd-initctl.service \
218 units/systemd-logger.service \
219 units/systemd-shutdownd.service \
220 units/systemd-kmsg-syslogd.service \
221 units/systemd-modules-load.service \
222 units/systemd-vconsole-setup.service \
223 units/systemd-remount-api-vfs.service \
224 units/systemd-update-utmp-runlevel.service \
225 units/systemd-update-utmp-shutdown.service \
226 units/systemd-random-seed-save.service \
227 units/systemd-random-seed-load.service \
228 units/systemd-readahead-collect.service \
229 units/systemd-readahead-replay.service \
230 units/systemd-readahead-done.service \
231 units/systemd-tmpfiles-setup.service \
232 units/systemd-tmpfiles-clean.service \
233 units/systemd-user-sessions.service \
234 units/syslog.target \
236 units/poweroff.service \
237 units/reboot.service \
240 dist_sessionunit_DATA = \
241 units/session/default.target \
242 units/session/exit.target
244 nodist_sessionunit_DATA = \
245 units/session/remote-fs.target \
246 units/session/exit.service
249 units/sysinit.target.m4 \
250 units/getty@.service.m4 \
251 units/serial-getty@.service.m4 \
252 units/graphical.target.m4 \
253 units/multi-user.target.m4 \
254 units/remote-fs.target.m4 \
255 units/systemd-initctl.service.in \
256 units/systemd-logger.service.in \
257 units/systemd-shutdownd.service.in \
258 units/systemd-kmsg-syslogd.service.in \
259 units/systemd-modules-load.service.in \
260 units/systemd-vconsole-setup.service.in \
261 units/systemd-remount-api-vfs.service.in \
262 units/systemd-update-utmp-runlevel.service.in \
263 units/systemd-update-utmp-shutdown.service.in \
264 units/systemd-random-seed-save.service.in \
265 units/systemd-random-seed-load.service.in \
266 units/systemd-readahead-collect.service.in \
267 units/systemd-readahead-replay.service.in \
268 units/systemd-readahead-done.service.in \
269 units/systemd-tmpfiles-setup.service.in \
270 units/systemd-tmpfiles-clean.service.in \
271 units/systemd-user-sessions.service.in \
272 units/syslog.target.in \
273 units/halt.service.in \
274 units/poweroff.service.in \
275 units/reboot.service.in \
276 units/kexec.service.in \
277 units/session/exit.service.in \
281 dist_systemunit_DATA += \
282 units/fedora/prefdm.service \
283 units/fedora/rc-local.service \
284 units/fedora/halt-local.service \
285 units/fedora/sysinit.service \
286 units/fedora/single.service \
287 units/fedora/plymouth-quit.service \
288 units/fedora/plymouth-reboot.service \
289 units/fedora/plymouth-poweroff.service \
290 units/fedora/plymouth-halt.service
294 dist_systemunit_DATA += \
295 units/debian/fsck.target \
296 units/debian/umountfs.service \
297 units/debian/umountnfs.service \
298 units/debian/umountroot.service
302 dist_systemunit_DATA += \
303 units/suse/fsck.target
307 dist_systemunit_DATA += \
308 units/gentoo/xdm.service
312 dist_systemunit_DATA += \
313 units/arch/sysinit.service \
314 units/arch/rc-local.service
326 pkgconfigdata_DATA = \
329 dist_polkitpolicy_DATA = \
330 src/org.freedesktop.systemd1.policy
332 noinst_LTLIBRARIES = \
333 libsystemd-basic.la \
336 libsystemd_basic_la_SOURCES = \
347 libsystemd_basic_la_CFLAGS = \
351 libsystemd_basic_la_LIBADD = \
354 libsystemd_core_la_SOURCES = \
359 src/load-fragment.c \
383 src/dbus-automount.c \
385 src/dbus-snapshot.c \
391 src/hostname-setup.c \
392 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_user_sessions_LDADD = \
677 systemd_user_sessions_SOURCES = \
678 src/user-sessions.c \
681 systemd_user_sessions_CFLAGS = \
684 systemd_modules_load_LDADD = \
687 systemd_vconsole_setup_SOURCES = \
690 systemd_vconsole_setup_CFLAGS = \
693 systemd_vconsole_setup_LDADD = \
696 systemd_remount_api_vfs_SOURCES = \
697 src/remount-api-vfs.c \
700 systemd_remount_api_vfs_CFLAGS = \
703 systemd_remount_api_vfs_LDADD = \
706 systemd_cgroups_agent_SOURCES = \
707 src/cgroups-agent.c \
710 systemd_cgroups_agent_CFLAGS = \
714 systemd_cgroups_agent_LDADD = \
715 libsystemd-basic.la \
718 systemd_kmsg_syslogd_SOURCES = \
723 systemd_kmsg_syslogd_CFLAGS = \
726 systemd_kmsg_syslogd_LDADD = \
729 systemctl_SOURCES = \
745 libsystemd-basic.la \
748 systemd_notify_SOURCES = \
753 systemd_notify_LDADD = \
756 systemd_ask_password_SOURCES = \
759 systemd_ask_password_LDADD = \
762 systemd_reply_password_SOURCES = \
765 systemd_reply_password_LDADD = \
768 systemd_readahead_collect_SOURCES = \
769 src/readahead-collect.c \
771 src/readahead-common.c
773 systemd_readahead_collect_CFLAGS = \
776 systemd_readahead_collect_LDADD = \
777 libsystemd-basic.la \
780 systemd_readahead_replay_SOURCES = \
781 src/readahead-replay.c \
783 src/readahead-common.c
785 systemd_readahead_replay_CFLAGS = \
788 systemd_readahead_replay_LDADD = \
789 libsystemd-basic.la \
792 systemd_cgls_SOURCES = \
797 systemd_cgls_CFLAGS = \
800 systemd_cgls_LDADD = \
803 systemadm_SOURCES = \
805 src/systemd-interfaces.vala
811 -Wno-unused-variable \
812 -Wno-unused-function \
814 -Wno-format-nonliteral
816 systemadm_VALAFLAGS = \
826 systemd_ask_password_agent_SOURCES = \
827 src/ask-password-agent.vala
829 systemd_ask_password_agent_CFLAGS = \
833 -Wno-unused-variable \
834 -Wno-unused-function \
836 -Wno-format-nonliteral
838 systemd_ask_password_agent_VALAFLAGS = \
847 systemd_ask_password_agent_LDADD = \
851 pam_systemd_la_SOURCES = \
856 pam_systemd_la_CFLAGS = \
860 pam_systemd_la_LDFLAGS = \
865 -export-symbols-regex '^pam_sm_.*'
867 pam_systemd_la_LIBADD = \
868 libsystemd-basic.la \
872 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
873 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
874 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
875 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
876 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
877 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
878 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
879 -e 's,@systemunitdir\@,$(systemunitdir),g' \
880 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
881 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
882 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
883 -e 's,@prefix\@,$(prefix),g' \
886 units/%: units/%.in Makefile
889 man/%: man/%.in Makefile
892 %.pc: %.pc.in Makefile
895 M4_PROCESS_SYSTEM = \
896 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
897 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
899 M4_PROCESS_SESSION = \
900 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
901 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
903 units/%: units/%.m4 Makefile
906 units/session/%: units/%.m4 Makefile
907 $(M4_PROCESS_SESSION)
910 $(nodist_systemunit_DATA) \
911 $(nodist_sessionunit_DATA) \
913 ${XML_IN_FILES:.xml.in=.html} \
914 $(pkgconfigdata_DATA)
918 ${systemadm_SOURCES:.vala=.c}
924 --param funcsynopsis.style "'ansi'"
926 XSLTPROC_PROCESS_MAN = \
927 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
928 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
930 XSLTPROC_PROCESS_MAN_IN = \
931 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
932 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
935 XSLTPROC_PROCESS_HTML = \
936 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
937 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
939 XSLTPROC_PROCESS_HTML_IN = \
940 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
941 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
945 $(XSLTPROC_PROCESS_MAN)
947 man/%.1.in: man/%.xml.in
948 $(XSLTPROC_PROCESS_MAN)
951 $(XSLTPROC_PROCESS_MAN)
953 man/%.3.in: man/%.xml.in
954 $(XSLTPROC_PROCESS_MAN)
957 $(XSLTPROC_PROCESS_MAN)
959 man/%.5.in: man/%.xml.in
960 $(XSLTPROC_PROCESS_MAN)
963 $(XSLTPROC_PROCESS_MAN)
965 man/%.7.in: man/%.xml.in
966 $(XSLTPROC_PROCESS_MAN_IN)
969 $(XSLTPROC_PROCESS_MAN)
971 man/%.8.in: man/%.xml.in
972 $(XSLTPROC_PROCESS_MAN_IN)
974 man/%.html: man/%.xml
975 $(XSLTPROC_PROCESS_HTML)
977 man/%.html.in: man/%.xml.in
978 $(XSLTPROC_PROCESS_HTML_IN)
982 ${nodist_man_MANS:=.in} \
983 ${XML_FILES:.xml=.html} \
984 ${XML_IN_FILES:.xml.in=.html.in}
987 org.freedesktop.systemd1.%.xml: systemd
988 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
991 $(dbusinterface_DATA)
995 $(DESTDIR)$(systemunitdir) \
996 $(DESTDIR)$(sessionunitdir) \
997 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
998 $(DESTDIR)$(systemunitdir)/basic.target.wants \
999 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1000 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1001 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1002 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1003 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1004 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1005 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1006 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1007 $(DESTDIR)$(pkgsysconfdir)/system \
1008 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1009 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1010 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1011 $(DESTDIR)$(pkgsysconfdir)/session \
1012 $(DESTDIR)$(sysconfdir)/xdg/systemd
1013 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1015 $(LN_S) $(pkgsysconfdir)/session session )
1016 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1017 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
1018 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1019 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1020 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
1021 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1022 rm -f systemd-update-utmp-runlevel.service && \
1023 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1024 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1025 rm -f systemd-update-utmp-runlevel.service && \
1026 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1027 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1028 rm -f systemd-update-utmp-runlevel.service && \
1029 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1030 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1031 rm -f systemd-update-utmp-runlevel.service && \
1032 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1033 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1034 rm -f systemd-update-utmp-runlevel.service && \
1035 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1036 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1037 rm -f systemd-update-utmp-shutdown.service \
1038 hwclock-save.service \
1039 systemd-random-seed-save.service && \
1040 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1041 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1042 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1043 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1044 rm -f systemd-remount-api-vfs.service \
1045 remount-rootfs.service \
1048 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1049 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1050 $(LN_S) ../var-run.mount var-run.mount && \
1051 $(LN_S) ../var-lock.mount var-lock.mount )
1052 ( cd $(DESTDIR)$(sessionunitdir) && \
1053 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1054 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1055 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1056 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1057 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1058 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1059 $(LN_S) $(systemunitdir)/printer.target printer.target)
1060 ( cd $(DESTDIR)$(systemunitdir) && \
1061 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1062 $(LN_S) poweroff.target runlevel0.target && \
1063 $(LN_S) rescue.target runlevel1.target && \
1064 $(LN_S) multi-user.target runlevel2.target && \
1065 $(LN_S) multi-user.target runlevel3.target && \
1066 $(LN_S) multi-user.target runlevel4.target && \
1067 $(LN_S) graphical.target runlevel5.target && \
1068 $(LN_S) reboot.target runlevel6.target )
1069 ( cd $(DESTDIR)$(systemunitdir) && \
1070 rm -f default.target ctrl-alt-del.target && \
1071 $(LN_S) graphical.target default.target && \
1072 $(LN_S) reboot.target ctrl-alt-del.target )
1073 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1074 rm -f getty.target systemd-user-sessions.service && \
1075 $(LN_S) ../getty.target getty.target && \
1076 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1077 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1078 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1079 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1080 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1081 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1082 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1083 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1084 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1085 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1086 rm -f remote-fs.target && \
1087 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1088 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1089 rm -f dev-hugepages.automount \
1090 dev-mqueue.automount \
1091 proc-sys-fs-binfmt_misc.automount \
1092 sys-kernel-debug.automount \
1093 sys-kernel-security.automount \
1094 systemd-vconsole-setup.service \
1095 systemd-modules-load.service \
1096 systemd-random-seed-load.service \
1097 systemd-tmpfiles-setup.service \
1099 systemd-tmpfiles-clean.timer && \
1100 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1101 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1102 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1103 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1104 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1105 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1106 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1107 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1108 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1109 $(LN_S) ../sysctl.service sysctl.service && \
1110 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1111 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1112 rm -f org.freedesktop.systemd1.service && \
1113 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1115 $(MKDIR_P) -m 0755 \
1116 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1117 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1118 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1119 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1120 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1121 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1122 $(DESTDIR)$(systemunitdir)/final.target.wants
1123 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1124 rm -f display-manager.service && \
1125 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1126 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1127 rm -f prefdm.service && \
1128 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1129 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1130 rm -f rc-local.service && \
1131 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1132 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1133 rm -f halt-local.service && \
1134 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1135 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1136 rm -f single.service && \
1137 $(LN_S) $(systemunitdir)/single.service single.service )
1138 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1139 rm -f plymouth-quit.service && \
1140 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1141 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1142 rm -f plymouth-reboot.service && \
1143 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1144 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1145 rm -f plymouth-poweroff.service && \
1146 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1147 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1148 rm -f plymouth-halt.service && \
1149 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1150 ( cd $(DESTDIR)$(systemunitdir) && \
1151 rm -f local.service && \
1152 $(LN_S) rc-local.service local.service )
1153 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1154 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1157 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1158 rm -f display-manager.service && \
1159 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1160 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1161 rm -f xdm.service && \
1162 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1165 $(MKDIR_P) -m 0755 \
1166 $(DESTDIR)$(systemunitdir)/umount.target.wants
1167 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1168 rm -f umountfs.service umountnfs.service umountroot.service && \
1169 $(LN_S) ../umountfs.service umountfs.service && \
1170 $(LN_S) ../umountnfs.service umountnfs.service && \
1171 $(LN_S) ../umountroot.service umountroot.service )
1172 ( cd $(DESTDIR)$(systemunitdir) && \
1173 rm -f runlevel5.target && \
1174 $(LN_S) multi-user.target runlevel5.target )
1178 ( cd $(DESTDIR)$(systemunitdir) && \
1179 rm -f fsck.target && \
1180 $(LN_S) sysinit.target fsck.target )
1184 DISTCHECK_CONFIGURE_FLAGS = \
1185 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1186 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1187 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1188 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1189 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1190 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1191 --with-rootdir=$$dc_install_base/$(rootdir)
1193 upload: all distcheck
1194 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1195 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1196 scp man/*.html tango:public/systemd-man/
1199 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1201 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1203 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1204 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount