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 rootlibexecdir=$(rootdir)/lib/systemd
39 systemunitdir=$(rootdir)/lib/systemd/system
42 -include $(top_builddir)/config.h \
43 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
44 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
45 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
46 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
47 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
48 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
49 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
50 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
51 -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
52 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
53 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
54 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
55 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
60 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
61 -DKBD_SETFONT=\"/usr/bin/setfont\" \
62 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
65 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
66 -DKBD_SETFONT=\"/bin/setfont\" \
67 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
82 systemd-ask-password-agent
85 rootlibexec_PROGRAMS = \
87 systemd-cgroups-agent \
92 systemd-modules-load \
93 systemd-remount-api-vfs \
94 systemd-kmsg-syslogd \
95 systemd-vconsole-setup \
96 systemd-reply-password \
97 systemd-readahead-collect \
98 systemd-readahead-replay \
112 pamlib_LTLIBRARIES = \
116 dist_pkgsysconf_DATA = \
119 dist_dbuspolicy_DATA = \
120 src/org.freedesktop.systemd1.conf
122 dist_dbussystemservice_DATA = \
123 src/org.freedesktop.systemd1.service
125 dist_udevrules_DATA = \
128 dbusinterface_DATA = \
129 org.freedesktop.systemd1.Manager.xml \
130 org.freedesktop.systemd1.Job.xml \
131 org.freedesktop.systemd1.Unit.xml \
132 org.freedesktop.systemd1.Service.xml \
133 org.freedesktop.systemd1.Socket.xml \
134 org.freedesktop.systemd1.Timer.xml \
135 org.freedesktop.systemd1.Target.xml \
136 org.freedesktop.systemd1.Device.xml \
137 org.freedesktop.systemd1.Mount.xml \
138 org.freedesktop.systemd1.Automount.xml \
139 org.freedesktop.systemd1.Snapshot.xml \
140 org.freedesktop.systemd1.Swap.xml \
141 org.freedesktop.systemd1.Path.xml
143 dist_tmpfiles_DATA = \
144 tmpfiles.d/systemd.conf \
147 dist_systemunit_DATA = \
148 units/emergency.service \
149 units/emergency.target \
153 units/local-fs.target \
154 units/network.target \
155 units/nss-lookup.target \
156 units/mail-transfer-agent.target \
157 units/http-daemon.target \
158 units/poweroff.target \
159 units/reboot.target \
160 units/rescue.target \
161 units/rpcbind.target \
162 units/rtc-set.target \
163 units/shutdown.target \
164 units/umount.target \
165 units/sigpwr.target \
166 units/sockets.target \
169 units/systemd-initctl.socket \
170 units/systemd-logger.socket \
171 units/systemd-shutdownd.socket \
172 units/systemd-kmsg-syslogd.socket \
173 units/dev-hugepages.automount \
174 units/dev-hugepages.mount \
175 units/dev-mqueue.automount \
176 units/dev-mqueue.mount \
177 units/proc-sys-fs-binfmt_misc.automount \
178 units/proc-sys-fs-binfmt_misc.mount \
179 units/sys-kernel-debug.automount \
180 units/sys-kernel-debug.mount \
181 units/sys-kernel-security.automount \
182 units/sys-kernel-security.mount \
184 units/var-lock.mount \
185 units/var-run.mount \
186 units/hwclock-load.service \
187 units/hwclock-save.service \
188 units/sysctl.service \
189 units/remount-rootfs.service \
190 units/printer.target \
191 units/bluetooth.target \
192 units/smartcard.target \
193 units/tmpwatch.service \
194 units/tmpwatch.timer \
195 units/systemd-readahead-done.timer
197 nodist_systemunit_DATA = \
198 units/sysinit.target \
199 units/getty@.service \
200 units/serial-getty@.service \
201 units/graphical.target \
202 units/remote-fs.target \
203 units/multi-user.target \
204 units/systemd-initctl.service \
205 units/systemd-logger.service \
206 units/systemd-shutdownd.service \
207 units/systemd-kmsg-syslogd.service \
208 units/systemd-modules-load.service \
209 units/systemd-vconsole-setup.service \
210 units/systemd-remount-api-vfs.service \
211 units/systemd-update-utmp-runlevel.service \
212 units/systemd-update-utmp-shutdown.service \
213 units/systemd-random-seed-save.service \
214 units/systemd-random-seed-load.service \
215 units/systemd-readahead-collect.service \
216 units/systemd-readahead-replay.service \
217 units/systemd-readahead-done.service \
218 units/systemd-tmpfiles.service \
221 dist_sessionunit_DATA = \
222 units/session/default.target
224 nodist_sessionunit_DATA = \
225 units/session/remote-fs.target \
226 units/session/exit.service
229 units/sysinit.target.m4 \
230 units/getty@.service.m4 \
231 units/serial-getty@.service.m4 \
232 units/graphical.target.m4 \
233 units/multi-user.target.m4 \
234 units/remote-fs.target.m4 \
235 units/systemd-initctl.service.in \
236 units/systemd-logger.service.in \
237 units/systemd-shutdownd.service.in \
238 units/systemd-kmsg-syslogd.service.in \
239 units/systemd-modules-load.service.in \
240 units/systemd-vconsole-setup.service.in \
241 units/systemd-remount-api-vfs.service.in \
242 units/systemd-update-utmp-runlevel.service.in \
243 units/systemd-update-utmp-shutdown.service.in \
244 units/systemd-random-seed-save.service.in \
245 units/systemd-random-seed-load.service.in \
246 units/systemd-readahead-collect.service.in \
247 units/systemd-readahead-replay.service.in \
248 units/systemd-readahead-done.service.in \
249 units/systemd-tmpfiles.service.in \
250 units/syslog.target.in \
251 units/session/exit.service.in \
255 dist_systemunit_DATA += \
256 units/fedora/halt.service \
257 units/fedora/killall.service \
258 units/fedora/poweroff.service \
259 units/fedora/prefdm.service \
260 units/fedora/rc-local.service \
261 units/fedora/reboot.service \
262 units/fedora/sysinit.service \
263 units/fedora/single.service \
264 units/fedora/plymouth-quit.service \
265 units/fedora/plymouth-reboot.service \
266 units/fedora/plymouth-poweroff.service \
267 units/fedora/plymouth-halt.service
271 dist_systemunit_DATA += \
272 units/debian/halt.service \
273 units/debian/killall.service \
274 units/debian/poweroff.service \
275 units/debian/reboot.service \
276 units/debian/fsck.target \
277 units/debian/umountfs.service \
278 units/debian/umountnfs.service \
279 units/debian/umountroot.service
283 dist_systemunit_DATA += \
284 units/suse/halt.service \
285 units/suse/poweroff.service \
286 units/suse/reboot.service \
287 units/suse/fsck.target
291 dist_systemunit_DATA += \
292 units/gentoo/halt.service \
293 units/gentoo/killall.service \
294 units/gentoo/poweroff.service \
295 units/gentoo/reboot.service \
296 units/gentoo/xdm.service
300 dist_systemunit_DATA += \
301 units/arch/sysinit.service \
302 units/arch/rc-local.service \
303 units/arch/halt.service \
304 units/arch/poweroff.service \
305 units/arch/reboot.service
315 pkgconfigdata_DATA = \
318 dist_polkitpolicy_DATA = \
319 src/org.freedesktop.systemd1.policy
321 noinst_LTLIBRARIES = \
322 libsystemd-basic.la \
325 libsystemd_basic_la_SOURCES = \
336 libsystemd_basic_la_CFLAGS = \
340 libsystemd_basic_la_LIBADD = \
343 libsystemd_core_la_SOURCES = \
348 src/load-fragment.c \
371 src/dbus-automount.c \
373 src/dbus-snapshot.c \
379 src/hostname-setup.c \
380 src/loopback-setup.c \
390 libsystemd_core_la_CFLAGS = \
398 libsystemd_core_la_LIBADD = \
399 libsystemd-basic.la \
406 # This is needed because automake is buggy in how it generates the
407 # rules for C programs, but not Vala programs. We therefore can't
408 # list the .h files as dependencies if we want make dist to work.
411 ${libsystemd_basic_la_SOURCES:.c=.h} \
412 ${libsystemd_core_la_SOURCES:.c=.h} \
418 src/linux/auto_dev-ioctl.h \
419 src/linux/fanotify.h \
429 src/readahead-common.h
436 man/systemd-notify.1 \
440 man/sd_listen_fds.3 \
443 man/systemd.service.5 \
444 man/systemd.socket.5 \
445 man/systemd.mount.5 \
446 man/systemd.automount.5 \
448 man/systemd.timer.5 \
450 man/systemd.target.5 \
451 man/systemd.device.5 \
452 man/systemd.snapshot.5 \
467 man/sd_is_socket_unix.3 \
468 man/sd_is_socket_inet.3 \
472 man/reboot.8: man/halt.8
473 man/poweroff.8: man/halt.8
474 man/sd_is_socket.3: man/sd_is_fifo.3
475 man/sd_is_socket_unix.3: man/sd_is_fifo.3
476 man/sd_is_socket_inet.3: man/sd_is_fifo.3
477 man/sd_notifyf.3: man/sd_notify.3
478 man/init.1: man/systemd.1
485 man/systemd.special.7
488 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
491 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
494 ${XML_FILES:.xml=.html}
496 nodist_noinst_DATA = \
497 ${XML_IN_FILES:.xml.in=.html}
502 ${nodist_man_MANS:=.in} \
503 ${XML_IN_FILES:.xml.in=.html.in}
516 test_engine_SOURCES = \
519 test_engine_CFLAGS = $(systemd_CFLAGS)
520 test_engine_LDADD = $(systemd_LDADD)
522 test_job_type_SOURCES = \
525 test_job_type_CFLAGS = $(systemd_CFLAGS)
526 test_job_type_LDADD = $(systemd_LDADD)
531 test_ns_CFLAGS = $(systemd_CFLAGS)
532 test_ns_LDADD = $(systemd_LDADD)
534 test_loopback_SOURCES = \
535 src/test-loopback.c \
538 test_loopback_LDADD = \
541 test_hostname_SOURCES = \
542 src/test-hostname.c \
545 test_hostname_LDADD = \
548 test_daemon_SOURCES = \
552 test_daemon_LDADD = \
555 test_cgroup_SOURCES = \
559 test_cgroup_CFLAGS = \
562 test_cgroup_LDADD = \
565 test_env_replace_SOURCES = \
566 src/test-env-replace.c
568 test_env_replace_CFLAGS = \
571 test_env_replace_LDADD = \
574 systemd_logger_SOURCES = \
579 systemd_logger_LDADD = \
580 libsystemd-basic.la \
583 systemd_initctl_SOURCES = \
588 systemd_initctl_CFLAGS = \
592 systemd_initctl_LDADD = \
593 libsystemd-basic.la \
596 systemd_update_utmp_SOURCES = \
601 systemd_update_utmp_CFLAGS = \
606 systemd_update_utmp_LDADD = \
607 libsystemd-basic.la \
611 systemd_random_seed_SOURCES = \
614 systemd_random_seed_CFLAGS = \
617 systemd_random_seed_LDADD = \
620 systemd_shutdownd_SOURCES = \
625 systemd_shutdownd_CFLAGS = \
628 systemd_shutdownd_LDADD = \
631 systemd_modules_load_SOURCES = \
634 systemd_modules_load_CFLAGS = \
637 systemd_tmpfiles_LDADD = \
640 systemd_tmpfiles_SOURCES = \
643 systemd_tmpfiles_CFLAGS = \
646 systemd_modules_load_LDADD = \
649 systemd_vconsole_setup_SOURCES = \
652 systemd_vconsole_setup_CFLAGS = \
655 systemd_vconsole_setup_LDADD = \
658 systemd_remount_api_vfs_SOURCES = \
659 src/remount-api-vfs.c \
662 systemd_remount_api_vfs_CFLAGS = \
665 systemd_remount_api_vfs_LDADD = \
668 systemd_cgroups_agent_SOURCES = \
669 src/cgroups-agent.c \
672 systemd_cgroups_agent_CFLAGS = \
676 systemd_cgroups_agent_LDADD = \
677 libsystemd-basic.la \
680 systemd_kmsg_syslogd_SOURCES = \
685 systemd_kmsg_syslogd_CFLAGS = \
688 systemd_kmsg_syslogd_LDADD = \
691 systemctl_SOURCES = \
706 libsystemd-basic.la \
709 systemd_notify_SOURCES = \
713 systemd_notify_LDADD = \
716 systemd_ask_password_SOURCES = \
719 systemd_ask_password_LDADD = \
722 systemd_reply_password_SOURCES = \
725 systemd_reply_password_LDADD = \
728 systemd_readahead_collect_SOURCES = \
729 src/readahead-collect.c \
731 src/readahead-common.c
733 systemd_readahead_collect_CFLAGS = \
736 systemd_readahead_collect_LDADD = \
737 libsystemd-basic.la \
740 systemd_readahead_replay_SOURCES = \
741 src/readahead-replay.c \
743 src/readahead-common.c
745 systemd_readahead_replay_CFLAGS = \
748 systemd_readahead_replay_LDADD = \
749 libsystemd-basic.la \
752 systemd_cgls_SOURCES = \
757 systemd_cgls_CFLAGS = \
760 systemd_cgls_LDADD = \
763 systemadm_SOURCES = \
765 src/systemd-interfaces.vala
771 -Wno-unused-variable \
772 -Wno-unused-function \
774 -Wno-format-nonliteral
776 systemadm_VALAFLAGS = \
786 systemd_ask_password_agent_SOURCES = \
787 src/ask-password-agent.vala
789 systemd_ask_password_agent_CFLAGS = \
793 -Wno-unused-variable \
794 -Wno-unused-function \
796 -Wno-format-nonliteral
798 systemd_ask_password_agent_VALAFLAGS = \
807 systemd_ask_password_agent_LDADD = \
811 pam_systemd_la_SOURCES = \
816 pam_systemd_la_CFLAGS = \
820 pam_systemd_la_LDFLAGS = \
825 -export-symbols-regex '^pam_sm_.*'
827 pam_systemd_la_LIBADD = \
828 libsystemd-basic.la \
832 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
833 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
834 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
835 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
836 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
837 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
838 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
839 -e 's,@systemunitdir\@,$(systemunitdir),g' \
840 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
841 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
842 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
843 -e 's,@prefix\@,$(prefix),g' \
846 units/%: units/%.in Makefile
849 man/%: man/%.in Makefile
852 %.pc: %.pc.in Makefile
855 M4_PROCESS_SYSTEM = \
856 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
857 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
859 M4_PROCESS_SESSION = \
860 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
861 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
863 units/%: units/%.m4 Makefile
866 units/session/%: units/%.m4 Makefile
867 $(M4_PROCESS_SESSION)
870 $(nodist_systemunit_DATA) \
871 $(nodist_sessionunit_DATA) \
873 ${XML_IN_FILES:.xml.in=.html} \
874 $(pkgconfigdata_DATA)
878 ${systemadm_SOURCES:.vala=.c}
884 --param funcsynopsis.style "'ansi'"
886 XSLTPROC_PROCESS_MAN = \
887 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
888 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
890 XSLTPROC_PROCESS_MAN_IN = \
891 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
892 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
895 XSLTPROC_PROCESS_HTML = \
896 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
897 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
899 XSLTPROC_PROCESS_HTML_IN = \
900 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
901 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
905 $(XSLTPROC_PROCESS_MAN)
907 man/%.1.in: man/%.xml.in
908 $(XSLTPROC_PROCESS_MAN)
911 $(XSLTPROC_PROCESS_MAN)
913 man/%.3.in: man/%.xml.in
914 $(XSLTPROC_PROCESS_MAN)
917 $(XSLTPROC_PROCESS_MAN)
919 man/%.5.in: man/%.xml.in
920 $(XSLTPROC_PROCESS_MAN)
923 $(XSLTPROC_PROCESS_MAN)
925 man/%.7.in: man/%.xml.in
926 $(XSLTPROC_PROCESS_MAN_IN)
929 $(XSLTPROC_PROCESS_MAN)
931 man/%.8.in: man/%.xml.in
932 $(XSLTPROC_PROCESS_MAN_IN)
934 man/%.html: man/%.xml
935 $(XSLTPROC_PROCESS_HTML)
937 man/%.html.in: man/%.xml.in
938 $(XSLTPROC_PROCESS_HTML_IN)
942 ${nodist_man_MANS:=.in} \
943 ${XML_FILES:.xml=.html} \
944 ${XML_IN_FILES:.xml.in=.html.in}
947 org.freedesktop.systemd1.%.xml: systemd
948 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
951 $(dbusinterface_DATA)
955 $(DESTDIR)$(systemunitdir) \
956 $(DESTDIR)$(sessionunitdir) \
957 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
958 $(DESTDIR)$(systemunitdir)/basic.target.wants \
959 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
960 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
961 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
962 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
963 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
964 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
965 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
966 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
967 $(DESTDIR)$(pkgsysconfdir)/system \
968 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
969 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
970 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
971 $(DESTDIR)$(pkgsysconfdir)/session \
972 $(DESTDIR)$(sysconfdir)/xdg/systemd
973 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
975 $(LN_S) $(pkgsysconfdir)/session session )
976 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
977 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
978 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
979 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
980 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
981 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
982 rm -f systemd-update-utmp-runlevel.service && \
983 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
984 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
985 rm -f systemd-update-utmp-runlevel.service && \
986 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
987 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
988 rm -f systemd-update-utmp-runlevel.service && \
989 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
990 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
991 rm -f systemd-update-utmp-runlevel.service && \
992 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
993 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
994 rm -f systemd-update-utmp-runlevel.service && \
995 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
996 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
997 rm -f systemd-update-utmp-shutdown.service \
998 hwclock-save.service \
999 systemd-random-seed-save.service && \
1000 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1001 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1002 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1003 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1004 rm -f systemd-remount-api-vfs.service \
1005 remount-rootfs.service \
1008 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1009 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1010 $(LN_S) ../var-run.mount var-run.mount && \
1011 $(LN_S) ../var-lock.mount var-lock.mount )
1012 ( cd $(DESTDIR)$(sessionunitdir) && \
1013 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1014 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1015 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1016 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1017 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1018 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1019 $(LN_S) $(systemunitdir)/printer.target printer.target)
1020 ( cd $(DESTDIR)$(systemunitdir) && \
1021 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1022 $(LN_S) poweroff.target runlevel0.target && \
1023 $(LN_S) rescue.target runlevel1.target && \
1024 $(LN_S) multi-user.target runlevel2.target && \
1025 $(LN_S) multi-user.target runlevel3.target && \
1026 $(LN_S) multi-user.target runlevel4.target && \
1027 $(LN_S) graphical.target runlevel5.target && \
1028 $(LN_S) reboot.target runlevel6.target )
1029 ( cd $(DESTDIR)$(systemunitdir) && \
1030 rm -f default.target ctrl-alt-del.target && \
1031 $(LN_S) graphical.target default.target && \
1032 $(LN_S) reboot.target ctrl-alt-del.target )
1033 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1034 rm -f getty.target && \
1035 $(LN_S) ../getty.target getty.target )
1036 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1037 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1038 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1039 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1040 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1041 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1042 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1043 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1044 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1045 rm -f remote-fs.target && \
1046 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1047 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1048 rm -f dev-hugepages.automount \
1049 dev-mqueue.automount \
1050 proc-sys-fs-binfmt_misc.automount \
1051 sys-kernel-debug.automount \
1052 sys-kernel-security.automount \
1053 systemd-vconsole-setup.service \
1054 systemd-modules-load.service \
1055 systemd-random-seed-load.service \
1056 systemd-tmpfiles.service \
1059 tmpwatch.service && \
1060 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1061 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1062 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1063 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1064 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1065 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1066 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1067 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1068 $(LN_S) ../systemd-tmpfiles.service systemd-tmpfiles.service && \
1069 $(LN_S) ../sysctl.service sysctl.service && \
1070 $(LN_S) ../tmpwatch.timer tmpwatch.timer && \
1071 $(LN_S) ../tmpwatch.service tmpwatch.service )
1072 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1073 rm -f org.freedesktop.systemd1.service && \
1074 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1076 $(MKDIR_P) -m 0755 \
1077 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1078 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1079 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1080 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1081 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1082 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1083 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1084 rm -f display-manager.service && \
1085 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1086 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1087 rm -f prefdm.service && \
1088 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1089 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1090 rm -f rc-local.service && \
1091 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1092 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1093 rm -f single.service && \
1094 $(LN_S) $(systemunitdir)/single.service single.service )
1095 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1096 rm -f plymouth-quit.service && \
1097 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1098 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1099 rm -f plymouth-reboot.service && \
1100 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1101 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1102 rm -f plymouth-poweroff.service && \
1103 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1104 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1105 rm -f plymouth-halt.service && \
1106 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1107 ( cd $(DESTDIR)$(systemunitdir) && \
1108 rm -f local.service && \
1109 $(LN_S) rc-local.service local.service )
1110 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1111 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1114 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1115 rm -f display-manager.service && \
1116 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1117 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1118 rm -f xdm.service && \
1119 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1122 $(MKDIR_P) -m 0755 \
1123 $(DESTDIR)$(systemunitdir)/umount.target.wants
1124 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1125 rm -f umountfs.service umountnfs.service umountroot.service && \
1126 $(LN_S) ../umountfs.service umountfs.service && \
1127 $(LN_S) ../umountnfs.service umountnfs.service && \
1128 $(LN_S) ../umountroot.service umountroot.service )
1129 ( cd $(DESTDIR)$(systemunitdir) && \
1130 rm -f runlevel5.target && \
1131 $(LN_S) multi-user.target runlevel5.target )
1135 ( cd $(DESTDIR)$(systemunitdir) && \
1136 rm -f fsck.target && \
1137 $(LN_S) sysinit.target fsck.target )
1141 DISTCHECK_CONFIGURE_FLAGS = \
1142 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1143 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1144 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1145 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1146 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1147 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1148 --with-rootdir=$$dc_install_base/$(rootdir)
1150 upload: all distcheck
1151 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1152 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1153 scp man/*.html tango:public/systemd-man/
1156 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1158 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1160 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1161 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount