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 \
165 units/local-fs.target \
166 units/network.target \
167 units/nss-lookup.target \
168 units/mail-transfer-agent.target \
169 units/http-daemon.target \
170 units/poweroff.target \
171 units/reboot.target \
172 units/rescue.target \
173 units/rpcbind.target \
174 units/rtc-set.target \
175 units/shutdown.target \
176 units/umount.target \
177 units/sigpwr.target \
178 units/sockets.target \
181 units/systemd-initctl.socket \
182 units/systemd-logger.socket \
183 units/systemd-shutdownd.socket \
184 units/systemd-kmsg-syslogd.socket \
185 units/dev-hugepages.automount \
186 units/dev-hugepages.mount \
187 units/dev-mqueue.automount \
188 units/dev-mqueue.mount \
189 units/proc-sys-fs-binfmt_misc.automount \
190 units/proc-sys-fs-binfmt_misc.mount \
191 units/sys-kernel-debug.automount \
192 units/sys-kernel-debug.mount \
193 units/sys-kernel-security.automount \
194 units/sys-kernel-security.mount \
196 units/var-lock.mount \
197 units/var-run.mount \
198 units/hwclock-load.service \
199 units/hwclock-save.service \
200 units/sysctl.service \
201 units/remount-rootfs.service \
202 units/printer.target \
203 units/bluetooth.target \
204 units/smartcard.target \
205 units/tmpwatch.service \
206 units/tmpwatch.timer \
207 units/systemd-readahead-done.timer
209 nodist_systemunit_DATA = \
210 units/sysinit.target \
211 units/getty@.service \
212 units/serial-getty@.service \
213 units/graphical.target \
214 units/remote-fs.target \
215 units/multi-user.target \
216 units/systemd-initctl.service \
217 units/systemd-logger.service \
218 units/systemd-shutdownd.service \
219 units/systemd-kmsg-syslogd.service \
220 units/systemd-modules-load.service \
221 units/systemd-vconsole-setup.service \
222 units/systemd-remount-api-vfs.service \
223 units/systemd-update-utmp-runlevel.service \
224 units/systemd-update-utmp-shutdown.service \
225 units/systemd-random-seed-save.service \
226 units/systemd-random-seed-load.service \
227 units/systemd-readahead-collect.service \
228 units/systemd-readahead-replay.service \
229 units/systemd-readahead-done.service \
230 units/systemd-tmpfiles.service \
231 units/systemd-user-sessions.service \
234 dist_sessionunit_DATA = \
235 units/session/default.target
237 nodist_sessionunit_DATA = \
238 units/session/remote-fs.target \
239 units/session/exit.service
242 units/sysinit.target.m4 \
243 units/getty@.service.m4 \
244 units/serial-getty@.service.m4 \
245 units/graphical.target.m4 \
246 units/multi-user.target.m4 \
247 units/remote-fs.target.m4 \
248 units/systemd-initctl.service.in \
249 units/systemd-logger.service.in \
250 units/systemd-shutdownd.service.in \
251 units/systemd-kmsg-syslogd.service.in \
252 units/systemd-modules-load.service.in \
253 units/systemd-vconsole-setup.service.in \
254 units/systemd-remount-api-vfs.service.in \
255 units/systemd-update-utmp-runlevel.service.in \
256 units/systemd-update-utmp-shutdown.service.in \
257 units/systemd-random-seed-save.service.in \
258 units/systemd-random-seed-load.service.in \
259 units/systemd-readahead-collect.service.in \
260 units/systemd-readahead-replay.service.in \
261 units/systemd-readahead-done.service.in \
262 units/systemd-tmpfiles.service.in \
263 units/systemd-user-sessions.service.in \
264 units/syslog.target.in \
265 units/session/exit.service.in \
269 dist_systemunit_DATA += \
270 units/fedora/halt.service \
271 units/fedora/killall.service \
272 units/fedora/poweroff.service \
273 units/fedora/prefdm.service \
274 units/fedora/rc-local.service \
275 units/fedora/reboot.service \
276 units/fedora/sysinit.service \
277 units/fedora/single.service \
278 units/fedora/plymouth-quit.service \
279 units/fedora/plymouth-reboot.service \
280 units/fedora/plymouth-poweroff.service \
281 units/fedora/plymouth-halt.service
285 dist_systemunit_DATA += \
286 units/debian/halt.service \
287 units/debian/killall.service \
288 units/debian/poweroff.service \
289 units/debian/reboot.service \
290 units/debian/fsck.target \
291 units/debian/umountfs.service \
292 units/debian/umountnfs.service \
293 units/debian/umountroot.service
297 dist_systemunit_DATA += \
298 units/suse/halt.service \
299 units/suse/poweroff.service \
300 units/suse/reboot.service \
301 units/suse/fsck.target
305 dist_systemunit_DATA += \
306 units/gentoo/halt.service \
307 units/gentoo/killall.service \
308 units/gentoo/poweroff.service \
309 units/gentoo/reboot.service \
310 units/gentoo/xdm.service
314 dist_systemunit_DATA += \
315 units/arch/sysinit.service \
316 units/arch/rc-local.service \
317 units/arch/halt.service \
318 units/arch/poweroff.service \
319 units/arch/reboot.service
331 pkgconfigdata_DATA = \
334 dist_polkitpolicy_DATA = \
335 src/org.freedesktop.systemd1.policy
337 noinst_LTLIBRARIES = \
338 libsystemd-basic.la \
341 libsystemd_basic_la_SOURCES = \
352 libsystemd_basic_la_CFLAGS = \
356 libsystemd_basic_la_LIBADD = \
359 libsystemd_core_la_SOURCES = \
364 src/load-fragment.c \
388 src/dbus-automount.c \
390 src/dbus-snapshot.c \
396 src/hostname-setup.c \
397 src/loopback-setup.c \
407 libsystemd_core_la_CFLAGS = \
415 libsystemd_core_la_LIBADD = \
416 libsystemd-basic.la \
423 # This is needed because automake is buggy in how it generates the
424 # rules for C programs, but not Vala programs. We therefore can't
425 # list the .h files as dependencies if we want make dist to work.
428 ${libsystemd_basic_la_SOURCES:.c=.h} \
429 ${libsystemd_core_la_SOURCES:.c=.h} \
435 src/linux/auto_dev-ioctl.h \
436 src/linux/fanotify.h \
446 src/readahead-common.h
453 man/systemd-notify.1 \
457 man/sd_listen_fds.3 \
460 man/systemd.service.5 \
461 man/systemd.socket.5 \
462 man/systemd.mount.5 \
463 man/systemd.automount.5 \
465 man/systemd.timer.5 \
467 man/systemd.target.5 \
468 man/systemd.device.5 \
469 man/systemd.snapshot.5 \
485 man/sd_is_socket_unix.3 \
486 man/sd_is_socket_inet.3 \
490 man/reboot.8: man/halt.8
491 man/poweroff.8: man/halt.8
492 man/sd_is_socket.3: man/sd_is_fifo.3
493 man/sd_is_socket_unix.3: man/sd_is_fifo.3
494 man/sd_is_socket_inet.3: man/sd_is_fifo.3
495 man/sd_notifyf.3: man/sd_notify.3
496 man/init.1: man/systemd.1
503 man/systemd.special.7
506 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
509 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
512 ${XML_FILES:.xml=.html}
514 nodist_noinst_DATA = \
515 ${XML_IN_FILES:.xml.in=.html}
520 ${nodist_man_MANS:=.in} \
521 ${XML_IN_FILES:.xml.in=.html.in}
534 test_engine_SOURCES = \
537 test_engine_CFLAGS = $(systemd_CFLAGS)
538 test_engine_LDADD = $(systemd_LDADD)
540 test_job_type_SOURCES = \
543 test_job_type_CFLAGS = $(systemd_CFLAGS)
544 test_job_type_LDADD = $(systemd_LDADD)
549 test_ns_CFLAGS = $(systemd_CFLAGS)
550 test_ns_LDADD = $(systemd_LDADD)
552 test_loopback_SOURCES = \
553 src/test-loopback.c \
556 test_loopback_LDADD = \
559 test_hostname_SOURCES = \
560 src/test-hostname.c \
563 test_hostname_LDADD = \
566 test_daemon_SOURCES = \
570 test_daemon_LDADD = \
573 test_cgroup_SOURCES = \
577 test_cgroup_CFLAGS = \
580 test_cgroup_LDADD = \
583 test_env_replace_SOURCES = \
584 src/test-env-replace.c
586 test_env_replace_CFLAGS = \
589 test_env_replace_LDADD = \
592 systemd_logger_SOURCES = \
597 systemd_logger_LDADD = \
598 libsystemd-basic.la \
601 systemd_initctl_SOURCES = \
606 systemd_initctl_CFLAGS = \
610 systemd_initctl_LDADD = \
611 libsystemd-basic.la \
614 systemd_update_utmp_SOURCES = \
619 systemd_update_utmp_CFLAGS = \
624 systemd_update_utmp_LDADD = \
625 libsystemd-basic.la \
629 systemd_random_seed_SOURCES = \
632 systemd_random_seed_CFLAGS = \
635 systemd_random_seed_LDADD = \
638 systemd_shutdownd_SOURCES = \
643 systemd_shutdownd_CFLAGS = \
646 systemd_shutdownd_LDADD = \
649 systemd_shutdown_SOURCES = \
655 systemd_shutdown_CFLAGS = \
659 systemd_shutdown_LDADD = \
660 libsystemd-basic.la \
663 systemd_modules_load_SOURCES = \
666 systemd_modules_load_CFLAGS = \
669 systemd_tmpfiles_LDADD = \
672 systemd_tmpfiles_SOURCES = \
675 systemd_tmpfiles_CFLAGS = \
678 systemd_user_sessions_LDADD = \
681 systemd_user_sessions_SOURCES = \
682 src/user-sessions.c \
685 systemd_user_sessions_CFLAGS = \
688 systemd_modules_load_LDADD = \
691 systemd_vconsole_setup_SOURCES = \
694 systemd_vconsole_setup_CFLAGS = \
697 systemd_vconsole_setup_LDADD = \
700 systemd_remount_api_vfs_SOURCES = \
701 src/remount-api-vfs.c \
704 systemd_remount_api_vfs_CFLAGS = \
707 systemd_remount_api_vfs_LDADD = \
710 systemd_cgroups_agent_SOURCES = \
711 src/cgroups-agent.c \
714 systemd_cgroups_agent_CFLAGS = \
718 systemd_cgroups_agent_LDADD = \
719 libsystemd-basic.la \
722 systemd_kmsg_syslogd_SOURCES = \
727 systemd_kmsg_syslogd_CFLAGS = \
730 systemd_kmsg_syslogd_LDADD = \
733 systemctl_SOURCES = \
749 libsystemd-basic.la \
752 systemd_notify_SOURCES = \
757 systemd_notify_LDADD = \
760 systemd_ask_password_SOURCES = \
763 systemd_ask_password_LDADD = \
766 systemd_reply_password_SOURCES = \
769 systemd_reply_password_LDADD = \
772 systemd_readahead_collect_SOURCES = \
773 src/readahead-collect.c \
775 src/readahead-common.c
777 systemd_readahead_collect_CFLAGS = \
780 systemd_readahead_collect_LDADD = \
781 libsystemd-basic.la \
784 systemd_readahead_replay_SOURCES = \
785 src/readahead-replay.c \
787 src/readahead-common.c
789 systemd_readahead_replay_CFLAGS = \
792 systemd_readahead_replay_LDADD = \
793 libsystemd-basic.la \
796 systemd_cgls_SOURCES = \
801 systemd_cgls_CFLAGS = \
804 systemd_cgls_LDADD = \
807 systemadm_SOURCES = \
809 src/systemd-interfaces.vala
815 -Wno-unused-variable \
816 -Wno-unused-function \
818 -Wno-format-nonliteral
820 systemadm_VALAFLAGS = \
830 systemd_ask_password_agent_SOURCES = \
831 src/ask-password-agent.vala
833 systemd_ask_password_agent_CFLAGS = \
837 -Wno-unused-variable \
838 -Wno-unused-function \
840 -Wno-format-nonliteral
842 systemd_ask_password_agent_VALAFLAGS = \
851 systemd_ask_password_agent_LDADD = \
855 pam_systemd_la_SOURCES = \
860 pam_systemd_la_CFLAGS = \
864 pam_systemd_la_LDFLAGS = \
869 -export-symbols-regex '^pam_sm_.*'
871 pam_systemd_la_LIBADD = \
872 libsystemd-basic.la \
876 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
877 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
878 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
879 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
880 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
881 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
882 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
883 -e 's,@systemunitdir\@,$(systemunitdir),g' \
884 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
885 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
886 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
887 -e 's,@prefix\@,$(prefix),g' \
890 units/%: units/%.in Makefile
893 man/%: man/%.in Makefile
896 %.pc: %.pc.in Makefile
899 M4_PROCESS_SYSTEM = \
900 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
901 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
903 M4_PROCESS_SESSION = \
904 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
905 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
907 units/%: units/%.m4 Makefile
910 units/session/%: units/%.m4 Makefile
911 $(M4_PROCESS_SESSION)
914 $(nodist_systemunit_DATA) \
915 $(nodist_sessionunit_DATA) \
917 ${XML_IN_FILES:.xml.in=.html} \
918 $(pkgconfigdata_DATA)
922 ${systemadm_SOURCES:.vala=.c}
928 --param funcsynopsis.style "'ansi'"
930 XSLTPROC_PROCESS_MAN = \
931 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
932 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
934 XSLTPROC_PROCESS_MAN_IN = \
935 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
936 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
939 XSLTPROC_PROCESS_HTML = \
940 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
941 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
943 XSLTPROC_PROCESS_HTML_IN = \
944 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
945 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
949 $(XSLTPROC_PROCESS_MAN)
951 man/%.1.in: man/%.xml.in
952 $(XSLTPROC_PROCESS_MAN)
955 $(XSLTPROC_PROCESS_MAN)
957 man/%.3.in: man/%.xml.in
958 $(XSLTPROC_PROCESS_MAN)
961 $(XSLTPROC_PROCESS_MAN)
963 man/%.5.in: man/%.xml.in
964 $(XSLTPROC_PROCESS_MAN)
967 $(XSLTPROC_PROCESS_MAN)
969 man/%.7.in: man/%.xml.in
970 $(XSLTPROC_PROCESS_MAN_IN)
973 $(XSLTPROC_PROCESS_MAN)
975 man/%.8.in: man/%.xml.in
976 $(XSLTPROC_PROCESS_MAN_IN)
978 man/%.html: man/%.xml
979 $(XSLTPROC_PROCESS_HTML)
981 man/%.html.in: man/%.xml.in
982 $(XSLTPROC_PROCESS_HTML_IN)
986 ${nodist_man_MANS:=.in} \
987 ${XML_FILES:.xml=.html} \
988 ${XML_IN_FILES:.xml.in=.html.in}
991 org.freedesktop.systemd1.%.xml: systemd
992 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
995 $(dbusinterface_DATA)
999 $(DESTDIR)$(systemunitdir) \
1000 $(DESTDIR)$(sessionunitdir) \
1001 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1002 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1003 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1004 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1005 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1006 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1007 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1008 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1009 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1010 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1011 $(DESTDIR)$(pkgsysconfdir)/system \
1012 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1013 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1014 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1015 $(DESTDIR)$(pkgsysconfdir)/session \
1016 $(DESTDIR)$(sysconfdir)/xdg/systemd
1017 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1019 $(LN_S) $(pkgsysconfdir)/session session )
1020 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1021 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
1022 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1023 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1024 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
1025 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1026 rm -f systemd-update-utmp-runlevel.service && \
1027 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1028 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1029 rm -f systemd-update-utmp-runlevel.service && \
1030 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1031 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1032 rm -f systemd-update-utmp-runlevel.service && \
1033 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1034 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1035 rm -f systemd-update-utmp-runlevel.service && \
1036 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1037 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1038 rm -f systemd-update-utmp-runlevel.service && \
1039 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1040 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1041 rm -f systemd-update-utmp-shutdown.service \
1042 hwclock-save.service \
1043 systemd-random-seed-save.service && \
1044 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1045 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1046 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1047 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1048 rm -f systemd-remount-api-vfs.service \
1049 remount-rootfs.service \
1052 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1053 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1054 $(LN_S) ../var-run.mount var-run.mount && \
1055 $(LN_S) ../var-lock.mount var-lock.mount )
1056 ( cd $(DESTDIR)$(sessionunitdir) && \
1057 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1058 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1059 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1060 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1061 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1062 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1063 $(LN_S) $(systemunitdir)/printer.target printer.target)
1064 ( cd $(DESTDIR)$(systemunitdir) && \
1065 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1066 $(LN_S) poweroff.target runlevel0.target && \
1067 $(LN_S) rescue.target runlevel1.target && \
1068 $(LN_S) multi-user.target runlevel2.target && \
1069 $(LN_S) multi-user.target runlevel3.target && \
1070 $(LN_S) multi-user.target runlevel4.target && \
1071 $(LN_S) graphical.target runlevel5.target && \
1072 $(LN_S) reboot.target runlevel6.target )
1073 ( cd $(DESTDIR)$(systemunitdir) && \
1074 rm -f default.target ctrl-alt-del.target && \
1075 $(LN_S) graphical.target default.target && \
1076 $(LN_S) reboot.target ctrl-alt-del.target )
1077 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1078 rm -f getty.target systemd-user-sessions.service && \
1079 $(LN_S) ../getty.target getty.target && \
1080 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1081 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1082 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1083 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1084 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1085 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1086 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1087 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1088 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1089 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1090 rm -f remote-fs.target && \
1091 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1092 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1093 rm -f dev-hugepages.automount \
1094 dev-mqueue.automount \
1095 proc-sys-fs-binfmt_misc.automount \
1096 sys-kernel-debug.automount \
1097 sys-kernel-security.automount \
1098 systemd-vconsole-setup.service \
1099 systemd-modules-load.service \
1100 systemd-random-seed-load.service \
1101 systemd-tmpfiles.service \
1104 tmpwatch.service && \
1105 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1106 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1107 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1108 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1109 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1110 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1111 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1112 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1113 $(LN_S) ../systemd-tmpfiles.service systemd-tmpfiles.service && \
1114 $(LN_S) ../sysctl.service sysctl.service && \
1115 $(LN_S) ../tmpwatch.timer tmpwatch.timer && \
1116 $(LN_S) ../tmpwatch.service tmpwatch.service )
1117 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1118 rm -f org.freedesktop.systemd1.service && \
1119 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1121 $(MKDIR_P) -m 0755 \
1122 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1123 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1124 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1125 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1126 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1127 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1128 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1129 rm -f display-manager.service && \
1130 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1131 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1132 rm -f prefdm.service && \
1133 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1134 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1135 rm -f rc-local.service && \
1136 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1137 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1138 rm -f single.service && \
1139 $(LN_S) $(systemunitdir)/single.service single.service )
1140 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1141 rm -f plymouth-quit.service && \
1142 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1143 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1144 rm -f plymouth-reboot.service && \
1145 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1146 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1147 rm -f plymouth-poweroff.service && \
1148 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1149 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1150 rm -f plymouth-halt.service && \
1151 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1152 ( cd $(DESTDIR)$(systemunitdir) && \
1153 rm -f local.service && \
1154 $(LN_S) rc-local.service local.service )
1155 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1156 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1159 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1160 rm -f display-manager.service && \
1161 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1162 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1163 rm -f xdm.service && \
1164 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1167 $(MKDIR_P) -m 0755 \
1168 $(DESTDIR)$(systemunitdir)/umount.target.wants
1169 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1170 rm -f umountfs.service umountnfs.service umountroot.service && \
1171 $(LN_S) ../umountfs.service umountfs.service && \
1172 $(LN_S) ../umountnfs.service umountnfs.service && \
1173 $(LN_S) ../umountroot.service umountroot.service )
1174 ( cd $(DESTDIR)$(systemunitdir) && \
1175 rm -f runlevel5.target && \
1176 $(LN_S) multi-user.target runlevel5.target )
1180 ( cd $(DESTDIR)$(systemunitdir) && \
1181 rm -f fsck.target && \
1182 $(LN_S) sysinit.target fsck.target )
1186 DISTCHECK_CONFIGURE_FLAGS = \
1187 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1188 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1189 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1190 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1191 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1192 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1193 --with-rootdir=$$dc_install_base/$(rootdir)
1195 upload: all distcheck
1196 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1197 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1198 scp man/*.html tango:public/systemd-man/
1201 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1203 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1205 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1206 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount