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
34 # And these are the special ones for /
36 rootbindir=$(rootdir)/bin
37 rootlibexecdir=$(rootdir)/lib/systemd
38 systemunitdir=$(rootdir)/lib/systemd/system
41 -include $(top_builddir)/config.h \
42 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
43 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
44 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
45 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
46 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
47 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
48 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
49 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
50 -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
51 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
52 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
53 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
54 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
59 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
60 -DKBD_SETFONT=\"/usr/bin/setfont\" \
61 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
64 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
65 -DKBD_SETFONT=\"/bin/setfont\" \
66 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
81 systemd-ask-password-agent
84 rootlibexec_PROGRAMS = \
86 systemd-cgroups-agent \
91 systemd-modules-load \
92 systemd-remount-api-vfs \
93 systemd-kmsg-syslogd \
94 systemd-vconsole-setup \
95 systemd-reply-password \
96 systemd-readahead-collect \
97 systemd-readahead-replay \
111 pamlib_LTLIBRARIES = \
115 dist_pkgsysconf_DATA = \
118 dist_dbuspolicy_DATA = \
119 src/org.freedesktop.systemd1.conf
121 dist_dbussystemservice_DATA = \
122 src/org.freedesktop.systemd1.service
124 dist_udevrules_DATA = \
127 dbusinterface_DATA = \
128 org.freedesktop.systemd1.Manager.xml \
129 org.freedesktop.systemd1.Job.xml \
130 org.freedesktop.systemd1.Unit.xml \
131 org.freedesktop.systemd1.Service.xml \
132 org.freedesktop.systemd1.Socket.xml \
133 org.freedesktop.systemd1.Timer.xml \
134 org.freedesktop.systemd1.Target.xml \
135 org.freedesktop.systemd1.Device.xml \
136 org.freedesktop.systemd1.Mount.xml \
137 org.freedesktop.systemd1.Automount.xml \
138 org.freedesktop.systemd1.Snapshot.xml \
139 org.freedesktop.systemd1.Swap.xml \
140 org.freedesktop.systemd1.Path.xml
142 dist_systemunit_DATA = \
143 units/emergency.service \
144 units/emergency.target \
148 units/local-fs.target \
149 units/network.target \
150 units/nss-lookup.target \
151 units/mail-transfer-agent.target \
152 units/http-daemon.target \
153 units/poweroff.target \
154 units/reboot.target \
155 units/rescue.target \
156 units/rpcbind.target \
157 units/rtc-set.target \
158 units/shutdown.target \
159 units/umount.target \
160 units/sigpwr.target \
161 units/sockets.target \
164 units/systemd-initctl.socket \
165 units/systemd-logger.socket \
166 units/systemd-shutdownd.socket \
167 units/systemd-kmsg-syslogd.socket \
168 units/dev-hugepages.automount \
169 units/dev-hugepages.mount \
170 units/dev-mqueue.automount \
171 units/dev-mqueue.mount \
172 units/proc-sys-fs-binfmt_misc.automount \
173 units/proc-sys-fs-binfmt_misc.mount \
174 units/sys-kernel-debug.automount \
175 units/sys-kernel-debug.mount \
176 units/sys-kernel-security.automount \
177 units/sys-kernel-security.mount \
180 units/var-lock.mount \
181 units/var-lock.service \
182 units/var-run.mount \
183 units/var-run.service \
184 units/hwclock-load.service \
185 units/hwclock-save.service \
186 units/sysctl.service \
187 units/remount-rootfs.service \
188 units/printer.target \
189 units/bluetooth.target \
190 units/smartcard.target \
191 units/tmpwatch.service \
194 nodist_systemunit_DATA = \
195 units/sysinit.target \
196 units/getty@.service \
197 units/serial-getty@.service \
198 units/graphical.target \
199 units/remote-fs.target \
200 units/multi-user.target \
201 units/systemd-initctl.service \
202 units/systemd-logger.service \
203 units/systemd-shutdownd.service \
204 units/systemd-kmsg-syslogd.service \
205 units/systemd-modules-load.service \
206 units/systemd-vconsole-setup.service \
207 units/systemd-remount-api-vfs.service \
208 units/systemd-update-utmp-runlevel.service \
209 units/systemd-update-utmp-shutdown.service \
210 units/systemd-random-seed-save.service \
211 units/systemd-random-seed-load.service \
214 dist_sessionunit_DATA = \
215 units/session/default.target
217 nodist_sessionunit_DATA = \
218 units/session/remote-fs.target \
219 units/session/exit.service
222 units/sysinit.target.m4 \
223 units/getty@.service.m4 \
224 units/serial-getty@.service.m4 \
225 units/graphical.target.m4 \
226 units/multi-user.target.m4 \
227 units/remote-fs.target.m4 \
228 units/systemd-initctl.service.in \
229 units/systemd-logger.service.in \
230 units/systemd-shutdownd.service.in \
231 units/systemd-kmsg-syslogd.service.in \
232 units/systemd-modules-load.service.in \
233 units/systemd-vconsole-setup.service.in \
234 units/systemd-remount-api-vfs.service.in \
235 units/systemd-update-utmp-runlevel.service.in \
236 units/systemd-update-utmp-shutdown.service.in \
237 units/systemd-random-seed-save.service.in \
238 units/systemd-random-seed-load.service.in \
239 units/syslog.target.in \
240 units/session/exit.service.in \
244 dist_systemunit_DATA += \
245 units/fedora/halt.service \
246 units/fedora/killall.service \
247 units/fedora/poweroff.service \
248 units/fedora/prefdm.service \
249 units/fedora/rc-local.service \
250 units/fedora/reboot.service \
251 units/fedora/sysinit.service \
252 units/fedora/single.service \
253 units/fedora/plymouth-quit.service \
254 units/fedora/plymouth-reboot.service \
255 units/fedora/plymouth-poweroff.service \
256 units/fedora/plymouth-halt.service
260 dist_systemunit_DATA += \
261 units/debian/halt.service \
262 units/debian/killall.service \
263 units/debian/poweroff.service \
264 units/debian/reboot.service \
265 units/debian/fsck.target \
266 units/debian/umountfs.service \
267 units/debian/umountnfs.service \
268 units/debian/umountroot.service
272 dist_systemunit_DATA += \
273 units/suse/halt.service \
274 units/suse/poweroff.service \
275 units/suse/reboot.service \
276 units/suse/fsck.target
280 dist_systemunit_DATA += \
281 units/gentoo/halt.service \
282 units/gentoo/killall.service \
283 units/gentoo/poweroff.service \
284 units/gentoo/reboot.service \
285 units/gentoo/xdm.service
289 dist_systemunit_DATA += \
290 units/arch/sysinit.service \
291 units/arch/rc-local.service \
292 units/arch/halt.service \
293 units/arch/poweroff.service \
294 units/arch/reboot.service
304 pkgconfigdata_DATA = \
307 dist_polkitpolicy_DATA = \
308 src/org.freedesktop.systemd1.policy
310 noinst_LTLIBRARIES = \
311 libsystemd-basic.la \
314 libsystemd_basic_la_SOURCES = \
325 libsystemd_basic_la_CFLAGS = \
329 libsystemd_basic_la_LIBADD = \
332 libsystemd_core_la_SOURCES = \
337 src/load-fragment.c \
360 src/dbus-automount.c \
362 src/dbus-snapshot.c \
368 src/hostname-setup.c \
369 src/loopback-setup.c \
379 libsystemd_core_la_CFLAGS = \
387 libsystemd_core_la_LIBADD = \
388 libsystemd-basic.la \
395 # This is needed because automake is buggy in how it generates the
396 # rules for C programs, but not Vala programs. We therefore can't
397 # list the .h files as dependencies if we want make dist to work.
400 ${libsystemd_basic_la_SOURCES:.c=.h} \
401 ${libsystemd_core_la_SOURCES:.c=.h} \
407 src/linux/auto_dev-ioctl.h \
423 man/systemd-notify.1 \
427 man/sd_listen_fds.3 \
430 man/systemd.service.5 \
431 man/systemd.socket.5 \
432 man/systemd.mount.5 \
433 man/systemd.automount.5 \
435 man/systemd.timer.5 \
437 man/systemd.target.5 \
438 man/systemd.device.5 \
439 man/systemd.snapshot.5 \
454 man/sd_is_socket_unix.3 \
455 man/sd_is_socket_inet.3 \
459 man/reboot.8: man/halt.8
460 man/poweroff.8: man/halt.8
461 man/sd_is_socket.3: man/sd_is_fifo.3
462 man/sd_is_socket_unix.3: man/sd_is_fifo.3
463 man/sd_is_socket_inet.3: man/sd_is_fifo.3
464 man/sd_notifyf.3: man/sd_notify.3
465 man/init.1: man/systemd.1
472 man/systemd.special.7
475 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
478 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
481 ${XML_FILES:.xml=.html}
483 nodist_noinst_DATA = \
484 ${XML_IN_FILES:.xml.in=.html}
489 ${nodist_man_MANS:=.in} \
490 ${XML_IN_FILES:.xml.in=.html.in}
503 test_engine_SOURCES = \
506 test_engine_CFLAGS = $(systemd_CFLAGS)
507 test_engine_LDADD = $(systemd_LDADD)
509 test_job_type_SOURCES = \
512 test_job_type_CFLAGS = $(systemd_CFLAGS)
513 test_job_type_LDADD = $(systemd_LDADD)
518 test_ns_CFLAGS = $(systemd_CFLAGS)
519 test_ns_LDADD = $(systemd_LDADD)
521 test_loopback_SOURCES = \
522 src/test-loopback.c \
525 test_loopback_LDADD = \
528 test_hostname_SOURCES = \
529 src/test-hostname.c \
532 test_hostname_LDADD = \
535 test_daemon_SOURCES = \
539 test_daemon_LDADD = \
542 test_cgroup_SOURCES = \
546 test_cgroup_CFLAGS = \
549 test_cgroup_LDADD = \
552 test_env_replace_SOURCES = \
553 src/test-env-replace.c
555 test_env_replace_CFLAGS = \
558 test_env_replace_LDADD = \
561 systemd_logger_SOURCES = \
566 systemd_logger_LDADD = \
567 libsystemd-basic.la \
570 systemd_initctl_SOURCES = \
575 systemd_initctl_CFLAGS = \
579 systemd_initctl_LDADD = \
580 libsystemd-basic.la \
583 systemd_update_utmp_SOURCES = \
588 systemd_update_utmp_CFLAGS = \
593 systemd_update_utmp_LDADD = \
594 libsystemd-basic.la \
598 systemd_random_seed_SOURCES = \
601 systemd_random_seed_CFLAGS = \
604 systemd_random_seed_LDADD = \
607 systemd_shutdownd_SOURCES = \
612 systemd_shutdownd_CFLAGS = \
615 systemd_shutdownd_LDADD = \
618 systemd_modules_load_SOURCES = \
621 systemd_modules_load_CFLAGS = \
624 systemd_tempfiles_LDADD = \
627 systemd_tempfiles_SOURCES = \
630 systemd_tempfiles_CFLAGS = \
633 systemd_modules_load_LDADD = \
636 systemd_vconsole_setup_SOURCES = \
639 systemd_vconsole_setup_CFLAGS = \
642 systemd_vconsole_setup_LDADD = \
645 systemd_remount_api_vfs_SOURCES = \
646 src/remount-api-vfs.c \
649 systemd_remount_api_vfs_CFLAGS = \
652 systemd_remount_api_vfs_LDADD = \
655 systemd_cgroups_agent_SOURCES = \
656 src/cgroups-agent.c \
659 systemd_cgroups_agent_CFLAGS = \
663 systemd_cgroups_agent_LDADD = \
664 libsystemd-basic.la \
667 systemd_kmsg_syslogd_SOURCES = \
672 systemd_kmsg_syslogd_CFLAGS = \
675 systemd_kmsg_syslogd_LDADD = \
678 systemctl_SOURCES = \
693 libsystemd-basic.la \
696 systemd_notify_SOURCES = \
700 systemd_notify_LDADD = \
703 systemd_ask_password_SOURCES = \
706 systemd_ask_password_LDADD = \
709 systemd_reply_password_SOURCES = \
712 systemd_reply_password_LDADD = \
715 systemd_readahead_collect_SOURCES = \
716 src/readahead-collect.c \
718 src/readahead-common.c
720 systemd_readahead_collect_CFLAGS = \
723 systemd_readahead_collect_LDADD = \
724 libsystemd-basic.la \
727 systemd_readahead_replay_SOURCES = \
728 src/readahead-replay.c \
730 src/readahead-common.c
732 systemd_readahead_replay_CFLAGS = \
735 systemd_readahead_replay_LDADD = \
736 libsystemd-basic.la \
739 systemd_cgls_SOURCES = \
744 systemd_cgls_CFLAGS = \
747 systemd_cgls_LDADD = \
750 systemadm_SOURCES = \
752 src/systemd-interfaces.vala
758 -Wno-unused-variable \
759 -Wno-unused-function \
761 -Wno-format-nonliteral
763 systemadm_VALAFLAGS = \
773 systemd_ask_password_agent_SOURCES = \
774 src/ask-password-agent.vala
776 systemd_ask_password_agent_CFLAGS = \
780 -Wno-unused-variable \
781 -Wno-unused-function \
783 -Wno-format-nonliteral
785 systemd_ask_password_agent_VALAFLAGS = \
794 systemd_ask_password_agent_LDADD = \
798 pam_systemd_la_SOURCES = \
803 pam_systemd_la_CFLAGS = \
807 pam_systemd_la_LDFLAGS = \
812 -export-symbols-regex '^pam_sm_.*'
814 pam_systemd_la_LIBADD = \
815 libsystemd-basic.la \
819 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
820 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
821 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
822 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
823 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
824 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
825 -e 's,@systemunitdir\@,$(systemunitdir),g' \
826 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
827 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
828 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
829 -e 's,@prefix\@,$(prefix),g' \
832 units/%: units/%.in Makefile
835 man/%: man/%.in Makefile
838 %.pc: %.pc.in Makefile
841 M4_PROCESS_SYSTEM = \
842 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
843 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
845 M4_PROCESS_SESSION = \
846 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
847 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
849 units/%: units/%.m4 Makefile
852 units/session/%: units/%.m4 Makefile
853 $(M4_PROCESS_SESSION)
856 $(nodist_systemunit_DATA) \
857 $(nodist_sessionunit_DATA) \
859 ${XML_IN_FILES:.xml.in=.html} \
860 $(pkgconfigdata_DATA)
864 ${systemadm_SOURCES:.vala=.c}
870 --param funcsynopsis.style "'ansi'"
872 XSLTPROC_PROCESS_MAN = \
873 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
874 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
876 XSLTPROC_PROCESS_MAN_IN = \
877 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
878 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
881 XSLTPROC_PROCESS_HTML = \
882 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
883 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
885 XSLTPROC_PROCESS_HTML_IN = \
886 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
887 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
891 $(XSLTPROC_PROCESS_MAN)
893 man/%.1.in: man/%.xml.in
894 $(XSLTPROC_PROCESS_MAN)
897 $(XSLTPROC_PROCESS_MAN)
899 man/%.3.in: man/%.xml.in
900 $(XSLTPROC_PROCESS_MAN)
903 $(XSLTPROC_PROCESS_MAN)
905 man/%.5.in: man/%.xml.in
906 $(XSLTPROC_PROCESS_MAN)
909 $(XSLTPROC_PROCESS_MAN)
911 man/%.7.in: man/%.xml.in
912 $(XSLTPROC_PROCESS_MAN_IN)
915 $(XSLTPROC_PROCESS_MAN)
917 man/%.8.in: man/%.xml.in
918 $(XSLTPROC_PROCESS_MAN_IN)
920 man/%.html: man/%.xml
921 $(XSLTPROC_PROCESS_HTML)
923 man/%.html.in: man/%.xml.in
924 $(XSLTPROC_PROCESS_HTML_IN)
928 ${nodist_man_MANS:=.in} \
929 ${XML_FILES:.xml=.html} \
930 ${XML_IN_FILES:.xml.in=.html.in}
933 org.freedesktop.systemd1.%.xml: systemd
934 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
937 $(dbusinterface_DATA)
941 $(DESTDIR)$(systemunitdir) \
942 $(DESTDIR)$(sessionunitdir) \
943 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
944 $(DESTDIR)$(systemunitdir)/basic.target.wants \
945 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
946 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
947 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
948 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
949 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
950 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
951 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
952 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
953 $(DESTDIR)$(pkgsysconfdir)/system \
954 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
955 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
956 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
957 $(DESTDIR)$(pkgsysconfdir)/session \
958 $(DESTDIR)$(sysconfdir)/xdg/systemd
959 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
961 $(LN_S) $(pkgsysconfdir)/session session )
962 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
963 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
964 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
965 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
966 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
967 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
968 rm -f systemd-update-utmp-runlevel.service && \
969 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
970 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
971 rm -f systemd-update-utmp-runlevel.service && \
972 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
973 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
974 rm -f systemd-update-utmp-runlevel.service && \
975 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
976 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
977 rm -f systemd-update-utmp-runlevel.service && \
978 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
979 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
980 rm -f systemd-update-utmp-runlevel.service && \
981 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
982 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
983 rm -f systemd-update-utmp-shutdown.service \
984 hwclock-save.service \
985 systemd-random-seed-save.service && \
986 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
987 $(LN_S) ../hwclock-save.service hwclock-save.service && \
988 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
989 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
990 rm -f systemd-remount-api-vfs.service \
991 remount-rootfs.service \
995 var-lock.service && \
996 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
997 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
998 $(LN_S) ../var-run.mount var-run.mount && \
999 $(LN_S) ../var-run.service var-run.service && \
1000 $(LN_S) ../var-lock.mount var-lock.mount && \
1001 $(LN_S) ../var-lock.service var-lock.service )
1002 ( cd $(DESTDIR)$(sessionunitdir) && \
1003 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1004 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1005 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1006 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1007 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1008 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1009 $(LN_S) $(systemunitdir)/printer.target printer.target)
1010 ( cd $(DESTDIR)$(systemunitdir) && \
1011 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1012 $(LN_S) poweroff.target runlevel0.target && \
1013 $(LN_S) rescue.target runlevel1.target && \
1014 $(LN_S) multi-user.target runlevel2.target && \
1015 $(LN_S) multi-user.target runlevel3.target && \
1016 $(LN_S) multi-user.target runlevel4.target && \
1017 $(LN_S) graphical.target runlevel5.target && \
1018 $(LN_S) reboot.target runlevel6.target )
1019 ( cd $(DESTDIR)$(systemunitdir) && \
1020 rm -f default.target ctrl-alt-del.target && \
1021 $(LN_S) graphical.target default.target && \
1022 $(LN_S) reboot.target ctrl-alt-del.target )
1023 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1024 rm -f getty.target && \
1025 $(LN_S) ../getty.target getty.target )
1026 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1027 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1028 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1029 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1030 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1031 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1032 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1033 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1034 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1035 rm -f remote-fs.target && \
1036 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1037 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1038 rm -f dev-hugepages.automount \
1039 dev-mqueue.automount \
1040 proc-sys-fs-binfmt_misc.automount \
1041 sys-kernel-debug.automount \
1042 sys-kernel-security.automount \
1043 systemd-vconsole-setup.service \
1044 systemd-modules-load.service \
1045 systemd-random-seed-load.service \
1048 tmpwatch.service && \
1049 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1050 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1051 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1052 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1053 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1054 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1055 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1056 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1057 $(LN_S) ../sysctl.service sysctl.service && \
1058 $(LN_S) ../tmpwatch.timer tmpwatch.timer && \
1059 $(LN_S) ../tmpwatch.service tmpwatch.service )
1060 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1061 rm -f org.freedesktop.systemd1.service && \
1062 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1064 $(MKDIR_P) -m 0755 \
1065 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1066 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1067 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1068 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1069 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1070 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1071 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1072 rm -f display-manager.service && \
1073 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1074 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1075 rm -f prefdm.service && \
1076 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1077 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1078 rm -f rc-local.service && \
1079 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1080 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1081 rm -f single.service && \
1082 $(LN_S) $(systemunitdir)/single.service single.service )
1083 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1084 rm -f plymouth-quit.service && \
1085 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1086 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1087 rm -f plymouth-reboot.service && \
1088 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1089 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1090 rm -f plymouth-poweroff.service && \
1091 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1092 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1093 rm -f plymouth-halt.service && \
1094 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1095 ( cd $(DESTDIR)$(systemunitdir) && \
1096 rm -f local.service && \
1097 $(LN_S) rc-local.service local.service )
1098 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1099 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1102 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1103 rm -f display-manager.service && \
1104 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1105 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1106 rm -f xdm.service && \
1107 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1110 $(MKDIR_P) -m 0755 \
1111 $(DESTDIR)$(systemunitdir)/umount.target.wants
1112 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1113 rm -f umountfs.service umountnfs.service umountroot.service && \
1114 $(LN_S) ../umountfs.service umountfs.service && \
1115 $(LN_S) ../umountnfs.service umountnfs.service && \
1116 $(LN_S) ../umountroot.service umountroot.service )
1117 ( cd $(DESTDIR)$(systemunitdir) && \
1118 rm -f runlevel5.target && \
1119 $(LN_S) multi-user.target runlevel5.target )
1123 ( cd $(DESTDIR)$(systemunitdir) && \
1124 rm -f fsck.target && \
1125 $(LN_S) sysinit.target fsck.target )
1129 DISTCHECK_CONFIGURE_FLAGS = \
1130 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1131 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1132 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1133 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1134 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1135 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1136 --with-rootdir=$$dc_install_base/$(rootdir)
1138 upload: all distcheck
1139 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1140 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1141 scp man/*.html tango:public/systemd-man/
1144 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1146 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1148 rm /lib/systemd/system/local-fs.target.wants/var-run.service
1149 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1150 rm /lib/systemd/system/local-fs.target.wants/var-lock.service
1151 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount
1152 rm /lib/systemd/system/local-fs.target.wants/remount-rootfs.service