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\" \
60 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
65 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
66 -DKBD_SETFONT=\"/usr/bin/setfont\" \
67 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
71 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
72 -DKBD_SETFONT=\"/usr/bin/setfont\" \
73 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
76 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
77 -DKBD_SETFONT=\"/bin/setfont\" \
78 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
86 systemd-ask-password \
87 systemd-tty-ask-password-agent
95 systemd-gnome-ask-password-agent
98 rootlibexec_PROGRAMS = \
100 systemd-cgroups-agent \
102 systemd-update-utmp \
103 systemd-random-seed \
106 systemd-modules-load \
107 systemd-remount-api-vfs \
108 systemd-kmsg-syslogd \
109 systemd-vconsole-setup \
110 systemd-reply-password \
111 systemd-readahead-collect \
112 systemd-readahead-replay \
114 systemd-user-sessions \
118 systemd-cryptsetup-generator
131 pamlib_LTLIBRARIES = \
135 dist_pkgsysconf_DATA = \
138 dist_dbuspolicy_DATA = \
139 src/org.freedesktop.systemd1.conf
141 dist_dbussystemservice_DATA = \
142 src/org.freedesktop.systemd1.service
144 dist_udevrules_DATA = \
147 dbusinterface_DATA = \
148 org.freedesktop.systemd1.Manager.xml \
149 org.freedesktop.systemd1.Job.xml \
150 org.freedesktop.systemd1.Unit.xml \
151 org.freedesktop.systemd1.Service.xml \
152 org.freedesktop.systemd1.Socket.xml \
153 org.freedesktop.systemd1.Timer.xml \
154 org.freedesktop.systemd1.Target.xml \
155 org.freedesktop.systemd1.Device.xml \
156 org.freedesktop.systemd1.Mount.xml \
157 org.freedesktop.systemd1.Automount.xml \
158 org.freedesktop.systemd1.Snapshot.xml \
159 org.freedesktop.systemd1.Swap.xml \
160 org.freedesktop.systemd1.Path.xml
162 dist_tmpfiles_DATA = \
163 tmpfiles.d/systemd.conf \
166 dist_systemunit_DATA = \
167 units/emergency.service \
168 units/emergency.target \
169 units/sysinit.target \
174 units/local-fs.target \
175 units/network.target \
176 units/nss-lookup.target \
177 units/mail-transfer-agent.target \
178 units/http-daemon.target \
179 units/poweroff.target \
180 units/reboot.target \
181 units/rescue.target \
182 units/rpcbind.target \
183 units/rtc-set.target \
184 units/shutdown.target \
186 units/umount.target \
187 units/sigpwr.target \
188 units/sockets.target \
191 units/systemd-initctl.socket \
192 units/systemd-logger.socket \
193 units/systemd-shutdownd.socket \
194 units/syslog.socket \
195 units/dev-hugepages.automount \
196 units/dev-hugepages.mount \
197 units/dev-mqueue.automount \
198 units/dev-mqueue.mount \
199 units/proc-sys-fs-binfmt_misc.automount \
200 units/proc-sys-fs-binfmt_misc.mount \
201 units/sys-kernel-debug.automount \
202 units/sys-kernel-debug.mount \
203 units/sys-kernel-security.automount \
204 units/sys-kernel-security.mount \
206 units/var-lock.mount \
207 units/var-run.mount \
208 units/hwclock-load.service \
209 units/hwclock-save.service \
210 units/sysctl.service \
211 units/remount-rootfs.service \
212 units/printer.target \
213 units/bluetooth.target \
214 units/smartcard.target \
215 units/systemd-readahead-done.timer \
216 units/systemd-tmpfiles-clean.timer \
217 units/quotaon.service \
218 units/systemd-ask-password-wall.path \
219 units/systemd-ask-password-plymouth.path
221 nodist_systemunit_DATA = \
222 units/getty@.service \
223 units/serial-getty@.service \
224 units/graphical.target \
225 units/remote-fs.target \
226 units/multi-user.target \
227 units/systemd-initctl.service \
228 units/systemd-logger.service \
229 units/systemd-shutdownd.service \
230 units/systemd-kmsg-syslogd.service \
231 units/systemd-modules-load.service \
232 units/systemd-vconsole-setup.service \
233 units/systemd-remount-api-vfs.service \
234 units/systemd-update-utmp-runlevel.service \
235 units/systemd-update-utmp-shutdown.service \
236 units/systemd-random-seed-save.service \
237 units/systemd-random-seed-load.service \
238 units/systemd-readahead-collect.service \
239 units/systemd-readahead-replay.service \
240 units/systemd-readahead-done.service \
241 units/systemd-tmpfiles-setup.service \
242 units/systemd-tmpfiles-clean.service \
243 units/systemd-user-sessions.service \
244 units/systemd-ask-password-wall.service \
245 units/systemd-ask-password-plymouth.service \
246 units/syslog.target \
248 units/poweroff.service \
249 units/reboot.service \
250 units/kexec.service \
251 units/fsck@.service \
252 units/fsck-root.service \
253 units/quotacheck.service \
256 dist_sessionunit_DATA = \
257 units/session/default.target \
258 units/session/exit.target
260 nodist_sessionunit_DATA = \
261 units/session/remote-fs.target \
262 units/session/exit.service
265 units/getty@.service.m4 \
266 units/serial-getty@.service.m4 \
267 units/graphical.target.m4 \
268 units/multi-user.target.m4 \
269 units/remote-fs.target.m4 \
270 units/rescue.service.m4 \
271 units/systemd-initctl.service.in \
272 units/systemd-logger.service.in \
273 units/systemd-shutdownd.service.in \
274 units/systemd-kmsg-syslogd.service.in \
275 units/systemd-modules-load.service.in \
276 units/systemd-vconsole-setup.service.in \
277 units/systemd-remount-api-vfs.service.in \
278 units/systemd-update-utmp-runlevel.service.in \
279 units/systemd-update-utmp-shutdown.service.in \
280 units/systemd-random-seed-save.service.in \
281 units/systemd-random-seed-load.service.in \
282 units/systemd-readahead-collect.service.in \
283 units/systemd-readahead-replay.service.in \
284 units/systemd-readahead-done.service.in \
285 units/systemd-tmpfiles-setup.service.in \
286 units/systemd-tmpfiles-clean.service.in \
287 units/systemd-user-sessions.service.in \
288 units/systemd-ask-password-wall.service.in \
289 units/systemd-ask-password-plymouth.service.in \
290 units/syslog.target.in \
291 units/halt.service.in \
292 units/poweroff.service.in \
293 units/reboot.service.in \
294 units/kexec.service.in \
295 units/session/exit.service.in \
296 units/fsck@.service.in \
297 units/fsck-root.service.in \
298 units/quotacheck.service.in \
302 dist_systemunit_DATA += \
303 units/fedora/prefdm.service \
304 units/fedora/rc-local.service \
305 units/fedora/halt-local.service \
306 units/fedora/plymouth-start.service \
307 units/fedora/plymouth-read-write.service \
308 units/fedora/plymouth-quit.service \
309 units/fedora/plymouth-reboot.service \
310 units/fedora/plymouth-kexec.service \
311 units/fedora/plymouth-poweroff.service \
312 units/fedora/plymouth-halt.service
315 if TARGET_DEBIAN_OR_UBUNTU
316 dist_systemunit_DATA += \
317 units/debian/umountfs.service \
318 units/debian/umountnfs.service \
319 units/debian/umountroot.service
323 dist_systemunit_DATA += \
324 units/gentoo/xdm.service
328 dist_systemunit_DATA += \
329 units/arch/rc-local.service
341 pkgconfigdata_DATA = \
344 dist_polkitpolicy_DATA = \
345 src/org.freedesktop.systemd1.policy
347 noinst_LTLIBRARIES = \
348 libsystemd-basic.la \
351 libsystemd_basic_la_SOURCES = \
362 libsystemd_basic_la_CFLAGS = \
366 libsystemd_basic_la_LIBADD = \
369 libsystemd_core_la_SOURCES = \
374 src/load-fragment.c \
398 src/dbus-automount.c \
400 src/dbus-snapshot.c \
406 src/hostname-setup.c \
407 src/selinux-setup.c \
408 src/loopback-setup.c \
419 libsystemd_core_la_CFLAGS = \
427 libsystemd_core_la_LIBADD = \
428 libsystemd-basic.la \
435 # This is needed because automake is buggy in how it generates the
436 # rules for C programs, but not Vala programs. We therefore can't
437 # list the .h files as dependencies if we want make dist to work.
440 ${libsystemd_basic_la_SOURCES:.c=.h} \
441 ${libsystemd_core_la_SOURCES:.c=.h} \
447 src/linux/auto_dev-ioctl.h \
448 src/linux/fanotify.h \
459 src/readahead-common.h
466 man/systemd-notify.1 \
470 man/sd_listen_fds.3 \
473 man/systemd.service.5 \
474 man/systemd.socket.5 \
475 man/systemd.mount.5 \
476 man/systemd.automount.5 \
478 man/systemd.timer.5 \
480 man/systemd.target.5 \
481 man/systemd.device.5 \
482 man/systemd.snapshot.5 \
499 man/sd_is_socket_unix.3 \
500 man/sd_is_socket_inet.3 \
504 man/reboot.8: man/halt.8
505 man/poweroff.8: man/halt.8
506 man/sd_is_socket.3: man/sd_is_fifo.3
507 man/sd_is_socket_unix.3: man/sd_is_fifo.3
508 man/sd_is_socket_inet.3: man/sd_is_fifo.3
509 man/sd_notifyf.3: man/sd_notify.3
510 man/init.1: man/systemd.1
517 man/systemd.special.7
520 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
523 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
526 ${XML_FILES:.xml=.html}
528 nodist_noinst_DATA = \
529 ${XML_IN_FILES:.xml.in=.html}
534 ${nodist_man_MANS:=.in} \
535 ${XML_IN_FILES:.xml.in=.html.in}
548 test_engine_SOURCES = \
551 test_engine_CFLAGS = $(systemd_CFLAGS)
552 test_engine_LDADD = $(systemd_LDADD)
554 test_job_type_SOURCES = \
557 test_job_type_CFLAGS = $(systemd_CFLAGS)
558 test_job_type_LDADD = $(systemd_LDADD)
563 test_ns_CFLAGS = $(systemd_CFLAGS)
564 test_ns_LDADD = $(systemd_LDADD)
566 test_loopback_SOURCES = \
567 src/test-loopback.c \
570 test_loopback_LDADD = \
573 test_hostname_SOURCES = \
574 src/test-hostname.c \
577 test_hostname_LDADD = \
580 test_daemon_SOURCES = \
584 test_daemon_LDADD = \
587 test_cgroup_SOURCES = \
591 test_cgroup_CFLAGS = \
594 test_cgroup_LDADD = \
597 test_env_replace_SOURCES = \
598 src/test-env-replace.c
600 test_env_replace_CFLAGS = \
603 test_env_replace_LDADD = \
606 systemd_logger_SOURCES = \
611 systemd_logger_LDADD = \
612 libsystemd-basic.la \
615 systemd_initctl_SOURCES = \
620 systemd_initctl_CFLAGS = \
624 systemd_initctl_LDADD = \
625 libsystemd-basic.la \
628 systemd_update_utmp_SOURCES = \
633 systemd_update_utmp_CFLAGS = \
638 systemd_update_utmp_LDADD = \
639 libsystemd-basic.la \
643 systemd_random_seed_SOURCES = \
646 systemd_random_seed_CFLAGS = \
649 systemd_random_seed_LDADD = \
652 systemd_shutdownd_SOURCES = \
657 systemd_shutdownd_CFLAGS = \
660 systemd_shutdownd_LDADD = \
663 systemd_shutdown_SOURCES = \
668 systemd_shutdown_CFLAGS = \
672 systemd_shutdown_LDADD = \
673 libsystemd-basic.la \
676 systemd_modules_load_SOURCES = \
679 systemd_modules_load_CFLAGS = \
682 systemd_modules_load_LDADD = \
685 systemd_tmpfiles_SOURCES = \
688 systemd_tmpfiles_CFLAGS = \
691 systemd_tmpfiles_LDADD = \
694 systemd_fsck_SOURCES = \
698 systemd_fsck_CFLAGS = \
703 systemd_fsck_LDADD = \
704 libsystemd-basic.la \
708 systemd_quotacheck_SOURCES = \
711 systemd_quotacheck_CFLAGS = \
714 systemd_quotacheck_LDADD = \
717 systemd_cryptsetup_SOURCES = \
720 systemd_cryptsetup_CFLAGS = \
723 systemd_cryptsetup_LDADD = \
726 systemd_cryptsetup_generator_SOURCES = \
727 src/cryptsetup-generator.c \
730 systemd_cryptsetup_generator_CFLAGS = \
733 systemd_cryptsetup_generator_LDADD = \
736 systemd_user_sessions_SOURCES = \
737 src/user-sessions.c \
740 systemd_user_sessions_CFLAGS = \
743 systemd_user_sessions_LDADD = \
746 systemd_vconsole_setup_SOURCES = \
749 systemd_vconsole_setup_CFLAGS = \
752 systemd_vconsole_setup_LDADD = \
755 systemd_remount_api_vfs_SOURCES = \
756 src/remount-api-vfs.c \
759 systemd_remount_api_vfs_CFLAGS = \
762 systemd_remount_api_vfs_LDADD = \
765 systemd_cgroups_agent_SOURCES = \
766 src/cgroups-agent.c \
769 systemd_cgroups_agent_CFLAGS = \
773 systemd_cgroups_agent_LDADD = \
774 libsystemd-basic.la \
777 systemd_kmsg_syslogd_SOURCES = \
782 systemd_kmsg_syslogd_CFLAGS = \
785 systemd_kmsg_syslogd_LDADD = \
788 systemctl_SOURCES = \
804 libsystemd-basic.la \
807 systemd_notify_SOURCES = \
812 systemd_notify_LDADD = \
815 systemd_ask_password_SOURCES = \
818 systemd_ask_password_LDADD = \
821 systemd_reply_password_SOURCES = \
824 systemd_reply_password_LDADD = \
827 systemd_readahead_collect_SOURCES = \
828 src/readahead-collect.c \
830 src/readahead-common.c
832 systemd_readahead_collect_CFLAGS = \
835 systemd_readahead_collect_LDADD = \
836 libsystemd-basic.la \
839 systemd_readahead_replay_SOURCES = \
840 src/readahead-replay.c \
842 src/readahead-common.c
844 systemd_readahead_replay_CFLAGS = \
847 systemd_readahead_replay_LDADD = \
848 libsystemd-basic.la \
851 systemd_cgls_SOURCES = \
856 systemd_cgls_CFLAGS = \
859 systemd_cgls_LDADD = \
862 systemadm_SOURCES = \
864 src/systemd-interfaces.vala
870 -Wno-unused-variable \
871 -Wno-unused-function \
873 -Wno-format-nonliteral
875 systemadm_VALAFLAGS = \
885 systemd_gnome_ask_password_agent_SOURCES = \
886 src/gnome-ask-password-agent.vala
888 systemd_gnome_ask_password_agent_CFLAGS = \
892 -Wno-unused-variable \
893 -Wno-unused-function \
895 -Wno-format-nonliteral
897 systemd_gnome_ask_password_agent_VALAFLAGS = \
906 systemd_gnome_ask_password_agent_LDADD = \
910 systemd_tty_ask_password_agent_SOURCES = \
911 src/tty-ask-password-agent.c \
914 systemd_tty_ask_password_agent_LDADD = \
917 pam_systemd_la_SOURCES = \
922 pam_systemd_la_CFLAGS = \
926 pam_systemd_la_LDFLAGS = \
931 -export-symbols-regex '^pam_sm_.*'
933 pam_systemd_la_LIBADD = \
934 libsystemd-basic.la \
938 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
939 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
940 -e 's,@rootbindir\@,$(rootbindir),g' \
941 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
942 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
943 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
944 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
945 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
946 -e 's,@systemunitdir\@,$(systemunitdir),g' \
947 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
948 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
949 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
950 -e 's,@prefix\@,$(prefix),g' \
953 units/%: units/%.in Makefile
956 man/%: man/%.in Makefile
959 %.pc: %.pc.in Makefile
962 M4_PROCESS_SYSTEM = \
963 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
964 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
966 M4_PROCESS_SESSION = \
967 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
968 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ || rm $@
970 units/%: units/%.m4 Makefile
973 units/session/%: units/%.m4 Makefile
974 $(M4_PROCESS_SESSION)
977 $(nodist_systemunit_DATA) \
978 $(nodist_sessionunit_DATA) \
980 ${XML_IN_FILES:.xml.in=.html} \
981 $(pkgconfigdata_DATA)
985 ${systemadm_SOURCES:.vala=.c}
991 --param funcsynopsis.style "'ansi'"
993 XSLTPROC_PROCESS_MAN = \
994 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
995 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
997 XSLTPROC_PROCESS_MAN_IN = \
998 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
999 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1002 XSLTPROC_PROCESS_HTML = \
1003 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1004 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1006 XSLTPROC_PROCESS_HTML_IN = \
1007 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1008 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1012 $(XSLTPROC_PROCESS_MAN)
1014 man/%.1.in: man/%.xml.in
1015 $(XSLTPROC_PROCESS_MAN)
1018 $(XSLTPROC_PROCESS_MAN)
1020 man/%.3.in: man/%.xml.in
1021 $(XSLTPROC_PROCESS_MAN)
1024 $(XSLTPROC_PROCESS_MAN)
1026 man/%.5.in: man/%.xml.in
1027 $(XSLTPROC_PROCESS_MAN)
1030 $(XSLTPROC_PROCESS_MAN)
1032 man/%.7.in: man/%.xml.in
1033 $(XSLTPROC_PROCESS_MAN_IN)
1036 $(XSLTPROC_PROCESS_MAN)
1038 man/%.8.in: man/%.xml.in
1039 $(XSLTPROC_PROCESS_MAN_IN)
1041 man/%.html: man/%.xml
1042 $(XSLTPROC_PROCESS_HTML)
1044 man/%.html.in: man/%.xml.in
1045 $(XSLTPROC_PROCESS_HTML_IN)
1049 ${nodist_man_MANS:=.in} \
1050 ${XML_FILES:.xml=.html} \
1051 ${XML_IN_FILES:.xml.in=.html.in}
1054 org.freedesktop.systemd1.%.xml: systemd
1055 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1058 $(dbusinterface_DATA)
1061 $(MKDIR_P) -m 0755 \
1062 $(DESTDIR)$(systemunitdir) \
1063 $(DESTDIR)$(sessionunitdir) \
1064 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1065 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1066 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1067 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1068 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1069 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1070 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1071 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1072 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1073 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1074 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1075 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1076 $(DESTDIR)$(pkgsysconfdir)/system \
1077 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1078 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1079 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1080 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1081 $(DESTDIR)$(pkgsysconfdir)/session \
1082 $(DESTDIR)$(sysconfdir)/xdg/systemd
1083 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1085 $(LN_S) $(pkgsysconfdir)/session session )
1086 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1087 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1088 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1089 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1090 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1091 $(LN_S) ../syslog.socket syslog.socket )
1092 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1093 rm -f systemd-update-utmp-runlevel.service && \
1094 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1095 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1096 rm -f systemd-update-utmp-runlevel.service && \
1097 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1098 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1099 rm -f systemd-update-utmp-runlevel.service && \
1100 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1101 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1102 rm -f systemd-update-utmp-runlevel.service && \
1103 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1104 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1105 rm -f systemd-update-utmp-runlevel.service && \
1106 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1107 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1108 rm -f systemd-update-utmp-shutdown.service \
1109 hwclock-save.service \
1110 systemd-random-seed-save.service && \
1111 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1112 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1113 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1114 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1115 rm -f systemd-remount-api-vfs.service \
1117 remount-rootfs.service \
1120 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1121 $(LN_S) ../fsck-root.service fsck-root.service && \
1122 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1123 $(LN_S) ../var-run.mount var-run.mount && \
1124 $(LN_S) ../var-lock.mount var-lock.mount )
1125 ( cd $(DESTDIR)$(sessionunitdir) && \
1126 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1127 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1128 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1129 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1130 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1131 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1132 $(LN_S) $(systemunitdir)/printer.target printer.target)
1133 ( cd $(DESTDIR)$(systemunitdir) && \
1134 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1135 $(LN_S) poweroff.target runlevel0.target && \
1136 $(LN_S) rescue.target runlevel1.target && \
1137 $(LN_S) multi-user.target runlevel2.target && \
1138 $(LN_S) multi-user.target runlevel3.target && \
1139 $(LN_S) multi-user.target runlevel4.target && \
1140 $(LN_S) graphical.target runlevel5.target && \
1141 $(LN_S) reboot.target runlevel6.target )
1142 ( cd $(DESTDIR)$(systemunitdir) && \
1143 rm -f default.target ctrl-alt-del.target && \
1144 $(LN_S) graphical.target default.target && \
1145 $(LN_S) reboot.target ctrl-alt-del.target )
1146 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1147 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1148 $(LN_S) ../getty.target getty.target && \
1149 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1150 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1151 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1152 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1153 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1154 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1155 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1156 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1157 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1158 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1159 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1160 rm -f quotaon.service quotacheck.service && \
1161 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1162 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1163 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1164 rm -f remote-fs.target && \
1165 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1166 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1167 rm -f hwclock-load.service && \
1168 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1169 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1170 rm -f dev-hugepages.automount \
1171 dev-mqueue.automount \
1172 proc-sys-fs-binfmt_misc.automount \
1173 sys-kernel-debug.automount \
1174 sys-kernel-security.automount \
1175 systemd-vconsole-setup.service \
1176 systemd-modules-load.service \
1177 systemd-random-seed-load.service \
1178 systemd-tmpfiles-setup.service \
1180 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1181 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1182 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1183 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1184 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1185 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1186 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1187 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1188 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1189 $(LN_S) ../sysctl.service sysctl.service )
1190 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1191 rm -f systemd-tmpfiles-clean.timer && \
1192 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1193 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1194 rm -f org.freedesktop.systemd1.service && \
1195 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1197 $(MKDIR_P) -m 0755 \
1198 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1199 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1200 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1201 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1202 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1203 $(DESTDIR)$(systemunitdir)/final.target.wants
1204 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1205 rm -f rc-local.service && \
1206 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1207 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1208 rm -f halt-local.service && \
1209 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1210 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1211 rm -f plymouth-start.service systemd-ask-password-plymouth.path plymouth-read-write.service && \
1212 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1213 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service && \
1214 $(LN_S) ../systemd-ask-password-plymouth.path systemd-ask-password-plymouth.path )
1215 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1216 rm -f plymouth-quit.service && \
1217 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1218 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1219 rm -f plymouth-reboot.service && \
1220 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1221 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1222 rm -f plymouth-kexec.service && \
1223 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1224 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1225 rm -f plymouth-poweroff.service && \
1226 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1227 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1228 rm -f plymouth-halt.service && \
1229 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1230 ( cd $(DESTDIR)$(systemunitdir) && \
1231 rm -f display-manager.service && \
1232 $(LN_S) prefdm.service display-manager.service )
1233 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1234 rm -f display-manager.service && \
1235 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1238 ( cd $(DESTDIR)$(systemunitdir) && \
1239 rm -f display-manager.service && \
1240 $(LN_S) xdm.service display-manager.service )
1241 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1242 rm -f display-manager.service && \
1243 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1245 if TARGET_DEBIAN_OR_UBUNTU
1246 $(MKDIR_P) -m 0755 \
1247 $(DESTDIR)$(systemunitdir)/umount.target.wants
1248 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1249 rm -f umountfs.service umountnfs.service umountroot.service && \
1250 $(LN_S) ../umountfs.service umountfs.service && \
1251 $(LN_S) ../umountnfs.service umountnfs.service && \
1252 $(LN_S) ../umountroot.service umountroot.service )
1253 ( cd $(DESTDIR)$(systemunitdir) && \
1254 rm -f runlevel5.target && \
1255 $(LN_S) multi-user.target runlevel5.target )
1258 DISTCHECK_CONFIGURE_FLAGS = \
1259 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1260 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1261 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1262 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1263 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1264 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1265 --with-rootdir=$$dc_install_base/$(rootdir)
1267 upload: all distcheck
1268 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1269 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1270 scp man/*.html tango:public/systemd-man/
1273 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1275 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1277 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-run.mount
1278 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-lock.mount