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 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
57 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
58 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
59 -DKEXEC_BINARY_PATH=\"/sbin/kexec\" \
64 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
65 -DKBD_SETFONT=\"/usr/bin/setfont\" \
66 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
70 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
71 -DKBD_SETFONT=\"/usr/bin/setfont\" \
72 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
75 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
76 -DKBD_SETFONT=\"/bin/setfont\" \
77 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
85 systemd-ask-password \
86 systemd-tty-ask-password-agent
94 systemd-gnome-ask-password-agent
97 rootlibexec_PROGRAMS = \
99 systemd-cgroups-agent \
101 systemd-update-utmp \
102 systemd-random-seed \
105 systemd-modules-load \
106 systemd-remount-api-vfs \
107 systemd-kmsg-syslogd \
108 systemd-vconsole-setup \
109 systemd-reply-password \
110 systemd-readahead-collect \
111 systemd-readahead-replay \
113 systemd-user-sessions \
128 pamlib_LTLIBRARIES = \
132 dist_pkgsysconf_DATA = \
135 dist_dbuspolicy_DATA = \
136 src/org.freedesktop.systemd1.conf
138 dist_dbussystemservice_DATA = \
139 src/org.freedesktop.systemd1.service
141 dist_udevrules_DATA = \
144 dbusinterface_DATA = \
145 org.freedesktop.systemd1.Manager.xml \
146 org.freedesktop.systemd1.Job.xml \
147 org.freedesktop.systemd1.Unit.xml \
148 org.freedesktop.systemd1.Service.xml \
149 org.freedesktop.systemd1.Socket.xml \
150 org.freedesktop.systemd1.Timer.xml \
151 org.freedesktop.systemd1.Target.xml \
152 org.freedesktop.systemd1.Device.xml \
153 org.freedesktop.systemd1.Mount.xml \
154 org.freedesktop.systemd1.Automount.xml \
155 org.freedesktop.systemd1.Snapshot.xml \
156 org.freedesktop.systemd1.Swap.xml \
157 org.freedesktop.systemd1.Path.xml
159 dist_tmpfiles_DATA = \
160 tmpfiles.d/systemd.conf \
163 dist_systemunit_DATA = \
164 units/emergency.service \
165 units/emergency.target \
170 units/local-fs.target \
171 units/network.target \
172 units/nss-lookup.target \
173 units/mail-transfer-agent.target \
174 units/http-daemon.target \
175 units/poweroff.target \
176 units/reboot.target \
177 units/rescue.target \
178 units/rpcbind.target \
179 units/rtc-set.target \
180 units/shutdown.target \
182 units/umount.target \
183 units/sigpwr.target \
184 units/sockets.target \
187 units/systemd-initctl.socket \
188 units/systemd-logger.socket \
189 units/systemd-shutdownd.socket \
190 units/syslog.socket \
191 units/dev-hugepages.automount \
192 units/dev-hugepages.mount \
193 units/dev-mqueue.automount \
194 units/dev-mqueue.mount \
195 units/proc-sys-fs-binfmt_misc.automount \
196 units/proc-sys-fs-binfmt_misc.mount \
197 units/sys-kernel-debug.automount \
198 units/sys-kernel-debug.mount \
199 units/sys-kernel-security.automount \
200 units/sys-kernel-security.mount \
202 units/var-lock.mount \
203 units/var-run.mount \
204 units/hwclock-load.service \
205 units/hwclock-save.service \
206 units/sysctl.service \
207 units/remount-rootfs.service \
208 units/printer.target \
209 units/bluetooth.target \
210 units/smartcard.target \
211 units/systemd-readahead-done.timer \
212 units/systemd-tmpfiles-clean.timer \
213 units/quotaon.service \
214 units/systemd-ask-password-wall.path \
215 units/systemd-ask-password-plymouth.path
217 nodist_systemunit_DATA = \
218 units/sysinit.target \
219 units/getty@.service \
220 units/serial-getty@.service \
221 units/graphical.target \
222 units/remote-fs.target \
223 units/multi-user.target \
224 units/systemd-initctl.service \
225 units/systemd-logger.service \
226 units/systemd-shutdownd.service \
227 units/systemd-kmsg-syslogd.service \
228 units/systemd-modules-load.service \
229 units/systemd-vconsole-setup.service \
230 units/systemd-remount-api-vfs.service \
231 units/systemd-update-utmp-runlevel.service \
232 units/systemd-update-utmp-shutdown.service \
233 units/systemd-random-seed-save.service \
234 units/systemd-random-seed-load.service \
235 units/systemd-readahead-collect.service \
236 units/systemd-readahead-replay.service \
237 units/systemd-readahead-done.service \
238 units/systemd-tmpfiles-setup.service \
239 units/systemd-tmpfiles-clean.service \
240 units/systemd-user-sessions.service \
241 units/systemd-ask-password-wall.service \
242 units/systemd-ask-password-plymouth.service \
243 units/syslog.target \
245 units/poweroff.service \
246 units/reboot.service \
247 units/kexec.service \
248 units/fsck@.service \
249 units/fsck-root.service \
250 units/quotacheck.service
252 dist_sessionunit_DATA = \
253 units/session/default.target \
254 units/session/exit.target
256 nodist_sessionunit_DATA = \
257 units/session/remote-fs.target \
258 units/session/exit.service
261 units/sysinit.target.m4 \
262 units/getty@.service.m4 \
263 units/serial-getty@.service.m4 \
264 units/graphical.target.m4 \
265 units/multi-user.target.m4 \
266 units/remote-fs.target.m4 \
267 units/systemd-initctl.service.in \
268 units/systemd-logger.service.in \
269 units/systemd-shutdownd.service.in \
270 units/systemd-kmsg-syslogd.service.in \
271 units/systemd-modules-load.service.in \
272 units/systemd-vconsole-setup.service.in \
273 units/systemd-remount-api-vfs.service.in \
274 units/systemd-update-utmp-runlevel.service.in \
275 units/systemd-update-utmp-shutdown.service.in \
276 units/systemd-random-seed-save.service.in \
277 units/systemd-random-seed-load.service.in \
278 units/systemd-readahead-collect.service.in \
279 units/systemd-readahead-replay.service.in \
280 units/systemd-readahead-done.service.in \
281 units/systemd-tmpfiles-setup.service.in \
282 units/systemd-tmpfiles-clean.service.in \
283 units/systemd-user-sessions.service.in \
284 units/systemd-ask-password-wall.service.in \
285 units/systemd-ask-password-plymouth.service.in \
286 units/syslog.target.in \
287 units/halt.service.in \
288 units/poweroff.service.in \
289 units/reboot.service.in \
290 units/kexec.service.in \
291 units/session/exit.service.in \
292 units/fsck@.service.in \
293 units/fsck-root.service.in \
294 units/quotacheck.service.in \
298 dist_systemunit_DATA += \
299 units/fedora/prefdm.service \
300 units/fedora/rc-local.service \
301 units/fedora/halt-local.service \
302 units/fedora/sysinit.service \
303 units/fedora/single.service \
304 units/fedora/plymouth-quit.service \
305 units/fedora/plymouth-reboot.service \
306 units/fedora/plymouth-poweroff.service \
307 units/fedora/plymouth-halt.service
310 if TARGET_DEBIAN_OR_UBUNTU
311 dist_systemunit_DATA += \
312 units/debian/umountfs.service \
313 units/debian/umountnfs.service \
314 units/debian/umountroot.service
318 dist_systemunit_DATA += \
319 units/gentoo/xdm.service
323 dist_systemunit_DATA += \
324 units/arch/rc-local.service
336 pkgconfigdata_DATA = \
339 dist_polkitpolicy_DATA = \
340 src/org.freedesktop.systemd1.policy
342 noinst_LTLIBRARIES = \
343 libsystemd-basic.la \
346 libsystemd_basic_la_SOURCES = \
357 libsystemd_basic_la_CFLAGS = \
361 libsystemd_basic_la_LIBADD = \
364 libsystemd_core_la_SOURCES = \
369 src/load-fragment.c \
393 src/dbus-automount.c \
395 src/dbus-snapshot.c \
401 src/hostname-setup.c \
402 src/loopback-setup.c \
413 libsystemd_core_la_CFLAGS = \
421 libsystemd_core_la_LIBADD = \
422 libsystemd-basic.la \
429 # This is needed because automake is buggy in how it generates the
430 # rules for C programs, but not Vala programs. We therefore can't
431 # list the .h files as dependencies if we want make dist to work.
434 ${libsystemd_basic_la_SOURCES:.c=.h} \
435 ${libsystemd_core_la_SOURCES:.c=.h} \
441 src/linux/auto_dev-ioctl.h \
442 src/linux/fanotify.h \
453 src/readahead-common.h
460 man/systemd-notify.1 \
464 man/sd_listen_fds.3 \
467 man/systemd.service.5 \
468 man/systemd.socket.5 \
469 man/systemd.mount.5 \
470 man/systemd.automount.5 \
472 man/systemd.timer.5 \
474 man/systemd.target.5 \
475 man/systemd.device.5 \
476 man/systemd.snapshot.5 \
492 man/sd_is_socket_unix.3 \
493 man/sd_is_socket_inet.3 \
497 man/reboot.8: man/halt.8
498 man/poweroff.8: man/halt.8
499 man/sd_is_socket.3: man/sd_is_fifo.3
500 man/sd_is_socket_unix.3: man/sd_is_fifo.3
501 man/sd_is_socket_inet.3: man/sd_is_fifo.3
502 man/sd_notifyf.3: man/sd_notify.3
503 man/init.1: man/systemd.1
510 man/systemd.special.7
513 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
516 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
519 ${XML_FILES:.xml=.html}
521 nodist_noinst_DATA = \
522 ${XML_IN_FILES:.xml.in=.html}
527 ${nodist_man_MANS:=.in} \
528 ${XML_IN_FILES:.xml.in=.html.in}
541 test_engine_SOURCES = \
544 test_engine_CFLAGS = $(systemd_CFLAGS)
545 test_engine_LDADD = $(systemd_LDADD)
547 test_job_type_SOURCES = \
550 test_job_type_CFLAGS = $(systemd_CFLAGS)
551 test_job_type_LDADD = $(systemd_LDADD)
556 test_ns_CFLAGS = $(systemd_CFLAGS)
557 test_ns_LDADD = $(systemd_LDADD)
559 test_loopback_SOURCES = \
560 src/test-loopback.c \
563 test_loopback_LDADD = \
566 test_hostname_SOURCES = \
567 src/test-hostname.c \
570 test_hostname_LDADD = \
573 test_daemon_SOURCES = \
577 test_daemon_LDADD = \
580 test_cgroup_SOURCES = \
584 test_cgroup_CFLAGS = \
587 test_cgroup_LDADD = \
590 test_env_replace_SOURCES = \
591 src/test-env-replace.c
593 test_env_replace_CFLAGS = \
596 test_env_replace_LDADD = \
599 systemd_logger_SOURCES = \
604 systemd_logger_LDADD = \
605 libsystemd-basic.la \
608 systemd_initctl_SOURCES = \
613 systemd_initctl_CFLAGS = \
617 systemd_initctl_LDADD = \
618 libsystemd-basic.la \
621 systemd_update_utmp_SOURCES = \
626 systemd_update_utmp_CFLAGS = \
631 systemd_update_utmp_LDADD = \
632 libsystemd-basic.la \
636 systemd_random_seed_SOURCES = \
639 systemd_random_seed_CFLAGS = \
642 systemd_random_seed_LDADD = \
645 systemd_shutdownd_SOURCES = \
650 systemd_shutdownd_CFLAGS = \
653 systemd_shutdownd_LDADD = \
656 systemd_shutdown_SOURCES = \
661 systemd_shutdown_CFLAGS = \
665 systemd_shutdown_LDADD = \
666 libsystemd-basic.la \
669 systemd_modules_load_SOURCES = \
672 systemd_modules_load_CFLAGS = \
675 systemd_modules_load_LDADD = \
678 systemd_tmpfiles_SOURCES = \
681 systemd_tmpfiles_CFLAGS = \
684 systemd_tmpfiles_LDADD = \
687 systemd_fsck_SOURCES = \
691 systemd_fsck_CFLAGS = \
696 systemd_fsck_LDADD = \
697 libsystemd-basic.la \
701 systemd_quotacheck_SOURCES = \
704 systemd_quotacheck_CFLAGS = \
707 systemd_quotacheck_LDADD = \
710 systemd_user_sessions_SOURCES = \
711 src/user-sessions.c \
714 systemd_user_sessions_CFLAGS = \
717 systemd_user_sessions_LDADD = \
720 systemd_vconsole_setup_SOURCES = \
723 systemd_vconsole_setup_CFLAGS = \
726 systemd_vconsole_setup_LDADD = \
729 systemd_remount_api_vfs_SOURCES = \
730 src/remount-api-vfs.c \
733 systemd_remount_api_vfs_CFLAGS = \
736 systemd_remount_api_vfs_LDADD = \
739 systemd_cgroups_agent_SOURCES = \
740 src/cgroups-agent.c \
743 systemd_cgroups_agent_CFLAGS = \
747 systemd_cgroups_agent_LDADD = \
748 libsystemd-basic.la \
751 systemd_kmsg_syslogd_SOURCES = \
756 systemd_kmsg_syslogd_CFLAGS = \
759 systemd_kmsg_syslogd_LDADD = \
762 systemctl_SOURCES = \
778 libsystemd-basic.la \
781 systemd_notify_SOURCES = \
786 systemd_notify_LDADD = \
789 systemd_ask_password_SOURCES = \
792 systemd_ask_password_LDADD = \
795 systemd_reply_password_SOURCES = \
798 systemd_reply_password_LDADD = \
801 systemd_readahead_collect_SOURCES = \
802 src/readahead-collect.c \
804 src/readahead-common.c
806 systemd_readahead_collect_CFLAGS = \
809 systemd_readahead_collect_LDADD = \
810 libsystemd-basic.la \
813 systemd_readahead_replay_SOURCES = \
814 src/readahead-replay.c \
816 src/readahead-common.c
818 systemd_readahead_replay_CFLAGS = \
821 systemd_readahead_replay_LDADD = \
822 libsystemd-basic.la \
825 systemd_cgls_SOURCES = \
830 systemd_cgls_CFLAGS = \
833 systemd_cgls_LDADD = \
836 systemadm_SOURCES = \
838 src/systemd-interfaces.vala
844 -Wno-unused-variable \
845 -Wno-unused-function \
847 -Wno-format-nonliteral
849 systemadm_VALAFLAGS = \
859 systemd_gnome_ask_password_agent_SOURCES = \
860 src/gnome-ask-password-agent.vala
862 systemd_gnome_ask_password_agent_CFLAGS = \
866 -Wno-unused-variable \
867 -Wno-unused-function \
869 -Wno-format-nonliteral
871 systemd_gnome_ask_password_agent_VALAFLAGS = \
880 systemd_gnome_ask_password_agent_LDADD = \
884 systemd_tty_ask_password_agent_SOURCES = \
885 src/tty-ask-password-agent.c \
888 systemd_tty_ask_password_agent_LDADD = \
891 pam_systemd_la_SOURCES = \
896 pam_systemd_la_CFLAGS = \
900 pam_systemd_la_LDFLAGS = \
905 -export-symbols-regex '^pam_sm_.*'
907 pam_systemd_la_LIBADD = \
908 libsystemd-basic.la \
912 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
913 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
914 -e 's,@rootbindir\@,$(rootbindir),g' \
915 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
916 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
917 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
918 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
919 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
920 -e 's,@systemunitdir\@,$(systemunitdir),g' \
921 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
922 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
923 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
924 -e 's,@prefix\@,$(prefix),g' \
927 units/%: units/%.in Makefile
930 man/%: man/%.in Makefile
933 %.pc: %.pc.in Makefile
936 M4_PROCESS_SYSTEM = \
937 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
938 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
940 M4_PROCESS_SESSION = \
941 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
942 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
944 units/%: units/%.m4 Makefile
947 units/session/%: units/%.m4 Makefile
948 $(M4_PROCESS_SESSION)
951 $(nodist_systemunit_DATA) \
952 $(nodist_sessionunit_DATA) \
954 ${XML_IN_FILES:.xml.in=.html} \
955 $(pkgconfigdata_DATA)
959 ${systemadm_SOURCES:.vala=.c}
965 --param funcsynopsis.style "'ansi'"
967 XSLTPROC_PROCESS_MAN = \
968 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
969 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
971 XSLTPROC_PROCESS_MAN_IN = \
972 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
973 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
976 XSLTPROC_PROCESS_HTML = \
977 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
978 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
980 XSLTPROC_PROCESS_HTML_IN = \
981 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
982 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
986 $(XSLTPROC_PROCESS_MAN)
988 man/%.1.in: man/%.xml.in
989 $(XSLTPROC_PROCESS_MAN)
992 $(XSLTPROC_PROCESS_MAN)
994 man/%.3.in: man/%.xml.in
995 $(XSLTPROC_PROCESS_MAN)
998 $(XSLTPROC_PROCESS_MAN)
1000 man/%.5.in: man/%.xml.in
1001 $(XSLTPROC_PROCESS_MAN)
1004 $(XSLTPROC_PROCESS_MAN)
1006 man/%.7.in: man/%.xml.in
1007 $(XSLTPROC_PROCESS_MAN_IN)
1010 $(XSLTPROC_PROCESS_MAN)
1012 man/%.8.in: man/%.xml.in
1013 $(XSLTPROC_PROCESS_MAN_IN)
1015 man/%.html: man/%.xml
1016 $(XSLTPROC_PROCESS_HTML)
1018 man/%.html.in: man/%.xml.in
1019 $(XSLTPROC_PROCESS_HTML_IN)
1023 ${nodist_man_MANS:=.in} \
1024 ${XML_FILES:.xml=.html} \
1025 ${XML_IN_FILES:.xml.in=.html.in}
1028 org.freedesktop.systemd1.%.xml: systemd
1029 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1032 $(dbusinterface_DATA)
1035 $(MKDIR_P) -m 0755 \
1036 $(DESTDIR)$(systemunitdir) \
1037 $(DESTDIR)$(sessionunitdir) \
1038 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1039 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1040 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1041 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1042 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1043 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1044 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1045 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1046 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1047 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1048 $(DESTDIR)$(pkgsysconfdir)/system \
1049 $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants \
1050 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1051 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1052 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1053 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1054 $(DESTDIR)$(pkgsysconfdir)/session \
1055 $(DESTDIR)$(sysconfdir)/xdg/systemd
1056 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1058 $(LN_S) $(pkgsysconfdir)/session session )
1059 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1060 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1061 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1062 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1063 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1064 $(LN_S) ../syslog.socket syslog.socket )
1065 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1066 rm -f systemd-update-utmp-runlevel.service && \
1067 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1068 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1069 rm -f systemd-update-utmp-runlevel.service && \
1070 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1071 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1072 rm -f systemd-update-utmp-runlevel.service && \
1073 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1074 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1075 rm -f systemd-update-utmp-runlevel.service && \
1076 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1077 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1078 rm -f systemd-update-utmp-runlevel.service && \
1079 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1080 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1081 rm -f systemd-update-utmp-shutdown.service \
1082 hwclock-save.service \
1083 systemd-random-seed-save.service && \
1084 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1085 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1086 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1087 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1088 rm -f systemd-remount-api-vfs.service \
1090 remount-rootfs.service \
1093 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1094 $(LN_S) ../fsck-root.service fsck-root.service && \
1095 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1096 $(LN_S) ../var-run.mount var-run.mount && \
1097 $(LN_S) ../var-lock.mount var-lock.mount )
1098 ( cd $(DESTDIR)$(sessionunitdir) && \
1099 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1100 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1101 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1102 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1103 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1104 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1105 $(LN_S) $(systemunitdir)/printer.target printer.target)
1106 ( cd $(DESTDIR)$(systemunitdir) && \
1107 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1108 $(LN_S) poweroff.target runlevel0.target && \
1109 $(LN_S) rescue.target runlevel1.target && \
1110 $(LN_S) multi-user.target runlevel2.target && \
1111 $(LN_S) multi-user.target runlevel3.target && \
1112 $(LN_S) multi-user.target runlevel4.target && \
1113 $(LN_S) graphical.target runlevel5.target && \
1114 $(LN_S) reboot.target runlevel6.target )
1115 ( cd $(DESTDIR)$(systemunitdir) && \
1116 rm -f default.target ctrl-alt-del.target && \
1117 $(LN_S) graphical.target default.target && \
1118 $(LN_S) reboot.target ctrl-alt-del.target )
1119 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1120 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1121 $(LN_S) ../getty.target getty.target && \
1122 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1123 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1124 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1125 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1126 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1127 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1128 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1129 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1130 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1131 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1132 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1133 rm -f quotaon.service quotacheck.service && \
1134 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1135 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1136 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1137 rm -f remote-fs.target && \
1138 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1139 ( cd $(DESTDIR)$(pkgsysconfdir)/system/basic.target.wants && \
1140 rm -f hwclock-load.service && \
1141 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1142 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1143 rm -f dev-hugepages.automount \
1144 dev-mqueue.automount \
1145 proc-sys-fs-binfmt_misc.automount \
1146 sys-kernel-debug.automount \
1147 sys-kernel-security.automount \
1148 systemd-vconsole-setup.service \
1149 systemd-modules-load.service \
1150 systemd-random-seed-load.service \
1151 systemd-tmpfiles-setup.service \
1153 systemd-tmpfiles-clean.timer && \
1154 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1155 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1156 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1157 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1158 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1159 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1160 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1161 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1162 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1163 $(LN_S) ../sysctl.service sysctl.service && \
1164 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1165 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1166 rm -f org.freedesktop.systemd1.service && \
1167 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1169 $(MKDIR_P) -m 0755 \
1170 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1171 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1172 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1173 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1174 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1175 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1176 $(DESTDIR)$(systemunitdir)/final.target.wants
1177 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1178 rm -f display-manager.service && \
1179 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1180 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1181 rm -f prefdm.service && \
1182 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1183 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1184 rm -f rc-local.service && \
1185 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1186 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1187 rm -f halt-local.service && \
1188 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1189 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1190 rm -f single.service && \
1191 $(LN_S) $(systemunitdir)/single.service single.service )
1192 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1193 rm -f plymouth-quit.service systemd-ask-password-plymouth.path && \
1194 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
1195 $(LN_S) ../systemd-ask-password-plymouth.path systemd-ask-password-plymouth.path )
1196 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1197 rm -f plymouth-reboot.service && \
1198 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1199 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1200 rm -f plymouth-poweroff.service && \
1201 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1202 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1203 rm -f plymouth-halt.service && \
1204 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1205 ( cd $(DESTDIR)$(systemunitdir) && \
1206 rm -f local.service && \
1207 $(LN_S) rc-local.service local.service )
1208 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1209 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1212 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1213 rm -f display-manager.service && \
1214 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1215 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1216 rm -f xdm.service && \
1217 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1219 if TARGET_DEBIAN_OR_UBUNTU
1220 $(MKDIR_P) -m 0755 \
1221 $(DESTDIR)$(systemunitdir)/umount.target.wants
1222 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1223 rm -f umountfs.service umountnfs.service umountroot.service && \
1224 $(LN_S) ../umountfs.service umountfs.service && \
1225 $(LN_S) ../umountnfs.service umountnfs.service && \
1226 $(LN_S) ../umountroot.service umountroot.service )
1227 ( cd $(DESTDIR)$(systemunitdir) && \
1228 rm -f runlevel5.target && \
1229 $(LN_S) multi-user.target runlevel5.target )
1232 DISTCHECK_CONFIGURE_FLAGS = \
1233 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1234 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1235 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1236 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1237 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1238 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1239 --with-rootdir=$$dc_install_base/$(rootdir)
1241 upload: all distcheck
1242 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1243 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1244 scp man/*.html tango:public/systemd-man/
1247 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1249 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1251 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1252 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount