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 \
408 libsystemd_core_la_CFLAGS = \
416 libsystemd_core_la_LIBADD = \
417 libsystemd-basic.la \
424 # This is needed because automake is buggy in how it generates the
425 # rules for C programs, but not Vala programs. We therefore can't
426 # list the .h files as dependencies if we want make dist to work.
429 ${libsystemd_basic_la_SOURCES:.c=.h} \
430 ${libsystemd_core_la_SOURCES:.c=.h} \
436 src/linux/auto_dev-ioctl.h \
437 src/linux/fanotify.h \
448 src/readahead-common.h
455 man/systemd-notify.1 \
459 man/sd_listen_fds.3 \
462 man/systemd.service.5 \
463 man/systemd.socket.5 \
464 man/systemd.mount.5 \
465 man/systemd.automount.5 \
467 man/systemd.timer.5 \
469 man/systemd.target.5 \
470 man/systemd.device.5 \
471 man/systemd.snapshot.5 \
487 man/sd_is_socket_unix.3 \
488 man/sd_is_socket_inet.3 \
492 man/reboot.8: man/halt.8
493 man/poweroff.8: man/halt.8
494 man/sd_is_socket.3: man/sd_is_fifo.3
495 man/sd_is_socket_unix.3: man/sd_is_fifo.3
496 man/sd_is_socket_inet.3: man/sd_is_fifo.3
497 man/sd_notifyf.3: man/sd_notify.3
498 man/init.1: man/systemd.1
505 man/systemd.special.7
508 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
511 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
514 ${XML_FILES:.xml=.html}
516 nodist_noinst_DATA = \
517 ${XML_IN_FILES:.xml.in=.html}
522 ${nodist_man_MANS:=.in} \
523 ${XML_IN_FILES:.xml.in=.html.in}
536 test_engine_SOURCES = \
539 test_engine_CFLAGS = $(systemd_CFLAGS)
540 test_engine_LDADD = $(systemd_LDADD)
542 test_job_type_SOURCES = \
545 test_job_type_CFLAGS = $(systemd_CFLAGS)
546 test_job_type_LDADD = $(systemd_LDADD)
551 test_ns_CFLAGS = $(systemd_CFLAGS)
552 test_ns_LDADD = $(systemd_LDADD)
554 test_loopback_SOURCES = \
555 src/test-loopback.c \
558 test_loopback_LDADD = \
561 test_hostname_SOURCES = \
562 src/test-hostname.c \
565 test_hostname_LDADD = \
568 test_daemon_SOURCES = \
572 test_daemon_LDADD = \
575 test_cgroup_SOURCES = \
579 test_cgroup_CFLAGS = \
582 test_cgroup_LDADD = \
585 test_env_replace_SOURCES = \
586 src/test-env-replace.c
588 test_env_replace_CFLAGS = \
591 test_env_replace_LDADD = \
594 systemd_logger_SOURCES = \
599 systemd_logger_LDADD = \
600 libsystemd-basic.la \
603 systemd_initctl_SOURCES = \
608 systemd_initctl_CFLAGS = \
612 systemd_initctl_LDADD = \
613 libsystemd-basic.la \
616 systemd_update_utmp_SOURCES = \
621 systemd_update_utmp_CFLAGS = \
626 systemd_update_utmp_LDADD = \
627 libsystemd-basic.la \
631 systemd_random_seed_SOURCES = \
634 systemd_random_seed_CFLAGS = \
637 systemd_random_seed_LDADD = \
640 systemd_shutdownd_SOURCES = \
645 systemd_shutdownd_CFLAGS = \
648 systemd_shutdownd_LDADD = \
651 systemd_shutdown_SOURCES = \
656 systemd_shutdown_CFLAGS = \
660 systemd_shutdown_LDADD = \
661 libsystemd-basic.la \
664 systemd_modules_load_SOURCES = \
667 systemd_modules_load_CFLAGS = \
670 systemd_tmpfiles_LDADD = \
673 systemd_tmpfiles_SOURCES = \
676 systemd_tmpfiles_CFLAGS = \
679 systemd_user_sessions_LDADD = \
682 systemd_user_sessions_SOURCES = \
683 src/user-sessions.c \
686 systemd_user_sessions_CFLAGS = \
689 systemd_modules_load_LDADD = \
692 systemd_vconsole_setup_SOURCES = \
695 systemd_vconsole_setup_CFLAGS = \
698 systemd_vconsole_setup_LDADD = \
701 systemd_remount_api_vfs_SOURCES = \
702 src/remount-api-vfs.c \
705 systemd_remount_api_vfs_CFLAGS = \
708 systemd_remount_api_vfs_LDADD = \
711 systemd_cgroups_agent_SOURCES = \
712 src/cgroups-agent.c \
715 systemd_cgroups_agent_CFLAGS = \
719 systemd_cgroups_agent_LDADD = \
720 libsystemd-basic.la \
723 systemd_kmsg_syslogd_SOURCES = \
728 systemd_kmsg_syslogd_CFLAGS = \
731 systemd_kmsg_syslogd_LDADD = \
734 systemctl_SOURCES = \
750 libsystemd-basic.la \
753 systemd_notify_SOURCES = \
758 systemd_notify_LDADD = \
761 systemd_ask_password_SOURCES = \
764 systemd_ask_password_LDADD = \
767 systemd_reply_password_SOURCES = \
770 systemd_reply_password_LDADD = \
773 systemd_readahead_collect_SOURCES = \
774 src/readahead-collect.c \
776 src/readahead-common.c
778 systemd_readahead_collect_CFLAGS = \
781 systemd_readahead_collect_LDADD = \
782 libsystemd-basic.la \
785 systemd_readahead_replay_SOURCES = \
786 src/readahead-replay.c \
788 src/readahead-common.c
790 systemd_readahead_replay_CFLAGS = \
793 systemd_readahead_replay_LDADD = \
794 libsystemd-basic.la \
797 systemd_cgls_SOURCES = \
802 systemd_cgls_CFLAGS = \
805 systemd_cgls_LDADD = \
808 systemadm_SOURCES = \
810 src/systemd-interfaces.vala
816 -Wno-unused-variable \
817 -Wno-unused-function \
819 -Wno-format-nonliteral
821 systemadm_VALAFLAGS = \
831 systemd_ask_password_agent_SOURCES = \
832 src/ask-password-agent.vala
834 systemd_ask_password_agent_CFLAGS = \
838 -Wno-unused-variable \
839 -Wno-unused-function \
841 -Wno-format-nonliteral
843 systemd_ask_password_agent_VALAFLAGS = \
852 systemd_ask_password_agent_LDADD = \
856 pam_systemd_la_SOURCES = \
861 pam_systemd_la_CFLAGS = \
865 pam_systemd_la_LDFLAGS = \
870 -export-symbols-regex '^pam_sm_.*'
872 pam_systemd_la_LIBADD = \
873 libsystemd-basic.la \
877 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
878 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
879 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
880 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
881 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
882 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
883 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
884 -e 's,@systemunitdir\@,$(systemunitdir),g' \
885 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
886 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
887 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
888 -e 's,@prefix\@,$(prefix),g' \
891 units/%: units/%.in Makefile
894 man/%: man/%.in Makefile
897 %.pc: %.pc.in Makefile
900 M4_PROCESS_SYSTEM = \
901 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
902 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
904 M4_PROCESS_SESSION = \
905 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
906 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
908 units/%: units/%.m4 Makefile
911 units/session/%: units/%.m4 Makefile
912 $(M4_PROCESS_SESSION)
915 $(nodist_systemunit_DATA) \
916 $(nodist_sessionunit_DATA) \
918 ${XML_IN_FILES:.xml.in=.html} \
919 $(pkgconfigdata_DATA)
923 ${systemadm_SOURCES:.vala=.c}
929 --param funcsynopsis.style "'ansi'"
931 XSLTPROC_PROCESS_MAN = \
932 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
933 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
935 XSLTPROC_PROCESS_MAN_IN = \
936 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
937 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
940 XSLTPROC_PROCESS_HTML = \
941 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
942 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
944 XSLTPROC_PROCESS_HTML_IN = \
945 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
946 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
950 $(XSLTPROC_PROCESS_MAN)
952 man/%.1.in: man/%.xml.in
953 $(XSLTPROC_PROCESS_MAN)
956 $(XSLTPROC_PROCESS_MAN)
958 man/%.3.in: man/%.xml.in
959 $(XSLTPROC_PROCESS_MAN)
962 $(XSLTPROC_PROCESS_MAN)
964 man/%.5.in: man/%.xml.in
965 $(XSLTPROC_PROCESS_MAN)
968 $(XSLTPROC_PROCESS_MAN)
970 man/%.7.in: man/%.xml.in
971 $(XSLTPROC_PROCESS_MAN_IN)
974 $(XSLTPROC_PROCESS_MAN)
976 man/%.8.in: man/%.xml.in
977 $(XSLTPROC_PROCESS_MAN_IN)
979 man/%.html: man/%.xml
980 $(XSLTPROC_PROCESS_HTML)
982 man/%.html.in: man/%.xml.in
983 $(XSLTPROC_PROCESS_HTML_IN)
987 ${nodist_man_MANS:=.in} \
988 ${XML_FILES:.xml=.html} \
989 ${XML_IN_FILES:.xml.in=.html.in}
992 org.freedesktop.systemd1.%.xml: systemd
993 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
996 $(dbusinterface_DATA)
1000 $(DESTDIR)$(systemunitdir) \
1001 $(DESTDIR)$(sessionunitdir) \
1002 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1003 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1004 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1005 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1006 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1007 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1008 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1009 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1010 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1011 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1012 $(DESTDIR)$(pkgsysconfdir)/system \
1013 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1014 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1015 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1016 $(DESTDIR)$(pkgsysconfdir)/session \
1017 $(DESTDIR)$(sysconfdir)/xdg/systemd
1018 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1020 $(LN_S) $(pkgsysconfdir)/session session )
1021 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1022 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
1023 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1024 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1025 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
1026 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1027 rm -f systemd-update-utmp-runlevel.service && \
1028 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1029 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1030 rm -f systemd-update-utmp-runlevel.service && \
1031 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1032 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1033 rm -f systemd-update-utmp-runlevel.service && \
1034 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1035 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1036 rm -f systemd-update-utmp-runlevel.service && \
1037 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1038 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1039 rm -f systemd-update-utmp-runlevel.service && \
1040 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1041 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1042 rm -f systemd-update-utmp-shutdown.service \
1043 hwclock-save.service \
1044 systemd-random-seed-save.service && \
1045 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1046 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1047 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1048 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1049 rm -f systemd-remount-api-vfs.service \
1050 remount-rootfs.service \
1053 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1054 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1055 $(LN_S) ../var-run.mount var-run.mount && \
1056 $(LN_S) ../var-lock.mount var-lock.mount )
1057 ( cd $(DESTDIR)$(sessionunitdir) && \
1058 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1059 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1060 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1061 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1062 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1063 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1064 $(LN_S) $(systemunitdir)/printer.target printer.target)
1065 ( cd $(DESTDIR)$(systemunitdir) && \
1066 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1067 $(LN_S) poweroff.target runlevel0.target && \
1068 $(LN_S) rescue.target runlevel1.target && \
1069 $(LN_S) multi-user.target runlevel2.target && \
1070 $(LN_S) multi-user.target runlevel3.target && \
1071 $(LN_S) multi-user.target runlevel4.target && \
1072 $(LN_S) graphical.target runlevel5.target && \
1073 $(LN_S) reboot.target runlevel6.target )
1074 ( cd $(DESTDIR)$(systemunitdir) && \
1075 rm -f default.target ctrl-alt-del.target && \
1076 $(LN_S) graphical.target default.target && \
1077 $(LN_S) reboot.target ctrl-alt-del.target )
1078 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1079 rm -f getty.target systemd-user-sessions.service && \
1080 $(LN_S) ../getty.target getty.target && \
1081 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1082 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1083 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1084 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1085 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1086 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1087 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1088 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1089 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1090 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1091 rm -f remote-fs.target && \
1092 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1093 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1094 rm -f dev-hugepages.automount \
1095 dev-mqueue.automount \
1096 proc-sys-fs-binfmt_misc.automount \
1097 sys-kernel-debug.automount \
1098 sys-kernel-security.automount \
1099 systemd-vconsole-setup.service \
1100 systemd-modules-load.service \
1101 systemd-random-seed-load.service \
1102 systemd-tmpfiles.service \
1105 tmpwatch.service && \
1106 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1107 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1108 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1109 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1110 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1111 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1112 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1113 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1114 $(LN_S) ../systemd-tmpfiles.service systemd-tmpfiles.service && \
1115 $(LN_S) ../sysctl.service sysctl.service && \
1116 $(LN_S) ../tmpwatch.timer tmpwatch.timer && \
1117 $(LN_S) ../tmpwatch.service tmpwatch.service )
1118 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1119 rm -f org.freedesktop.systemd1.service && \
1120 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1122 $(MKDIR_P) -m 0755 \
1123 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1124 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1125 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1126 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1127 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1128 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1129 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1130 rm -f display-manager.service && \
1131 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1132 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1133 rm -f prefdm.service && \
1134 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1135 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1136 rm -f rc-local.service && \
1137 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1138 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1139 rm -f single.service && \
1140 $(LN_S) $(systemunitdir)/single.service single.service )
1141 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1142 rm -f plymouth-quit.service && \
1143 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1144 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1145 rm -f plymouth-reboot.service && \
1146 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1147 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1148 rm -f plymouth-poweroff.service && \
1149 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1150 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1151 rm -f plymouth-halt.service && \
1152 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1153 ( cd $(DESTDIR)$(systemunitdir) && \
1154 rm -f local.service && \
1155 $(LN_S) rc-local.service local.service )
1156 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1157 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1160 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1161 rm -f display-manager.service && \
1162 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1163 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1164 rm -f xdm.service && \
1165 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1168 $(MKDIR_P) -m 0755 \
1169 $(DESTDIR)$(systemunitdir)/umount.target.wants
1170 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1171 rm -f umountfs.service umountnfs.service umountroot.service && \
1172 $(LN_S) ../umountfs.service umountfs.service && \
1173 $(LN_S) ../umountnfs.service umountnfs.service && \
1174 $(LN_S) ../umountroot.service umountroot.service )
1175 ( cd $(DESTDIR)$(systemunitdir) && \
1176 rm -f runlevel5.target && \
1177 $(LN_S) multi-user.target runlevel5.target )
1181 ( cd $(DESTDIR)$(systemunitdir) && \
1182 rm -f fsck.target && \
1183 $(LN_S) sysinit.target fsck.target )
1187 DISTCHECK_CONFIGURE_FLAGS = \
1188 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1189 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1190 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1191 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1192 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1193 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1194 --with-rootdir=$$dc_install_base/$(rootdir)
1196 upload: all distcheck
1197 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1198 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1199 scp man/*.html tango:public/systemd-man/
1202 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1204 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1206 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1207 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount