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 \
126 pamlib_LTLIBRARIES = \
130 dist_pkgsysconf_DATA = \
133 dist_dbuspolicy_DATA = \
134 src/org.freedesktop.systemd1.conf
136 dist_dbussystemservice_DATA = \
137 src/org.freedesktop.systemd1.service
139 dist_udevrules_DATA = \
142 dbusinterface_DATA = \
143 org.freedesktop.systemd1.Manager.xml \
144 org.freedesktop.systemd1.Job.xml \
145 org.freedesktop.systemd1.Unit.xml \
146 org.freedesktop.systemd1.Service.xml \
147 org.freedesktop.systemd1.Socket.xml \
148 org.freedesktop.systemd1.Timer.xml \
149 org.freedesktop.systemd1.Target.xml \
150 org.freedesktop.systemd1.Device.xml \
151 org.freedesktop.systemd1.Mount.xml \
152 org.freedesktop.systemd1.Automount.xml \
153 org.freedesktop.systemd1.Snapshot.xml \
154 org.freedesktop.systemd1.Swap.xml \
155 org.freedesktop.systemd1.Path.xml
157 dist_tmpfiles_DATA = \
158 tmpfiles.d/systemd.conf \
161 dist_systemunit_DATA = \
162 units/emergency.service \
163 units/emergency.target \
168 units/local-fs.target \
169 units/network.target \
170 units/nss-lookup.target \
171 units/mail-transfer-agent.target \
172 units/http-daemon.target \
173 units/poweroff.target \
174 units/reboot.target \
175 units/rescue.target \
176 units/rpcbind.target \
177 units/rtc-set.target \
178 units/shutdown.target \
180 units/umount.target \
181 units/sigpwr.target \
182 units/sockets.target \
185 units/systemd-initctl.socket \
186 units/systemd-logger.socket \
187 units/systemd-shutdownd.socket \
188 units/systemd-kmsg-syslogd.socket \
189 units/dev-hugepages.automount \
190 units/dev-hugepages.mount \
191 units/dev-mqueue.automount \
192 units/dev-mqueue.mount \
193 units/proc-sys-fs-binfmt_misc.automount \
194 units/proc-sys-fs-binfmt_misc.mount \
195 units/sys-kernel-debug.automount \
196 units/sys-kernel-debug.mount \
197 units/sys-kernel-security.automount \
198 units/sys-kernel-security.mount \
200 units/var-lock.mount \
201 units/var-run.mount \
202 units/hwclock-load.service \
203 units/hwclock-save.service \
204 units/sysctl.service \
205 units/remount-rootfs.service \
206 units/printer.target \
207 units/bluetooth.target \
208 units/smartcard.target \
209 units/systemd-readahead-done.timer \
210 units/systemd-tmpfiles-clean.timer \
211 units/quotaon.service
213 nodist_systemunit_DATA = \
214 units/sysinit.target \
215 units/getty@.service \
216 units/serial-getty@.service \
217 units/graphical.target \
218 units/remote-fs.target \
219 units/multi-user.target \
220 units/systemd-initctl.service \
221 units/systemd-logger.service \
222 units/systemd-shutdownd.service \
223 units/systemd-kmsg-syslogd.service \
224 units/systemd-modules-load.service \
225 units/systemd-vconsole-setup.service \
226 units/systemd-remount-api-vfs.service \
227 units/systemd-update-utmp-runlevel.service \
228 units/systemd-update-utmp-shutdown.service \
229 units/systemd-random-seed-save.service \
230 units/systemd-random-seed-load.service \
231 units/systemd-readahead-collect.service \
232 units/systemd-readahead-replay.service \
233 units/systemd-readahead-done.service \
234 units/systemd-tmpfiles-setup.service \
235 units/systemd-tmpfiles-clean.service \
236 units/systemd-user-sessions.service \
237 units/syslog.target \
239 units/poweroff.service \
240 units/reboot.service \
241 units/kexec.service \
242 units/fsck@.service \
243 units/fsck-root.service \
244 units/quotacheck.service
246 dist_sessionunit_DATA = \
247 units/session/default.target \
248 units/session/exit.target
250 nodist_sessionunit_DATA = \
251 units/session/remote-fs.target \
252 units/session/exit.service
255 units/sysinit.target.m4 \
256 units/getty@.service.m4 \
257 units/serial-getty@.service.m4 \
258 units/graphical.target.m4 \
259 units/multi-user.target.m4 \
260 units/remote-fs.target.m4 \
261 units/systemd-initctl.service.in \
262 units/systemd-logger.service.in \
263 units/systemd-shutdownd.service.in \
264 units/systemd-kmsg-syslogd.service.in \
265 units/systemd-modules-load.service.in \
266 units/systemd-vconsole-setup.service.in \
267 units/systemd-remount-api-vfs.service.in \
268 units/systemd-update-utmp-runlevel.service.in \
269 units/systemd-update-utmp-shutdown.service.in \
270 units/systemd-random-seed-save.service.in \
271 units/systemd-random-seed-load.service.in \
272 units/systemd-readahead-collect.service.in \
273 units/systemd-readahead-replay.service.in \
274 units/systemd-readahead-done.service.in \
275 units/systemd-tmpfiles-setup.service.in \
276 units/systemd-tmpfiles-clean.service.in \
277 units/systemd-user-sessions.service.in \
278 units/syslog.target.in \
279 units/halt.service.in \
280 units/poweroff.service.in \
281 units/reboot.service.in \
282 units/kexec.service.in \
283 units/session/exit.service.in \
284 units/fsck@.service.in \
285 units/fsck-root.service.in \
286 units/quotacheck.service.in \
290 dist_systemunit_DATA += \
291 units/fedora/prefdm.service \
292 units/fedora/rc-local.service \
293 units/fedora/halt-local.service \
294 units/fedora/sysinit.service \
295 units/fedora/single.service \
296 units/fedora/plymouth-quit.service \
297 units/fedora/plymouth-reboot.service \
298 units/fedora/plymouth-poweroff.service \
299 units/fedora/plymouth-halt.service
303 dist_systemunit_DATA += \
304 units/debian/fsck.target \
305 units/debian/umountfs.service \
306 units/debian/umountnfs.service \
307 units/debian/umountroot.service
311 dist_systemunit_DATA += \
312 units/suse/fsck.target
316 dist_systemunit_DATA += \
317 units/gentoo/xdm.service
321 dist_systemunit_DATA += \
322 units/arch/sysinit.service \
323 units/arch/rc-local.service
335 pkgconfigdata_DATA = \
338 dist_polkitpolicy_DATA = \
339 src/org.freedesktop.systemd1.policy
341 noinst_LTLIBRARIES = \
342 libsystemd-basic.la \
345 libsystemd_basic_la_SOURCES = \
356 libsystemd_basic_la_CFLAGS = \
360 libsystemd_basic_la_LIBADD = \
363 libsystemd_core_la_SOURCES = \
368 src/load-fragment.c \
392 src/dbus-automount.c \
394 src/dbus-snapshot.c \
400 src/hostname-setup.c \
401 src/loopback-setup.c \
412 libsystemd_core_la_CFLAGS = \
420 libsystemd_core_la_LIBADD = \
421 libsystemd-basic.la \
428 # This is needed because automake is buggy in how it generates the
429 # rules for C programs, but not Vala programs. We therefore can't
430 # list the .h files as dependencies if we want make dist to work.
433 ${libsystemd_basic_la_SOURCES:.c=.h} \
434 ${libsystemd_core_la_SOURCES:.c=.h} \
440 src/linux/auto_dev-ioctl.h \
441 src/linux/fanotify.h \
452 src/readahead-common.h
459 man/systemd-notify.1 \
463 man/sd_listen_fds.3 \
466 man/systemd.service.5 \
467 man/systemd.socket.5 \
468 man/systemd.mount.5 \
469 man/systemd.automount.5 \
471 man/systemd.timer.5 \
473 man/systemd.target.5 \
474 man/systemd.device.5 \
475 man/systemd.snapshot.5 \
491 man/sd_is_socket_unix.3 \
492 man/sd_is_socket_inet.3 \
496 man/reboot.8: man/halt.8
497 man/poweroff.8: man/halt.8
498 man/sd_is_socket.3: man/sd_is_fifo.3
499 man/sd_is_socket_unix.3: man/sd_is_fifo.3
500 man/sd_is_socket_inet.3: man/sd_is_fifo.3
501 man/sd_notifyf.3: man/sd_notify.3
502 man/init.1: man/systemd.1
509 man/systemd.special.7
512 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
515 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
518 ${XML_FILES:.xml=.html}
520 nodist_noinst_DATA = \
521 ${XML_IN_FILES:.xml.in=.html}
526 ${nodist_man_MANS:=.in} \
527 ${XML_IN_FILES:.xml.in=.html.in}
540 test_engine_SOURCES = \
543 test_engine_CFLAGS = $(systemd_CFLAGS)
544 test_engine_LDADD = $(systemd_LDADD)
546 test_job_type_SOURCES = \
549 test_job_type_CFLAGS = $(systemd_CFLAGS)
550 test_job_type_LDADD = $(systemd_LDADD)
555 test_ns_CFLAGS = $(systemd_CFLAGS)
556 test_ns_LDADD = $(systemd_LDADD)
558 test_loopback_SOURCES = \
559 src/test-loopback.c \
562 test_loopback_LDADD = \
565 test_hostname_SOURCES = \
566 src/test-hostname.c \
569 test_hostname_LDADD = \
572 test_daemon_SOURCES = \
576 test_daemon_LDADD = \
579 test_cgroup_SOURCES = \
583 test_cgroup_CFLAGS = \
586 test_cgroup_LDADD = \
589 test_env_replace_SOURCES = \
590 src/test-env-replace.c
592 test_env_replace_CFLAGS = \
595 test_env_replace_LDADD = \
598 systemd_logger_SOURCES = \
603 systemd_logger_LDADD = \
604 libsystemd-basic.la \
607 systemd_initctl_SOURCES = \
612 systemd_initctl_CFLAGS = \
616 systemd_initctl_LDADD = \
617 libsystemd-basic.la \
620 systemd_update_utmp_SOURCES = \
625 systemd_update_utmp_CFLAGS = \
630 systemd_update_utmp_LDADD = \
631 libsystemd-basic.la \
635 systemd_random_seed_SOURCES = \
638 systemd_random_seed_CFLAGS = \
641 systemd_random_seed_LDADD = \
644 systemd_shutdownd_SOURCES = \
649 systemd_shutdownd_CFLAGS = \
652 systemd_shutdownd_LDADD = \
655 systemd_shutdown_SOURCES = \
660 systemd_shutdown_CFLAGS = \
664 systemd_shutdown_LDADD = \
665 libsystemd-basic.la \
668 systemd_modules_load_SOURCES = \
671 systemd_modules_load_CFLAGS = \
674 systemd_modules_load_LDADD = \
677 systemd_tmpfiles_SOURCES = \
680 systemd_tmpfiles_CFLAGS = \
683 systemd_tmpfiles_LDADD = \
686 systemd_fsck_SOURCES = \
690 systemd_fsck_CFLAGS = \
695 systemd_fsck_LDADD = \
696 libsystemd-basic.la \
700 systemd_quotacheck_SOURCES = \
703 systemd_quotacheck_CFLAGS = \
706 systemd_quotacheck_LDADD = \
709 systemd_user_sessions_SOURCES = \
710 src/user-sessions.c \
713 systemd_user_sessions_CFLAGS = \
716 systemd_user_sessions_LDADD = \
719 systemd_vconsole_setup_SOURCES = \
722 systemd_vconsole_setup_CFLAGS = \
725 systemd_vconsole_setup_LDADD = \
728 systemd_remount_api_vfs_SOURCES = \
729 src/remount-api-vfs.c \
732 systemd_remount_api_vfs_CFLAGS = \
735 systemd_remount_api_vfs_LDADD = \
738 systemd_cgroups_agent_SOURCES = \
739 src/cgroups-agent.c \
742 systemd_cgroups_agent_CFLAGS = \
746 systemd_cgroups_agent_LDADD = \
747 libsystemd-basic.la \
750 systemd_kmsg_syslogd_SOURCES = \
755 systemd_kmsg_syslogd_CFLAGS = \
758 systemd_kmsg_syslogd_LDADD = \
761 systemctl_SOURCES = \
777 libsystemd-basic.la \
780 systemd_notify_SOURCES = \
785 systemd_notify_LDADD = \
788 systemd_ask_password_SOURCES = \
791 systemd_ask_password_LDADD = \
794 systemd_reply_password_SOURCES = \
797 systemd_reply_password_LDADD = \
800 systemd_readahead_collect_SOURCES = \
801 src/readahead-collect.c \
803 src/readahead-common.c
805 systemd_readahead_collect_CFLAGS = \
808 systemd_readahead_collect_LDADD = \
809 libsystemd-basic.la \
812 systemd_readahead_replay_SOURCES = \
813 src/readahead-replay.c \
815 src/readahead-common.c
817 systemd_readahead_replay_CFLAGS = \
820 systemd_readahead_replay_LDADD = \
821 libsystemd-basic.la \
824 systemd_cgls_SOURCES = \
829 systemd_cgls_CFLAGS = \
832 systemd_cgls_LDADD = \
835 systemadm_SOURCES = \
837 src/systemd-interfaces.vala
843 -Wno-unused-variable \
844 -Wno-unused-function \
846 -Wno-format-nonliteral
848 systemadm_VALAFLAGS = \
858 systemd_ask_password_agent_SOURCES = \
859 src/ask-password-agent.vala
861 systemd_ask_password_agent_CFLAGS = \
865 -Wno-unused-variable \
866 -Wno-unused-function \
868 -Wno-format-nonliteral
870 systemd_ask_password_agent_VALAFLAGS = \
879 systemd_ask_password_agent_LDADD = \
883 pam_systemd_la_SOURCES = \
888 pam_systemd_la_CFLAGS = \
892 pam_systemd_la_LDFLAGS = \
897 -export-symbols-regex '^pam_sm_.*'
899 pam_systemd_la_LIBADD = \
900 libsystemd-basic.la \
904 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
905 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
906 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
907 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
908 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
909 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
910 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
911 -e 's,@systemunitdir\@,$(systemunitdir),g' \
912 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
913 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
914 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
915 -e 's,@prefix\@,$(prefix),g' \
918 units/%: units/%.in Makefile
921 man/%: man/%.in Makefile
924 %.pc: %.pc.in Makefile
927 M4_PROCESS_SYSTEM = \
928 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
929 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
931 M4_PROCESS_SESSION = \
932 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
933 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
935 units/%: units/%.m4 Makefile
938 units/session/%: units/%.m4 Makefile
939 $(M4_PROCESS_SESSION)
942 $(nodist_systemunit_DATA) \
943 $(nodist_sessionunit_DATA) \
945 ${XML_IN_FILES:.xml.in=.html} \
946 $(pkgconfigdata_DATA)
950 ${systemadm_SOURCES:.vala=.c}
956 --param funcsynopsis.style "'ansi'"
958 XSLTPROC_PROCESS_MAN = \
959 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
960 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
962 XSLTPROC_PROCESS_MAN_IN = \
963 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
964 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
967 XSLTPROC_PROCESS_HTML = \
968 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
969 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
971 XSLTPROC_PROCESS_HTML_IN = \
972 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
973 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
977 $(XSLTPROC_PROCESS_MAN)
979 man/%.1.in: man/%.xml.in
980 $(XSLTPROC_PROCESS_MAN)
983 $(XSLTPROC_PROCESS_MAN)
985 man/%.3.in: man/%.xml.in
986 $(XSLTPROC_PROCESS_MAN)
989 $(XSLTPROC_PROCESS_MAN)
991 man/%.5.in: man/%.xml.in
992 $(XSLTPROC_PROCESS_MAN)
995 $(XSLTPROC_PROCESS_MAN)
997 man/%.7.in: man/%.xml.in
998 $(XSLTPROC_PROCESS_MAN_IN)
1001 $(XSLTPROC_PROCESS_MAN)
1003 man/%.8.in: man/%.xml.in
1004 $(XSLTPROC_PROCESS_MAN_IN)
1006 man/%.html: man/%.xml
1007 $(XSLTPROC_PROCESS_HTML)
1009 man/%.html.in: man/%.xml.in
1010 $(XSLTPROC_PROCESS_HTML_IN)
1014 ${nodist_man_MANS:=.in} \
1015 ${XML_FILES:.xml=.html} \
1016 ${XML_IN_FILES:.xml.in=.html.in}
1019 org.freedesktop.systemd1.%.xml: systemd
1020 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1023 $(dbusinterface_DATA)
1026 $(MKDIR_P) -m 0755 \
1027 $(DESTDIR)$(systemunitdir) \
1028 $(DESTDIR)$(sessionunitdir) \
1029 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1030 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1031 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1032 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1033 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1034 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1035 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1036 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1037 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1038 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1039 $(DESTDIR)$(pkgsysconfdir)/system \
1040 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1041 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1042 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
1043 $(DESTDIR)$(pkgsysconfdir)/session \
1044 $(DESTDIR)$(sysconfdir)/xdg/systemd
1045 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1047 $(LN_S) $(pkgsysconfdir)/session session )
1048 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1049 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
1050 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1051 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1052 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
1053 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1054 rm -f systemd-update-utmp-runlevel.service && \
1055 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1056 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1057 rm -f systemd-update-utmp-runlevel.service && \
1058 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1059 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1060 rm -f systemd-update-utmp-runlevel.service && \
1061 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1062 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1063 rm -f systemd-update-utmp-runlevel.service && \
1064 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1065 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.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)/shutdown.target.wants && \
1069 rm -f systemd-update-utmp-shutdown.service \
1070 hwclock-save.service \
1071 systemd-random-seed-save.service && \
1072 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1073 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1074 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1075 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1076 rm -f systemd-remount-api-vfs.service \
1077 remount-rootfs.service \
1080 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1081 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1082 $(LN_S) ../var-run.mount var-run.mount && \
1083 $(LN_S) ../var-lock.mount var-lock.mount )
1084 ( cd $(DESTDIR)$(sessionunitdir) && \
1085 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1086 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1087 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1088 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1089 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1090 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1091 $(LN_S) $(systemunitdir)/printer.target printer.target)
1092 ( cd $(DESTDIR)$(systemunitdir) && \
1093 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1094 $(LN_S) poweroff.target runlevel0.target && \
1095 $(LN_S) rescue.target runlevel1.target && \
1096 $(LN_S) multi-user.target runlevel2.target && \
1097 $(LN_S) multi-user.target runlevel3.target && \
1098 $(LN_S) multi-user.target runlevel4.target && \
1099 $(LN_S) graphical.target runlevel5.target && \
1100 $(LN_S) reboot.target runlevel6.target )
1101 ( cd $(DESTDIR)$(systemunitdir) && \
1102 rm -f default.target ctrl-alt-del.target && \
1103 $(LN_S) graphical.target default.target && \
1104 $(LN_S) reboot.target ctrl-alt-del.target )
1105 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1106 rm -f getty.target systemd-user-sessions.service && \
1107 $(LN_S) ../getty.target getty.target && \
1108 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service )
1109 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1110 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1111 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1112 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1113 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1114 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1115 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1116 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1117 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1118 rm -f remote-fs.target && \
1119 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1120 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1121 rm -f dev-hugepages.automount \
1122 dev-mqueue.automount \
1123 proc-sys-fs-binfmt_misc.automount \
1124 sys-kernel-debug.automount \
1125 sys-kernel-security.automount \
1126 systemd-vconsole-setup.service \
1127 systemd-modules-load.service \
1128 systemd-random-seed-load.service \
1129 systemd-tmpfiles-setup.service \
1131 systemd-tmpfiles-clean.timer && \
1132 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1133 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1134 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1135 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1136 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1137 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1138 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1139 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1140 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1141 $(LN_S) ../sysctl.service sysctl.service && \
1142 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1143 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1144 rm -f org.freedesktop.systemd1.service && \
1145 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1147 $(MKDIR_P) -m 0755 \
1148 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1149 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1150 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1151 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1152 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1153 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1154 $(DESTDIR)$(systemunitdir)/final.target.wants
1155 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1156 rm -f display-manager.service && \
1157 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1158 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1159 rm -f prefdm.service && \
1160 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1161 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1162 rm -f rc-local.service && \
1163 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1164 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1165 rm -f halt-local.service && \
1166 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1167 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1168 rm -f single.service && \
1169 $(LN_S) $(systemunitdir)/single.service single.service )
1170 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1171 rm -f plymouth-quit.service && \
1172 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1173 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1174 rm -f plymouth-reboot.service && \
1175 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1176 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1177 rm -f plymouth-poweroff.service && \
1178 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1179 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1180 rm -f plymouth-halt.service && \
1181 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1182 ( cd $(DESTDIR)$(systemunitdir) && \
1183 rm -f local.service && \
1184 $(LN_S) rc-local.service local.service )
1185 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1186 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1189 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1190 rm -f display-manager.service && \
1191 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1192 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1193 rm -f xdm.service && \
1194 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1197 $(MKDIR_P) -m 0755 \
1198 $(DESTDIR)$(systemunitdir)/umount.target.wants
1199 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1200 rm -f umountfs.service umountnfs.service umountroot.service && \
1201 $(LN_S) ../umountfs.service umountfs.service && \
1202 $(LN_S) ../umountnfs.service umountnfs.service && \
1203 $(LN_S) ../umountroot.service umountroot.service )
1204 ( cd $(DESTDIR)$(systemunitdir) && \
1205 rm -f runlevel5.target && \
1206 $(LN_S) multi-user.target runlevel5.target )
1210 ( cd $(DESTDIR)$(systemunitdir) && \
1211 rm -f fsck.target && \
1212 $(LN_S) sysinit.target fsck.target )
1216 DISTCHECK_CONFIGURE_FLAGS = \
1217 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1218 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1219 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1220 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1221 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1222 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1223 --with-rootdir=$$dc_install_base/$(rootdir)
1225 upload: all distcheck
1226 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1227 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1228 scp man/*.html tango:public/systemd-man/
1231 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1233 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1235 rm /lib/systemd/system/local-fs.target.wants/var-run.mount
1236 rm /lib/systemd/system/local-fs.target.wants/var-lock.mount