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
29 bashcompletiondir=${sysconfdir}/bash_completion.d
31 # Our own, non-special dirs
32 pkgsysconfdir=$(sysconfdir)/systemd
33 sessionunitdir=$(pkgdatadir)/session
34 tmpfilesdir=$(sysconfdir)/tmpfiles.d
36 # And these are the special ones for /
38 rootbindir=$(rootdir)/bin
39 rootsbindir=$(rootdir)/sbin
40 rootlibexecdir=$(rootdir)/lib/systemd
41 systemunitdir=$(rootdir)/lib/systemd/system
44 -include $(top_builddir)/config.h \
45 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
46 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
47 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
48 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
49 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
50 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
51 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
52 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
53 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
54 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
55 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
56 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
57 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
58 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
59 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
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 \
133 pamlib_LTLIBRARIES = \
137 dist_pkgsysconf_DATA = \
140 dist_dbuspolicy_DATA = \
141 src/org.freedesktop.systemd1.conf
143 dist_dbussystemservice_DATA = \
144 src/org.freedesktop.systemd1.service
146 dist_udevrules_DATA = \
149 dbusinterface_DATA = \
150 org.freedesktop.systemd1.Manager.xml \
151 org.freedesktop.systemd1.Job.xml \
152 org.freedesktop.systemd1.Unit.xml \
153 org.freedesktop.systemd1.Service.xml \
154 org.freedesktop.systemd1.Socket.xml \
155 org.freedesktop.systemd1.Timer.xml \
156 org.freedesktop.systemd1.Target.xml \
157 org.freedesktop.systemd1.Device.xml \
158 org.freedesktop.systemd1.Mount.xml \
159 org.freedesktop.systemd1.Automount.xml \
160 org.freedesktop.systemd1.Snapshot.xml \
161 org.freedesktop.systemd1.Swap.xml \
162 org.freedesktop.systemd1.Path.xml
164 dist_bashcompletion_DATA = \
165 src/systemctl-bash-completion.sh
167 dist_tmpfiles_DATA = \
168 tmpfiles.d/systemd.conf \
171 dist_systemunit_DATA = \
172 units/emergency.service \
173 units/emergency.target \
174 units/sysinit.target \
179 units/local-fs.target \
180 units/network.target \
181 units/nss-lookup.target \
182 units/mail-transfer-agent.target \
183 units/http-daemon.target \
184 units/poweroff.target \
185 units/reboot.target \
186 units/rescue.target \
187 units/rpcbind.target \
188 units/rtc-set.target \
189 units/shutdown.target \
191 units/umount.target \
192 units/sigpwr.target \
193 units/sockets.target \
196 units/systemd-initctl.socket \
197 units/systemd-logger.socket \
198 units/systemd-shutdownd.socket \
199 units/syslog.socket \
200 units/dev-hugepages.automount \
201 units/dev-hugepages.mount \
202 units/dev-mqueue.automount \
203 units/dev-mqueue.mount \
204 units/proc-sys-fs-binfmt_misc.automount \
205 units/proc-sys-fs-binfmt_misc.mount \
206 units/sys-kernel-debug.automount \
207 units/sys-kernel-debug.mount \
208 units/sys-kernel-security.automount \
209 units/sys-kernel-security.mount \
211 units/var-lock.mount \
212 units/var-run.mount \
213 units/hwclock-load.service \
214 units/hwclock-save.service \
215 units/sysctl.service \
216 units/remount-rootfs.service \
217 units/printer.target \
218 units/bluetooth.target \
219 units/smartcard.target \
220 units/systemd-readahead-done.timer \
221 units/systemd-tmpfiles-clean.timer \
222 units/quotaon.service \
223 units/systemd-ask-password-wall.path \
224 units/systemd-ask-password-plymouth.path
226 nodist_systemunit_DATA = \
227 units/getty@.service \
228 units/serial-getty@.service \
229 units/graphical.target \
230 units/remote-fs.target \
231 units/multi-user.target \
232 units/systemd-initctl.service \
233 units/systemd-logger.service \
234 units/systemd-shutdownd.service \
235 units/systemd-kmsg-syslogd.service \
236 units/systemd-modules-load.service \
237 units/systemd-vconsole-setup.service \
238 units/systemd-remount-api-vfs.service \
239 units/systemd-update-utmp-runlevel.service \
240 units/systemd-update-utmp-shutdown.service \
241 units/systemd-random-seed-save.service \
242 units/systemd-random-seed-load.service \
243 units/systemd-readahead-collect.service \
244 units/systemd-readahead-replay.service \
245 units/systemd-readahead-done.service \
246 units/systemd-tmpfiles-setup.service \
247 units/systemd-tmpfiles-clean.service \
248 units/systemd-user-sessions.service \
249 units/systemd-ask-password-wall.service \
250 units/systemd-ask-password-plymouth.service \
251 units/syslog.target \
253 units/poweroff.service \
254 units/reboot.service \
255 units/kexec.service \
256 units/fsck@.service \
257 units/fsck-root.service \
258 units/quotacheck.service \
261 dist_sessionunit_DATA = \
262 units/session/default.target \
263 units/session/exit.target
265 nodist_sessionunit_DATA = \
266 units/session/remote-fs.target \
267 units/session/exit.service
270 units/getty@.service.m4 \
271 units/serial-getty@.service.m4 \
272 units/graphical.target.m4 \
273 units/multi-user.target.m4 \
274 units/remote-fs.target.m4 \
275 units/rescue.service.m4 \
276 units/systemd-initctl.service.in \
277 units/systemd-logger.service.in \
278 units/systemd-shutdownd.service.in \
279 units/systemd-kmsg-syslogd.service.in \
280 units/systemd-modules-load.service.in \
281 units/systemd-vconsole-setup.service.in \
282 units/systemd-remount-api-vfs.service.in \
283 units/systemd-update-utmp-runlevel.service.in \
284 units/systemd-update-utmp-shutdown.service.in \
285 units/systemd-random-seed-save.service.in \
286 units/systemd-random-seed-load.service.in \
287 units/systemd-readahead-collect.service.in \
288 units/systemd-readahead-replay.service.in \
289 units/systemd-readahead-done.service.in \
290 units/systemd-tmpfiles-setup.service.in \
291 units/systemd-tmpfiles-clean.service.in \
292 units/systemd-user-sessions.service.in \
293 units/systemd-ask-password-wall.service.in \
294 units/systemd-ask-password-plymouth.service.in \
295 units/syslog.target.in \
296 units/halt.service.in \
297 units/poweroff.service.in \
298 units/reboot.service.in \
299 units/kexec.service.in \
300 units/session/exit.service.in \
301 units/fsck@.service.in \
302 units/fsck-root.service.in \
303 units/quotacheck.service.in \
307 dist_systemunit_DATA += \
308 units/fedora/prefdm.service \
309 units/fedora/rc-local.service \
310 units/fedora/halt-local.service \
311 units/fedora/plymouth-start.service \
312 units/fedora/plymouth-read-write.service \
313 units/fedora/plymouth-quit.service \
314 units/fedora/plymouth-reboot.service \
315 units/fedora/plymouth-kexec.service \
316 units/fedora/plymouth-poweroff.service \
317 units/fedora/plymouth-halt.service
320 if TARGET_DEBIAN_OR_UBUNTU
321 dist_systemunit_DATA += \
322 units/debian/umountfs.service \
323 units/debian/umountnfs.service \
324 units/debian/umountroot.service
328 dist_systemunit_DATA += \
329 units/gentoo/xdm.service
333 dist_systemunit_DATA += \
334 units/arch/rc-local.service
346 pkgconfigdata_DATA = \
349 dist_polkitpolicy_DATA = \
350 src/org.freedesktop.systemd1.policy
352 noinst_LTLIBRARIES = \
353 libsystemd-basic.la \
356 libsystemd_basic_la_SOURCES = \
367 libsystemd_basic_la_CFLAGS = \
371 libsystemd_basic_la_LIBADD = \
374 libsystemd_core_la_SOURCES = \
379 src/load-fragment.c \
403 src/dbus-automount.c \
405 src/dbus-snapshot.c \
411 src/hostname-setup.c \
412 src/selinux-setup.c \
413 src/loopback-setup.c \
424 libsystemd_core_la_CFLAGS = \
432 libsystemd_core_la_LIBADD = \
433 libsystemd-basic.la \
440 # This is needed because automake is buggy in how it generates the
441 # rules for C programs, but not Vala programs. We therefore can't
442 # list the .h files as dependencies if we want make dist to work.
445 ${libsystemd_basic_la_SOURCES:.c=.h} \
446 ${libsystemd_core_la_SOURCES:.c=.h} \
452 src/linux/auto_dev-ioctl.h \
453 src/linux/fanotify.h \
464 src/readahead-common.h
471 man/systemd-notify.1 \
475 man/sd_listen_fds.3 \
478 man/systemd.service.5 \
479 man/systemd.socket.5 \
480 man/systemd.mount.5 \
481 man/systemd.automount.5 \
483 man/systemd.timer.5 \
485 man/systemd.target.5 \
486 man/systemd.device.5 \
487 man/systemd.snapshot.5 \
504 man/sd_is_socket_unix.3 \
505 man/sd_is_socket_inet.3 \
509 man/reboot.8: man/halt.8
510 man/poweroff.8: man/halt.8
511 man/sd_is_socket.3: man/sd_is_fifo.3
512 man/sd_is_socket_unix.3: man/sd_is_fifo.3
513 man/sd_is_socket_inet.3: man/sd_is_fifo.3
514 man/sd_notifyf.3: man/sd_notify.3
515 man/init.1: man/systemd.1
522 man/systemd.special.7
525 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
528 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
531 ${XML_FILES:.xml=.html}
533 nodist_noinst_DATA = \
534 ${XML_IN_FILES:.xml.in=.html}
539 ${nodist_man_MANS:=.in} \
540 ${XML_IN_FILES:.xml.in=.html.in}
553 test_engine_SOURCES = \
556 test_engine_CFLAGS = $(systemd_CFLAGS)
557 test_engine_LDADD = $(systemd_LDADD)
559 test_job_type_SOURCES = \
562 test_job_type_CFLAGS = $(systemd_CFLAGS)
563 test_job_type_LDADD = $(systemd_LDADD)
568 test_ns_CFLAGS = $(systemd_CFLAGS)
569 test_ns_LDADD = $(systemd_LDADD)
571 test_loopback_SOURCES = \
572 src/test-loopback.c \
575 test_loopback_LDADD = \
578 test_hostname_SOURCES = \
579 src/test-hostname.c \
582 test_hostname_LDADD = \
585 test_daemon_SOURCES = \
589 test_daemon_LDADD = \
592 test_cgroup_SOURCES = \
596 test_cgroup_CFLAGS = \
599 test_cgroup_LDADD = \
602 test_env_replace_SOURCES = \
603 src/test-env-replace.c
605 test_env_replace_CFLAGS = \
608 test_env_replace_LDADD = \
611 systemd_logger_SOURCES = \
616 systemd_logger_LDADD = \
617 libsystemd-basic.la \
620 systemd_initctl_SOURCES = \
625 systemd_initctl_CFLAGS = \
629 systemd_initctl_LDADD = \
630 libsystemd-basic.la \
633 systemd_update_utmp_SOURCES = \
638 systemd_update_utmp_CFLAGS = \
643 systemd_update_utmp_LDADD = \
644 libsystemd-basic.la \
648 systemd_random_seed_SOURCES = \
651 systemd_random_seed_CFLAGS = \
654 systemd_random_seed_LDADD = \
657 systemd_shutdownd_SOURCES = \
662 systemd_shutdownd_CFLAGS = \
665 systemd_shutdownd_LDADD = \
668 systemd_shutdown_SOURCES = \
673 systemd_shutdown_CFLAGS = \
677 systemd_shutdown_LDADD = \
678 libsystemd-basic.la \
681 systemd_modules_load_SOURCES = \
684 systemd_modules_load_CFLAGS = \
687 systemd_modules_load_LDADD = \
690 systemd_tmpfiles_SOURCES = \
693 systemd_tmpfiles_CFLAGS = \
696 systemd_tmpfiles_LDADD = \
699 systemd_fsck_SOURCES = \
703 systemd_fsck_CFLAGS = \
708 systemd_fsck_LDADD = \
709 libsystemd-basic.la \
713 systemd_quotacheck_SOURCES = \
716 systemd_quotacheck_CFLAGS = \
719 systemd_quotacheck_LDADD = \
722 systemd_timestamp_SOURCES = \
725 systemd_timestamp_CFLAGS = \
728 systemd_timestamp_LDADD = \
731 systemd_ac_power_SOURCES = \
734 systemd_ac_power_CFLAGS = \
738 systemd_ac_power_LDADD = \
739 libsystemd-basic.la \
742 systemd_cryptsetup_SOURCES = \
745 systemd_cryptsetup_CFLAGS = \
748 systemd_cryptsetup_LDADD = \
751 systemd_cryptsetup_generator_SOURCES = \
752 src/cryptsetup-generator.c \
755 systemd_cryptsetup_generator_CFLAGS = \
758 systemd_cryptsetup_generator_LDADD = \
761 systemd_user_sessions_SOURCES = \
762 src/user-sessions.c \
765 systemd_user_sessions_CFLAGS = \
768 systemd_user_sessions_LDADD = \
771 systemd_vconsole_setup_SOURCES = \
774 systemd_vconsole_setup_CFLAGS = \
777 systemd_vconsole_setup_LDADD = \
780 systemd_remount_api_vfs_SOURCES = \
781 src/remount-api-vfs.c \
784 systemd_remount_api_vfs_CFLAGS = \
787 systemd_remount_api_vfs_LDADD = \
790 systemd_cgroups_agent_SOURCES = \
791 src/cgroups-agent.c \
794 systemd_cgroups_agent_CFLAGS = \
798 systemd_cgroups_agent_LDADD = \
799 libsystemd-basic.la \
802 systemd_kmsg_syslogd_SOURCES = \
807 systemd_kmsg_syslogd_CFLAGS = \
810 systemd_kmsg_syslogd_LDADD = \
813 systemctl_SOURCES = \
829 libsystemd-basic.la \
832 systemd_notify_SOURCES = \
837 systemd_notify_LDADD = \
840 systemd_ask_password_SOURCES = \
843 systemd_ask_password_LDADD = \
846 systemd_reply_password_SOURCES = \
849 systemd_reply_password_LDADD = \
852 systemd_readahead_collect_SOURCES = \
853 src/readahead-collect.c \
855 src/readahead-common.c
857 systemd_readahead_collect_CFLAGS = \
860 systemd_readahead_collect_LDADD = \
861 libsystemd-basic.la \
864 systemd_readahead_replay_SOURCES = \
865 src/readahead-replay.c \
867 src/readahead-common.c
869 systemd_readahead_replay_CFLAGS = \
872 systemd_readahead_replay_LDADD = \
873 libsystemd-basic.la \
876 systemd_cgls_SOURCES = \
881 systemd_cgls_CFLAGS = \
884 systemd_cgls_LDADD = \
887 systemadm_SOURCES = \
889 src/systemd-interfaces.vala
895 -Wno-unused-variable \
896 -Wno-unused-function \
898 -Wno-format-nonliteral
900 systemadm_VALAFLAGS = \
910 systemd_gnome_ask_password_agent_SOURCES = \
911 src/gnome-ask-password-agent.vala
913 systemd_gnome_ask_password_agent_CFLAGS = \
917 -Wno-unused-variable \
918 -Wno-unused-function \
920 -Wno-format-nonliteral
922 systemd_gnome_ask_password_agent_VALAFLAGS = \
931 systemd_gnome_ask_password_agent_LDADD = \
935 systemd_tty_ask_password_agent_SOURCES = \
936 src/tty-ask-password-agent.c \
939 systemd_tty_ask_password_agent_LDADD = \
942 pam_systemd_la_SOURCES = \
947 pam_systemd_la_CFLAGS = \
951 pam_systemd_la_LDFLAGS = \
956 -export-symbols-regex '^pam_sm_.*'
958 pam_systemd_la_LIBADD = \
959 libsystemd-basic.la \
963 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
964 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
965 -e 's,@rootbindir\@,$(rootbindir),g' \
966 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
967 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
968 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
969 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
970 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
971 -e 's,@systemunitdir\@,$(systemunitdir),g' \
972 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
973 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
974 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
975 -e 's,@prefix\@,$(prefix),g' \
978 units/%: units/%.in Makefile
981 man/%: man/%.in Makefile
984 %.pc: %.pc.in Makefile
987 M4_PROCESS_SYSTEM = \
988 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
989 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
991 M4_PROCESS_SESSION = \
992 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
993 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ || rm $@
995 units/%: units/%.m4 Makefile
998 units/session/%: units/%.m4 Makefile
999 $(M4_PROCESS_SESSION)
1002 $(nodist_systemunit_DATA) \
1003 $(nodist_sessionunit_DATA) \
1004 $(nodist_man_MANS) \
1005 ${XML_IN_FILES:.xml.in=.html} \
1006 $(pkgconfigdata_DATA)
1010 ${systemadm_SOURCES:.vala=.c}
1016 --param funcsynopsis.style "'ansi'"
1018 XSLTPROC_PROCESS_MAN = \
1019 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1020 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1022 XSLTPROC_PROCESS_MAN_IN = \
1023 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1024 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1027 XSLTPROC_PROCESS_HTML = \
1028 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1029 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1031 XSLTPROC_PROCESS_HTML_IN = \
1032 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1033 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1037 $(XSLTPROC_PROCESS_MAN)
1039 man/%.1.in: man/%.xml.in
1040 $(XSLTPROC_PROCESS_MAN)
1043 $(XSLTPROC_PROCESS_MAN)
1045 man/%.3.in: man/%.xml.in
1046 $(XSLTPROC_PROCESS_MAN)
1049 $(XSLTPROC_PROCESS_MAN)
1051 man/%.5.in: man/%.xml.in
1052 $(XSLTPROC_PROCESS_MAN)
1055 $(XSLTPROC_PROCESS_MAN)
1057 man/%.7.in: man/%.xml.in
1058 $(XSLTPROC_PROCESS_MAN_IN)
1061 $(XSLTPROC_PROCESS_MAN)
1063 man/%.8.in: man/%.xml.in
1064 $(XSLTPROC_PROCESS_MAN_IN)
1066 man/%.html: man/%.xml
1067 $(XSLTPROC_PROCESS_HTML)
1069 man/%.html.in: man/%.xml.in
1070 $(XSLTPROC_PROCESS_HTML_IN)
1074 ${nodist_man_MANS:=.in} \
1075 ${XML_FILES:.xml=.html} \
1076 ${XML_IN_FILES:.xml.in=.html.in}
1079 org.freedesktop.systemd1.%.xml: systemd
1080 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1083 $(dbusinterface_DATA)
1086 $(MKDIR_P) -m 0755 \
1087 $(DESTDIR)$(systemunitdir) \
1088 $(DESTDIR)$(sessionunitdir) \
1089 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1090 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1091 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1092 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1093 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1094 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1095 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1096 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1097 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1098 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1099 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1100 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1101 $(DESTDIR)$(pkgsysconfdir)/system \
1102 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1103 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1104 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1105 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1106 $(DESTDIR)$(pkgsysconfdir)/session \
1107 $(DESTDIR)$(sysconfdir)/xdg/systemd
1108 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1110 $(LN_S) $(pkgsysconfdir)/session session )
1111 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1112 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1113 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1114 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1115 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1116 $(LN_S) ../syslog.socket syslog.socket )
1117 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1118 rm -f systemd-update-utmp-runlevel.service && \
1119 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1120 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1121 rm -f systemd-update-utmp-runlevel.service && \
1122 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1123 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1124 rm -f systemd-update-utmp-runlevel.service && \
1125 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1126 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1127 rm -f systemd-update-utmp-runlevel.service && \
1128 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1129 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1130 rm -f systemd-update-utmp-runlevel.service && \
1131 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1132 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1133 rm -f systemd-update-utmp-shutdown.service \
1134 hwclock-save.service \
1135 systemd-random-seed-save.service && \
1136 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1137 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1138 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1139 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1140 rm -f systemd-remount-api-vfs.service \
1142 remount-rootfs.service \
1145 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1146 $(LN_S) ../fsck-root.service fsck-root.service && \
1147 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1148 $(LN_S) ../var-run.mount var-run.mount && \
1149 $(LN_S) ../var-lock.mount var-lock.mount )
1150 ( cd $(DESTDIR)$(sessionunitdir) && \
1151 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1152 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1153 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1154 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1155 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1156 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1157 $(LN_S) $(systemunitdir)/printer.target printer.target)
1158 ( cd $(DESTDIR)$(systemunitdir) && \
1159 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1160 $(LN_S) poweroff.target runlevel0.target && \
1161 $(LN_S) rescue.target runlevel1.target && \
1162 $(LN_S) multi-user.target runlevel2.target && \
1163 $(LN_S) multi-user.target runlevel3.target && \
1164 $(LN_S) multi-user.target runlevel4.target && \
1165 $(LN_S) graphical.target runlevel5.target && \
1166 $(LN_S) reboot.target runlevel6.target )
1167 ( cd $(DESTDIR)$(systemunitdir) && \
1168 rm -f default.target ctrl-alt-del.target && \
1169 $(LN_S) graphical.target default.target && \
1170 $(LN_S) reboot.target ctrl-alt-del.target )
1171 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1172 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1173 $(LN_S) ../getty.target getty.target && \
1174 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1175 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1176 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1177 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1178 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1179 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1180 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1181 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1182 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1183 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1184 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1185 rm -f quotaon.service quotacheck.service && \
1186 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1187 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1188 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1189 rm -f remote-fs.target && \
1190 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1191 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1192 rm -f hwclock-load.service && \
1193 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1194 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1195 rm -f dev-hugepages.automount \
1196 dev-mqueue.automount \
1197 proc-sys-fs-binfmt_misc.automount \
1198 sys-kernel-debug.automount \
1199 sys-kernel-security.automount \
1200 systemd-vconsole-setup.service \
1201 systemd-modules-load.service \
1202 systemd-random-seed-load.service \
1203 systemd-tmpfiles-setup.service \
1205 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1206 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1207 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1208 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1209 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1210 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1211 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1212 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1213 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1214 $(LN_S) ../sysctl.service sysctl.service )
1215 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1216 rm -f systemd-tmpfiles-clean.timer && \
1217 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1218 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1219 rm -f org.freedesktop.systemd1.service && \
1220 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1222 $(MKDIR_P) -m 0755 \
1223 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1224 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1225 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1226 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1227 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1228 $(DESTDIR)$(systemunitdir)/final.target.wants
1229 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1230 rm -f rc-local.service && \
1231 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1232 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1233 rm -f halt-local.service && \
1234 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1235 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1236 rm -f plymouth-start.service systemd-ask-password-plymouth.path plymouth-read-write.service && \
1237 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1238 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service && \
1239 $(LN_S) ../systemd-ask-password-plymouth.path systemd-ask-password-plymouth.path )
1240 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1241 rm -f plymouth-quit.service && \
1242 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1243 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1244 rm -f plymouth-reboot.service && \
1245 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1246 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1247 rm -f plymouth-kexec.service && \
1248 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1249 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1250 rm -f plymouth-poweroff.service && \
1251 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1252 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1253 rm -f plymouth-halt.service && \
1254 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1255 ( cd $(DESTDIR)$(systemunitdir) && \
1256 rm -f display-manager.service && \
1257 $(LN_S) prefdm.service display-manager.service )
1258 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1259 rm -f display-manager.service && \
1260 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1263 ( cd $(DESTDIR)$(systemunitdir) && \
1264 rm -f display-manager.service && \
1265 $(LN_S) xdm.service display-manager.service )
1266 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1267 rm -f display-manager.service && \
1268 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1270 if TARGET_DEBIAN_OR_UBUNTU
1271 $(MKDIR_P) -m 0755 \
1272 $(DESTDIR)$(systemunitdir)/umount.target.wants
1273 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1274 rm -f umountfs.service umountnfs.service umountroot.service && \
1275 $(LN_S) ../umountfs.service umountfs.service && \
1276 $(LN_S) ../umountnfs.service umountnfs.service && \
1277 $(LN_S) ../umountroot.service umountroot.service )
1278 ( cd $(DESTDIR)$(systemunitdir) && \
1279 rm -f runlevel5.target && \
1280 $(LN_S) multi-user.target runlevel5.target )
1283 DISTCHECK_CONFIGURE_FLAGS = \
1284 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1285 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1286 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1287 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1288 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1289 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1290 --with-rootdir=$$dc_install_base/$(rootdir)
1292 upload: all distcheck
1293 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1294 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1295 scp man/*.html tango:public/systemd-man/
1298 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1300 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1302 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-run.mount
1303 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-lock.mount