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\"
84 systemd-ask-password \
85 systemd-tty-ask-password-agent
93 systemd-gnome-ask-password-agent
96 rootlibexec_PROGRAMS = \
98 systemd-cgroups-agent \
100 systemd-update-utmp \
101 systemd-random-seed \
104 systemd-modules-load \
105 systemd-remount-api-vfs \
106 systemd-kmsg-syslogd \
107 systemd-vconsole-setup \
108 systemd-reply-password \
109 systemd-readahead-collect \
110 systemd-readahead-replay \
112 systemd-user-sessions \
127 pamlib_LTLIBRARIES = \
131 dist_pkgsysconf_DATA = \
134 dist_dbuspolicy_DATA = \
135 src/org.freedesktop.systemd1.conf
137 dist_dbussystemservice_DATA = \
138 src/org.freedesktop.systemd1.service
140 dist_udevrules_DATA = \
143 dbusinterface_DATA = \
144 org.freedesktop.systemd1.Manager.xml \
145 org.freedesktop.systemd1.Job.xml \
146 org.freedesktop.systemd1.Unit.xml \
147 org.freedesktop.systemd1.Service.xml \
148 org.freedesktop.systemd1.Socket.xml \
149 org.freedesktop.systemd1.Timer.xml \
150 org.freedesktop.systemd1.Target.xml \
151 org.freedesktop.systemd1.Device.xml \
152 org.freedesktop.systemd1.Mount.xml \
153 org.freedesktop.systemd1.Automount.xml \
154 org.freedesktop.systemd1.Snapshot.xml \
155 org.freedesktop.systemd1.Swap.xml \
156 org.freedesktop.systemd1.Path.xml
158 dist_tmpfiles_DATA = \
159 tmpfiles.d/systemd.conf \
162 dist_systemunit_DATA = \
163 units/emergency.service \
164 units/emergency.target \
169 units/local-fs.target \
170 units/network.target \
171 units/nss-lookup.target \
172 units/mail-transfer-agent.target \
173 units/http-daemon.target \
174 units/poweroff.target \
175 units/reboot.target \
176 units/rescue.target \
177 units/rpcbind.target \
178 units/rtc-set.target \
179 units/shutdown.target \
181 units/umount.target \
182 units/sigpwr.target \
183 units/sockets.target \
186 units/systemd-initctl.socket \
187 units/systemd-logger.socket \
188 units/systemd-shutdownd.socket \
189 units/syslog.socket \
190 units/dev-hugepages.automount \
191 units/dev-hugepages.mount \
192 units/dev-mqueue.automount \
193 units/dev-mqueue.mount \
194 units/proc-sys-fs-binfmt_misc.automount \
195 units/proc-sys-fs-binfmt_misc.mount \
196 units/sys-kernel-debug.automount \
197 units/sys-kernel-debug.mount \
198 units/sys-kernel-security.automount \
199 units/sys-kernel-security.mount \
201 units/var-lock.mount \
202 units/var-run.mount \
203 units/hwclock-load.service \
204 units/hwclock-save.service \
205 units/sysctl.service \
206 units/remount-rootfs.service \
207 units/printer.target \
208 units/bluetooth.target \
209 units/smartcard.target \
210 units/systemd-readahead-done.timer \
211 units/systemd-tmpfiles-clean.timer \
212 units/quotaon.service \
213 units/systemd-ask-password-wall.path
215 nodist_systemunit_DATA = \
216 units/sysinit.target \
217 units/getty@.service \
218 units/serial-getty@.service \
219 units/graphical.target \
220 units/remote-fs.target \
221 units/multi-user.target \
222 units/systemd-initctl.service \
223 units/systemd-logger.service \
224 units/systemd-shutdownd.service \
225 units/systemd-kmsg-syslogd.service \
226 units/systemd-modules-load.service \
227 units/systemd-vconsole-setup.service \
228 units/systemd-remount-api-vfs.service \
229 units/systemd-update-utmp-runlevel.service \
230 units/systemd-update-utmp-shutdown.service \
231 units/systemd-random-seed-save.service \
232 units/systemd-random-seed-load.service \
233 units/systemd-readahead-collect.service \
234 units/systemd-readahead-replay.service \
235 units/systemd-readahead-done.service \
236 units/systemd-tmpfiles-setup.service \
237 units/systemd-tmpfiles-clean.service \
238 units/systemd-user-sessions.service \
239 units/systemd-ask-password-wall.service \
240 units/syslog.target \
242 units/poweroff.service \
243 units/reboot.service \
244 units/kexec.service \
245 units/fsck@.service \
246 units/fsck-root.service \
247 units/quotacheck.service
249 dist_sessionunit_DATA = \
250 units/session/default.target \
251 units/session/exit.target
253 nodist_sessionunit_DATA = \
254 units/session/remote-fs.target \
255 units/session/exit.service
258 units/sysinit.target.m4 \
259 units/getty@.service.m4 \
260 units/serial-getty@.service.m4 \
261 units/graphical.target.m4 \
262 units/multi-user.target.m4 \
263 units/remote-fs.target.m4 \
264 units/systemd-initctl.service.in \
265 units/systemd-logger.service.in \
266 units/systemd-shutdownd.service.in \
267 units/systemd-kmsg-syslogd.service.in \
268 units/systemd-modules-load.service.in \
269 units/systemd-vconsole-setup.service.in \
270 units/systemd-remount-api-vfs.service.in \
271 units/systemd-update-utmp-runlevel.service.in \
272 units/systemd-update-utmp-shutdown.service.in \
273 units/systemd-random-seed-save.service.in \
274 units/systemd-random-seed-load.service.in \
275 units/systemd-readahead-collect.service.in \
276 units/systemd-readahead-replay.service.in \
277 units/systemd-readahead-done.service.in \
278 units/systemd-tmpfiles-setup.service.in \
279 units/systemd-tmpfiles-clean.service.in \
280 units/systemd-user-sessions.service.in \
281 units/systemd-ask-password-wall.service.in \
282 units/syslog.target.in \
283 units/halt.service.in \
284 units/poweroff.service.in \
285 units/reboot.service.in \
286 units/kexec.service.in \
287 units/session/exit.service.in \
288 units/fsck@.service.in \
289 units/fsck-root.service.in \
290 units/quotacheck.service.in \
294 dist_systemunit_DATA += \
295 units/fedora/prefdm.service \
296 units/fedora/rc-local.service \
297 units/fedora/halt-local.service \
298 units/fedora/sysinit.service \
299 units/fedora/single.service \
300 units/fedora/plymouth-quit.service \
301 units/fedora/plymouth-reboot.service \
302 units/fedora/plymouth-poweroff.service \
303 units/fedora/plymouth-halt.service
306 if TARGET_DEBIAN_OR_UBUNTU
307 dist_systemunit_DATA += \
308 units/debian/umountfs.service \
309 units/debian/umountnfs.service \
310 units/debian/umountroot.service
314 dist_systemunit_DATA += \
315 units/gentoo/xdm.service
319 dist_systemunit_DATA += \
320 units/arch/rc-local.service
332 pkgconfigdata_DATA = \
335 dist_polkitpolicy_DATA = \
336 src/org.freedesktop.systemd1.policy
338 noinst_LTLIBRARIES = \
339 libsystemd-basic.la \
342 libsystemd_basic_la_SOURCES = \
353 libsystemd_basic_la_CFLAGS = \
357 libsystemd_basic_la_LIBADD = \
360 libsystemd_core_la_SOURCES = \
365 src/load-fragment.c \
389 src/dbus-automount.c \
391 src/dbus-snapshot.c \
397 src/hostname-setup.c \
398 src/loopback-setup.c \
409 libsystemd_core_la_CFLAGS = \
417 libsystemd_core_la_LIBADD = \
418 libsystemd-basic.la \
425 # This is needed because automake is buggy in how it generates the
426 # rules for C programs, but not Vala programs. We therefore can't
427 # list the .h files as dependencies if we want make dist to work.
430 ${libsystemd_basic_la_SOURCES:.c=.h} \
431 ${libsystemd_core_la_SOURCES:.c=.h} \
437 src/linux/auto_dev-ioctl.h \
438 src/linux/fanotify.h \
449 src/readahead-common.h
456 man/systemd-notify.1 \
460 man/sd_listen_fds.3 \
463 man/systemd.service.5 \
464 man/systemd.socket.5 \
465 man/systemd.mount.5 \
466 man/systemd.automount.5 \
468 man/systemd.timer.5 \
470 man/systemd.target.5 \
471 man/systemd.device.5 \
472 man/systemd.snapshot.5 \
488 man/sd_is_socket_unix.3 \
489 man/sd_is_socket_inet.3 \
493 man/reboot.8: man/halt.8
494 man/poweroff.8: man/halt.8
495 man/sd_is_socket.3: man/sd_is_fifo.3
496 man/sd_is_socket_unix.3: man/sd_is_fifo.3
497 man/sd_is_socket_inet.3: man/sd_is_fifo.3
498 man/sd_notifyf.3: man/sd_notify.3
499 man/init.1: man/systemd.1
506 man/systemd.special.7
509 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
512 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
515 ${XML_FILES:.xml=.html}
517 nodist_noinst_DATA = \
518 ${XML_IN_FILES:.xml.in=.html}
523 ${nodist_man_MANS:=.in} \
524 ${XML_IN_FILES:.xml.in=.html.in}
537 test_engine_SOURCES = \
540 test_engine_CFLAGS = $(systemd_CFLAGS)
541 test_engine_LDADD = $(systemd_LDADD)
543 test_job_type_SOURCES = \
546 test_job_type_CFLAGS = $(systemd_CFLAGS)
547 test_job_type_LDADD = $(systemd_LDADD)
552 test_ns_CFLAGS = $(systemd_CFLAGS)
553 test_ns_LDADD = $(systemd_LDADD)
555 test_loopback_SOURCES = \
556 src/test-loopback.c \
559 test_loopback_LDADD = \
562 test_hostname_SOURCES = \
563 src/test-hostname.c \
566 test_hostname_LDADD = \
569 test_daemon_SOURCES = \
573 test_daemon_LDADD = \
576 test_cgroup_SOURCES = \
580 test_cgroup_CFLAGS = \
583 test_cgroup_LDADD = \
586 test_env_replace_SOURCES = \
587 src/test-env-replace.c
589 test_env_replace_CFLAGS = \
592 test_env_replace_LDADD = \
595 systemd_logger_SOURCES = \
600 systemd_logger_LDADD = \
601 libsystemd-basic.la \
604 systemd_initctl_SOURCES = \
609 systemd_initctl_CFLAGS = \
613 systemd_initctl_LDADD = \
614 libsystemd-basic.la \
617 systemd_update_utmp_SOURCES = \
622 systemd_update_utmp_CFLAGS = \
627 systemd_update_utmp_LDADD = \
628 libsystemd-basic.la \
632 systemd_random_seed_SOURCES = \
635 systemd_random_seed_CFLAGS = \
638 systemd_random_seed_LDADD = \
641 systemd_shutdownd_SOURCES = \
646 systemd_shutdownd_CFLAGS = \
649 systemd_shutdownd_LDADD = \
652 systemd_shutdown_SOURCES = \
657 systemd_shutdown_CFLAGS = \
661 systemd_shutdown_LDADD = \
662 libsystemd-basic.la \
665 systemd_modules_load_SOURCES = \
668 systemd_modules_load_CFLAGS = \
671 systemd_modules_load_LDADD = \
674 systemd_tmpfiles_SOURCES = \
677 systemd_tmpfiles_CFLAGS = \
680 systemd_tmpfiles_LDADD = \
683 systemd_fsck_SOURCES = \
687 systemd_fsck_CFLAGS = \
692 systemd_fsck_LDADD = \
693 libsystemd-basic.la \
697 systemd_quotacheck_SOURCES = \
700 systemd_quotacheck_CFLAGS = \
703 systemd_quotacheck_LDADD = \
706 systemd_user_sessions_SOURCES = \
707 src/user-sessions.c \
710 systemd_user_sessions_CFLAGS = \
713 systemd_user_sessions_LDADD = \
716 systemd_vconsole_setup_SOURCES = \
719 systemd_vconsole_setup_CFLAGS = \
722 systemd_vconsole_setup_LDADD = \
725 systemd_remount_api_vfs_SOURCES = \
726 src/remount-api-vfs.c \
729 systemd_remount_api_vfs_CFLAGS = \
732 systemd_remount_api_vfs_LDADD = \
735 systemd_cgroups_agent_SOURCES = \
736 src/cgroups-agent.c \
739 systemd_cgroups_agent_CFLAGS = \
743 systemd_cgroups_agent_LDADD = \
744 libsystemd-basic.la \
747 systemd_kmsg_syslogd_SOURCES = \
752 systemd_kmsg_syslogd_CFLAGS = \
755 systemd_kmsg_syslogd_LDADD = \
758 systemctl_SOURCES = \
774 libsystemd-basic.la \
777 systemd_notify_SOURCES = \
782 systemd_notify_LDADD = \
785 systemd_ask_password_SOURCES = \
788 systemd_ask_password_LDADD = \
791 systemd_reply_password_SOURCES = \
794 systemd_reply_password_LDADD = \
797 systemd_readahead_collect_SOURCES = \
798 src/readahead-collect.c \
800 src/readahead-common.c
802 systemd_readahead_collect_CFLAGS = \
805 systemd_readahead_collect_LDADD = \
806 libsystemd-basic.la \
809 systemd_readahead_replay_SOURCES = \
810 src/readahead-replay.c \
812 src/readahead-common.c
814 systemd_readahead_replay_CFLAGS = \
817 systemd_readahead_replay_LDADD = \
818 libsystemd-basic.la \
821 systemd_cgls_SOURCES = \
826 systemd_cgls_CFLAGS = \
829 systemd_cgls_LDADD = \
832 systemadm_SOURCES = \
834 src/systemd-interfaces.vala
840 -Wno-unused-variable \
841 -Wno-unused-function \
843 -Wno-format-nonliteral
845 systemadm_VALAFLAGS = \
855 systemd_gnome_ask_password_agent_SOURCES = \
856 src/gnome-ask-password-agent.vala
858 systemd_gnome_ask_password_agent_CFLAGS = \
862 -Wno-unused-variable \
863 -Wno-unused-function \
865 -Wno-format-nonliteral
867 systemd_gnome_ask_password_agent_VALAFLAGS = \
876 systemd_gnome_ask_password_agent_LDADD = \
880 systemd_tty_ask_password_agent_SOURCES = \
881 src/tty-ask-password-agent.c \
884 systemd_tty_ask_password_agent_LDADD = \
887 pam_systemd_la_SOURCES = \
892 pam_systemd_la_CFLAGS = \
896 pam_systemd_la_LDFLAGS = \
901 -export-symbols-regex '^pam_sm_.*'
903 pam_systemd_la_LIBADD = \
904 libsystemd-basic.la \
908 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
909 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
910 -e 's,@rootbindir\@,$(rootbindir),g' \
911 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
912 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
913 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
914 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
915 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
916 -e 's,@systemunitdir\@,$(systemunitdir),g' \
917 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
918 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
919 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
920 -e 's,@prefix\@,$(prefix),g' \
923 units/%: units/%.in Makefile
926 man/%: man/%.in Makefile
929 %.pc: %.pc.in Makefile
932 M4_PROCESS_SYSTEM = \
933 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
934 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
936 M4_PROCESS_SESSION = \
937 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
938 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
940 units/%: units/%.m4 Makefile
943 units/session/%: units/%.m4 Makefile
944 $(M4_PROCESS_SESSION)
947 $(nodist_systemunit_DATA) \
948 $(nodist_sessionunit_DATA) \
950 ${XML_IN_FILES:.xml.in=.html} \
951 $(pkgconfigdata_DATA)
955 ${systemadm_SOURCES:.vala=.c}
961 --param funcsynopsis.style "'ansi'"
963 XSLTPROC_PROCESS_MAN = \
964 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
965 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
967 XSLTPROC_PROCESS_MAN_IN = \
968 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
969 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
972 XSLTPROC_PROCESS_HTML = \
973 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
974 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
976 XSLTPROC_PROCESS_HTML_IN = \
977 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
978 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
982 $(XSLTPROC_PROCESS_MAN)
984 man/%.1.in: man/%.xml.in
985 $(XSLTPROC_PROCESS_MAN)
988 $(XSLTPROC_PROCESS_MAN)
990 man/%.3.in: man/%.xml.in
991 $(XSLTPROC_PROCESS_MAN)
994 $(XSLTPROC_PROCESS_MAN)
996 man/%.5.in: man/%.xml.in
997 $(XSLTPROC_PROCESS_MAN)
1000 $(XSLTPROC_PROCESS_MAN)
1002 man/%.7.in: man/%.xml.in
1003 $(XSLTPROC_PROCESS_MAN_IN)
1006 $(XSLTPROC_PROCESS_MAN)
1008 man/%.8.in: man/%.xml.in
1009 $(XSLTPROC_PROCESS_MAN_IN)
1011 man/%.html: man/%.xml
1012 $(XSLTPROC_PROCESS_HTML)
1014 man/%.html.in: man/%.xml.in
1015 $(XSLTPROC_PROCESS_HTML_IN)
1019 ${nodist_man_MANS:=.in} \
1020 ${XML_FILES:.xml=.html} \
1021 ${XML_IN_FILES:.xml.in=.html.in}
1024 org.freedesktop.systemd1.%.xml: systemd
1025 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1028 $(dbusinterface_DATA)
1031 $(MKDIR_P) -m 0755 \
1032 $(DESTDIR)$(systemunitdir) \
1033 $(DESTDIR)$(sessionunitdir) \
1034 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1035 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1036 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1037 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1038 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1039 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1040 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1041 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1042 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1043 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1044 $(DESTDIR)$(pkgsysconfdir)/system \
1045 $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants \
1046 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1047 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1048 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1049 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1050 $(DESTDIR)$(pkgsysconfdir)/session \
1051 $(DESTDIR)$(sysconfdir)/xdg/systemd
1052 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1054 $(LN_S) $(pkgsysconfdir)/session session )
1055 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1056 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1057 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1058 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1059 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1060 $(LN_S) ../syslog.socket syslog.socket )
1061 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1062 rm -f systemd-update-utmp-runlevel.service && \
1063 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1064 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1065 rm -f systemd-update-utmp-runlevel.service && \
1066 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1067 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1068 rm -f systemd-update-utmp-runlevel.service && \
1069 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1070 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1071 rm -f systemd-update-utmp-runlevel.service && \
1072 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1073 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1074 rm -f systemd-update-utmp-runlevel.service && \
1075 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1076 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1077 rm -f systemd-update-utmp-shutdown.service \
1078 hwclock-save.service \
1079 systemd-random-seed-save.service && \
1080 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1081 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1082 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1083 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1084 rm -f systemd-remount-api-vfs.service \
1086 remount-rootfs.service \
1089 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1090 $(LN_S) ../fsck-root.service fsck-root.service && \
1091 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1092 $(LN_S) ../var-run.mount var-run.mount && \
1093 $(LN_S) ../var-lock.mount var-lock.mount )
1094 ( cd $(DESTDIR)$(sessionunitdir) && \
1095 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1096 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1097 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1098 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1099 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1100 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1101 $(LN_S) $(systemunitdir)/printer.target printer.target)
1102 ( cd $(DESTDIR)$(systemunitdir) && \
1103 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1104 $(LN_S) poweroff.target runlevel0.target && \
1105 $(LN_S) rescue.target runlevel1.target && \
1106 $(LN_S) multi-user.target runlevel2.target && \
1107 $(LN_S) multi-user.target runlevel3.target && \
1108 $(LN_S) multi-user.target runlevel4.target && \
1109 $(LN_S) graphical.target runlevel5.target && \
1110 $(LN_S) reboot.target runlevel6.target )
1111 ( cd $(DESTDIR)$(systemunitdir) && \
1112 rm -f default.target ctrl-alt-del.target && \
1113 $(LN_S) graphical.target default.target && \
1114 $(LN_S) reboot.target ctrl-alt-del.target )
1115 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1116 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1117 $(LN_S) ../getty.target getty.target && \
1118 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1119 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1120 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1121 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1122 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1123 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1124 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1125 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1126 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1127 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1128 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1129 rm -f quotaon.service quotacheck.service && \
1130 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1131 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1132 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1133 rm -f remote-fs.target && \
1134 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1135 ( cd $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants && \
1136 rm -f hwclock-load.service && \
1137 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1138 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1139 rm -f dev-hugepages.automount \
1140 dev-mqueue.automount \
1141 proc-sys-fs-binfmt_misc.automount \
1142 sys-kernel-debug.automount \
1143 sys-kernel-security.automount \
1144 systemd-vconsole-setup.service \
1145 systemd-modules-load.service \
1146 systemd-random-seed-load.service \
1147 systemd-tmpfiles-setup.service \
1149 systemd-tmpfiles-clean.timer && \
1150 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1151 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1152 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1153 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1154 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1155 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1156 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1157 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1158 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1159 $(LN_S) ../sysctl.service sysctl.service && \
1160 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1161 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1162 rm -f org.freedesktop.systemd1.service && \
1163 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1165 $(MKDIR_P) -m 0755 \
1166 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1167 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1168 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1169 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1170 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1171 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1172 $(DESTDIR)$(systemunitdir)/final.target.wants
1173 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1174 rm -f display-manager.service && \
1175 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1176 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1177 rm -f prefdm.service && \
1178 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1179 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1180 rm -f rc-local.service && \
1181 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1182 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1183 rm -f halt-local.service && \
1184 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1185 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1186 rm -f single.service && \
1187 $(LN_S) $(systemunitdir)/single.service single.service )
1188 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1189 rm -f plymouth-quit.service && \
1190 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1191 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1192 rm -f plymouth-reboot.service && \
1193 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1194 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1195 rm -f plymouth-poweroff.service && \
1196 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1197 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1198 rm -f plymouth-halt.service && \
1199 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1200 ( cd $(DESTDIR)$(systemunitdir) && \
1201 rm -f local.service && \
1202 $(LN_S) rc-local.service local.service )
1203 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1204 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1207 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1208 rm -f display-manager.service && \
1209 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1210 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1211 rm -f xdm.service && \
1212 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1214 if TARGET_DEBIAN_OR_UBUNTU
1215 $(MKDIR_P) -m 0755 \
1216 $(DESTDIR)$(systemunitdir)/umount.target.wants
1217 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1218 rm -f umountfs.service umountnfs.service umountroot.service && \
1219 $(LN_S) ../umountfs.service umountfs.service && \
1220 $(LN_S) ../umountnfs.service umountnfs.service && \
1221 $(LN_S) ../umountroot.service umountroot.service )
1222 ( cd $(DESTDIR)$(systemunitdir) && \
1223 rm -f runlevel5.target && \
1224 $(LN_S) multi-user.target runlevel5.target )
1227 DISTCHECK_CONFIGURE_FLAGS = \
1228 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1229 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1230 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1231 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1232 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1233 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1234 --with-rootdir=$$dc_install_base/$(rootdir)
1236 upload: all distcheck
1237 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1238 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1239 scp man/*.html tango:public/systemd-man/
1242 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1244 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1246 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1247 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount