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 \
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_tmpfiles_DATA = \
165 tmpfiles.d/systemd.conf \
168 dist_systemunit_DATA = \
169 units/emergency.service \
170 units/emergency.target \
171 units/sysinit.target \
176 units/local-fs.target \
177 units/network.target \
178 units/nss-lookup.target \
179 units/mail-transfer-agent.target \
180 units/http-daemon.target \
181 units/poweroff.target \
182 units/reboot.target \
183 units/rescue.target \
184 units/rpcbind.target \
185 units/rtc-set.target \
186 units/shutdown.target \
188 units/umount.target \
189 units/sigpwr.target \
190 units/sockets.target \
193 units/systemd-initctl.socket \
194 units/systemd-logger.socket \
195 units/systemd-shutdownd.socket \
196 units/syslog.socket \
197 units/dev-hugepages.automount \
198 units/dev-hugepages.mount \
199 units/dev-mqueue.automount \
200 units/dev-mqueue.mount \
201 units/proc-sys-fs-binfmt_misc.automount \
202 units/proc-sys-fs-binfmt_misc.mount \
203 units/sys-kernel-debug.automount \
204 units/sys-kernel-debug.mount \
205 units/sys-kernel-security.automount \
206 units/sys-kernel-security.mount \
208 units/var-lock.mount \
209 units/var-run.mount \
210 units/hwclock-load.service \
211 units/hwclock-save.service \
212 units/sysctl.service \
213 units/remount-rootfs.service \
214 units/printer.target \
215 units/bluetooth.target \
216 units/smartcard.target \
217 units/systemd-readahead-done.timer \
218 units/systemd-tmpfiles-clean.timer \
219 units/quotaon.service \
220 units/systemd-ask-password-wall.path \
221 units/systemd-ask-password-plymouth.path
223 nodist_systemunit_DATA = \
224 units/getty@.service \
225 units/serial-getty@.service \
226 units/graphical.target \
227 units/remote-fs.target \
228 units/multi-user.target \
229 units/systemd-initctl.service \
230 units/systemd-logger.service \
231 units/systemd-shutdownd.service \
232 units/systemd-kmsg-syslogd.service \
233 units/systemd-modules-load.service \
234 units/systemd-vconsole-setup.service \
235 units/systemd-remount-api-vfs.service \
236 units/systemd-update-utmp-runlevel.service \
237 units/systemd-update-utmp-shutdown.service \
238 units/systemd-random-seed-save.service \
239 units/systemd-random-seed-load.service \
240 units/systemd-readahead-collect.service \
241 units/systemd-readahead-replay.service \
242 units/systemd-readahead-done.service \
243 units/systemd-tmpfiles-setup.service \
244 units/systemd-tmpfiles-clean.service \
245 units/systemd-user-sessions.service \
246 units/systemd-ask-password-wall.service \
247 units/systemd-ask-password-plymouth.service \
248 units/syslog.target \
250 units/poweroff.service \
251 units/reboot.service \
252 units/kexec.service \
253 units/fsck@.service \
254 units/fsck-root.service \
255 units/quotacheck.service \
258 dist_sessionunit_DATA = \
259 units/session/default.target \
260 units/session/exit.target
262 nodist_sessionunit_DATA = \
263 units/session/remote-fs.target \
264 units/session/exit.service
267 units/getty@.service.m4 \
268 units/serial-getty@.service.m4 \
269 units/graphical.target.m4 \
270 units/multi-user.target.m4 \
271 units/remote-fs.target.m4 \
272 units/rescue.service.m4 \
273 units/systemd-initctl.service.in \
274 units/systemd-logger.service.in \
275 units/systemd-shutdownd.service.in \
276 units/systemd-kmsg-syslogd.service.in \
277 units/systemd-modules-load.service.in \
278 units/systemd-vconsole-setup.service.in \
279 units/systemd-remount-api-vfs.service.in \
280 units/systemd-update-utmp-runlevel.service.in \
281 units/systemd-update-utmp-shutdown.service.in \
282 units/systemd-random-seed-save.service.in \
283 units/systemd-random-seed-load.service.in \
284 units/systemd-readahead-collect.service.in \
285 units/systemd-readahead-replay.service.in \
286 units/systemd-readahead-done.service.in \
287 units/systemd-tmpfiles-setup.service.in \
288 units/systemd-tmpfiles-clean.service.in \
289 units/systemd-user-sessions.service.in \
290 units/systemd-ask-password-wall.service.in \
291 units/systemd-ask-password-plymouth.service.in \
292 units/syslog.target.in \
293 units/halt.service.in \
294 units/poweroff.service.in \
295 units/reboot.service.in \
296 units/kexec.service.in \
297 units/session/exit.service.in \
298 units/fsck@.service.in \
299 units/fsck-root.service.in \
300 units/quotacheck.service.in \
304 dist_systemunit_DATA += \
305 units/fedora/prefdm.service \
306 units/fedora/rc-local.service \
307 units/fedora/halt-local.service \
308 units/fedora/plymouth-start.service \
309 units/fedora/plymouth-read-write.service \
310 units/fedora/plymouth-quit.service \
311 units/fedora/plymouth-reboot.service \
312 units/fedora/plymouth-kexec.service \
313 units/fedora/plymouth-poweroff.service \
314 units/fedora/plymouth-halt.service
317 if TARGET_DEBIAN_OR_UBUNTU
318 dist_systemunit_DATA += \
319 units/debian/umountfs.service \
320 units/debian/umountnfs.service \
321 units/debian/umountroot.service
325 dist_systemunit_DATA += \
326 units/gentoo/xdm.service
330 dist_systemunit_DATA += \
331 units/arch/rc-local.service
343 pkgconfigdata_DATA = \
346 dist_polkitpolicy_DATA = \
347 src/org.freedesktop.systemd1.policy
349 noinst_LTLIBRARIES = \
350 libsystemd-basic.la \
353 libsystemd_basic_la_SOURCES = \
364 libsystemd_basic_la_CFLAGS = \
368 libsystemd_basic_la_LIBADD = \
371 libsystemd_core_la_SOURCES = \
376 src/load-fragment.c \
400 src/dbus-automount.c \
402 src/dbus-snapshot.c \
408 src/hostname-setup.c \
409 src/selinux-setup.c \
410 src/loopback-setup.c \
421 libsystemd_core_la_CFLAGS = \
429 libsystemd_core_la_LIBADD = \
430 libsystemd-basic.la \
437 # This is needed because automake is buggy in how it generates the
438 # rules for C programs, but not Vala programs. We therefore can't
439 # list the .h files as dependencies if we want make dist to work.
442 ${libsystemd_basic_la_SOURCES:.c=.h} \
443 ${libsystemd_core_la_SOURCES:.c=.h} \
449 src/linux/auto_dev-ioctl.h \
450 src/linux/fanotify.h \
461 src/readahead-common.h
468 man/systemd-notify.1 \
472 man/sd_listen_fds.3 \
475 man/systemd.service.5 \
476 man/systemd.socket.5 \
477 man/systemd.mount.5 \
478 man/systemd.automount.5 \
480 man/systemd.timer.5 \
482 man/systemd.target.5 \
483 man/systemd.device.5 \
484 man/systemd.snapshot.5 \
501 man/sd_is_socket_unix.3 \
502 man/sd_is_socket_inet.3 \
506 man/reboot.8: man/halt.8
507 man/poweroff.8: man/halt.8
508 man/sd_is_socket.3: man/sd_is_fifo.3
509 man/sd_is_socket_unix.3: man/sd_is_fifo.3
510 man/sd_is_socket_inet.3: man/sd_is_fifo.3
511 man/sd_notifyf.3: man/sd_notify.3
512 man/init.1: man/systemd.1
519 man/systemd.special.7
522 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
525 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
528 ${XML_FILES:.xml=.html}
530 nodist_noinst_DATA = \
531 ${XML_IN_FILES:.xml.in=.html}
536 ${nodist_man_MANS:=.in} \
537 ${XML_IN_FILES:.xml.in=.html.in}
550 test_engine_SOURCES = \
553 test_engine_CFLAGS = $(systemd_CFLAGS)
554 test_engine_LDADD = $(systemd_LDADD)
556 test_job_type_SOURCES = \
559 test_job_type_CFLAGS = $(systemd_CFLAGS)
560 test_job_type_LDADD = $(systemd_LDADD)
565 test_ns_CFLAGS = $(systemd_CFLAGS)
566 test_ns_LDADD = $(systemd_LDADD)
568 test_loopback_SOURCES = \
569 src/test-loopback.c \
572 test_loopback_LDADD = \
575 test_hostname_SOURCES = \
576 src/test-hostname.c \
579 test_hostname_LDADD = \
582 test_daemon_SOURCES = \
586 test_daemon_LDADD = \
589 test_cgroup_SOURCES = \
593 test_cgroup_CFLAGS = \
596 test_cgroup_LDADD = \
599 test_env_replace_SOURCES = \
600 src/test-env-replace.c
602 test_env_replace_CFLAGS = \
605 test_env_replace_LDADD = \
608 systemd_logger_SOURCES = \
613 systemd_logger_LDADD = \
614 libsystemd-basic.la \
617 systemd_initctl_SOURCES = \
622 systemd_initctl_CFLAGS = \
626 systemd_initctl_LDADD = \
627 libsystemd-basic.la \
630 systemd_update_utmp_SOURCES = \
635 systemd_update_utmp_CFLAGS = \
640 systemd_update_utmp_LDADD = \
641 libsystemd-basic.la \
645 systemd_random_seed_SOURCES = \
648 systemd_random_seed_CFLAGS = \
651 systemd_random_seed_LDADD = \
654 systemd_shutdownd_SOURCES = \
659 systemd_shutdownd_CFLAGS = \
662 systemd_shutdownd_LDADD = \
665 systemd_shutdown_SOURCES = \
670 systemd_shutdown_CFLAGS = \
674 systemd_shutdown_LDADD = \
675 libsystemd-basic.la \
678 systemd_modules_load_SOURCES = \
681 systemd_modules_load_CFLAGS = \
684 systemd_modules_load_LDADD = \
687 systemd_tmpfiles_SOURCES = \
690 systemd_tmpfiles_CFLAGS = \
693 systemd_tmpfiles_LDADD = \
696 systemd_fsck_SOURCES = \
700 systemd_fsck_CFLAGS = \
705 systemd_fsck_LDADD = \
706 libsystemd-basic.la \
710 systemd_quotacheck_SOURCES = \
713 systemd_quotacheck_CFLAGS = \
716 systemd_quotacheck_LDADD = \
719 systemd_timestamp_SOURCES = \
722 systemd_timestamp_CFLAGS = \
725 systemd_timestamp_LDADD = \
728 systemd_ac_power_SOURCES = \
731 systemd_ac_power_CFLAGS = \
735 systemd_ac_power_LDADD = \
736 libsystemd-basic.la \
739 systemd_cryptsetup_SOURCES = \
742 systemd_cryptsetup_CFLAGS = \
745 systemd_cryptsetup_LDADD = \
748 systemd_cryptsetup_generator_SOURCES = \
749 src/cryptsetup-generator.c \
752 systemd_cryptsetup_generator_CFLAGS = \
755 systemd_cryptsetup_generator_LDADD = \
758 systemd_user_sessions_SOURCES = \
759 src/user-sessions.c \
762 systemd_user_sessions_CFLAGS = \
765 systemd_user_sessions_LDADD = \
768 systemd_vconsole_setup_SOURCES = \
771 systemd_vconsole_setup_CFLAGS = \
774 systemd_vconsole_setup_LDADD = \
777 systemd_remount_api_vfs_SOURCES = \
778 src/remount-api-vfs.c \
781 systemd_remount_api_vfs_CFLAGS = \
784 systemd_remount_api_vfs_LDADD = \
787 systemd_cgroups_agent_SOURCES = \
788 src/cgroups-agent.c \
791 systemd_cgroups_agent_CFLAGS = \
795 systemd_cgroups_agent_LDADD = \
796 libsystemd-basic.la \
799 systemd_kmsg_syslogd_SOURCES = \
804 systemd_kmsg_syslogd_CFLAGS = \
807 systemd_kmsg_syslogd_LDADD = \
810 systemctl_SOURCES = \
826 libsystemd-basic.la \
829 systemd_notify_SOURCES = \
834 systemd_notify_LDADD = \
837 systemd_ask_password_SOURCES = \
840 systemd_ask_password_LDADD = \
843 systemd_reply_password_SOURCES = \
846 systemd_reply_password_LDADD = \
849 systemd_readahead_collect_SOURCES = \
850 src/readahead-collect.c \
852 src/readahead-common.c
854 systemd_readahead_collect_CFLAGS = \
857 systemd_readahead_collect_LDADD = \
858 libsystemd-basic.la \
861 systemd_readahead_replay_SOURCES = \
862 src/readahead-replay.c \
864 src/readahead-common.c
866 systemd_readahead_replay_CFLAGS = \
869 systemd_readahead_replay_LDADD = \
870 libsystemd-basic.la \
873 systemd_cgls_SOURCES = \
878 systemd_cgls_CFLAGS = \
881 systemd_cgls_LDADD = \
884 systemadm_SOURCES = \
886 src/systemd-interfaces.vala
892 -Wno-unused-variable \
893 -Wno-unused-function \
895 -Wno-format-nonliteral
897 systemadm_VALAFLAGS = \
907 systemd_gnome_ask_password_agent_SOURCES = \
908 src/gnome-ask-password-agent.vala
910 systemd_gnome_ask_password_agent_CFLAGS = \
914 -Wno-unused-variable \
915 -Wno-unused-function \
917 -Wno-format-nonliteral
919 systemd_gnome_ask_password_agent_VALAFLAGS = \
928 systemd_gnome_ask_password_agent_LDADD = \
932 systemd_tty_ask_password_agent_SOURCES = \
933 src/tty-ask-password-agent.c \
936 systemd_tty_ask_password_agent_LDADD = \
939 pam_systemd_la_SOURCES = \
944 pam_systemd_la_CFLAGS = \
948 pam_systemd_la_LDFLAGS = \
953 -export-symbols-regex '^pam_sm_.*'
955 pam_systemd_la_LIBADD = \
956 libsystemd-basic.la \
960 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
961 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
962 -e 's,@rootbindir\@,$(rootbindir),g' \
963 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
964 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
965 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
966 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
967 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
968 -e 's,@systemunitdir\@,$(systemunitdir),g' \
969 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
970 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
971 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
972 -e 's,@prefix\@,$(prefix),g' \
975 units/%: units/%.in Makefile
978 man/%: man/%.in Makefile
981 %.pc: %.pc.in Makefile
984 M4_PROCESS_SYSTEM = \
985 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
986 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
988 M4_PROCESS_SESSION = \
989 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
990 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ || rm $@
992 units/%: units/%.m4 Makefile
995 units/session/%: units/%.m4 Makefile
996 $(M4_PROCESS_SESSION)
999 $(nodist_systemunit_DATA) \
1000 $(nodist_sessionunit_DATA) \
1001 $(nodist_man_MANS) \
1002 ${XML_IN_FILES:.xml.in=.html} \
1003 $(pkgconfigdata_DATA)
1007 ${systemadm_SOURCES:.vala=.c}
1013 --param funcsynopsis.style "'ansi'"
1015 XSLTPROC_PROCESS_MAN = \
1016 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1017 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1019 XSLTPROC_PROCESS_MAN_IN = \
1020 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1021 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1024 XSLTPROC_PROCESS_HTML = \
1025 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1026 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1028 XSLTPROC_PROCESS_HTML_IN = \
1029 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1030 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1034 $(XSLTPROC_PROCESS_MAN)
1036 man/%.1.in: man/%.xml.in
1037 $(XSLTPROC_PROCESS_MAN)
1040 $(XSLTPROC_PROCESS_MAN)
1042 man/%.3.in: man/%.xml.in
1043 $(XSLTPROC_PROCESS_MAN)
1046 $(XSLTPROC_PROCESS_MAN)
1048 man/%.5.in: man/%.xml.in
1049 $(XSLTPROC_PROCESS_MAN)
1052 $(XSLTPROC_PROCESS_MAN)
1054 man/%.7.in: man/%.xml.in
1055 $(XSLTPROC_PROCESS_MAN_IN)
1058 $(XSLTPROC_PROCESS_MAN)
1060 man/%.8.in: man/%.xml.in
1061 $(XSLTPROC_PROCESS_MAN_IN)
1063 man/%.html: man/%.xml
1064 $(XSLTPROC_PROCESS_HTML)
1066 man/%.html.in: man/%.xml.in
1067 $(XSLTPROC_PROCESS_HTML_IN)
1071 ${nodist_man_MANS:=.in} \
1072 ${XML_FILES:.xml=.html} \
1073 ${XML_IN_FILES:.xml.in=.html.in}
1076 org.freedesktop.systemd1.%.xml: systemd
1077 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1080 $(dbusinterface_DATA)
1083 $(MKDIR_P) -m 0755 \
1084 $(DESTDIR)$(systemunitdir) \
1085 $(DESTDIR)$(sessionunitdir) \
1086 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1087 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1088 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1089 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1090 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1091 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1092 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1093 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1094 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1095 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1096 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1097 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1098 $(DESTDIR)$(pkgsysconfdir)/system \
1099 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1100 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1101 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1102 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1103 $(DESTDIR)$(pkgsysconfdir)/session \
1104 $(DESTDIR)$(sysconfdir)/xdg/systemd
1105 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1107 $(LN_S) $(pkgsysconfdir)/session session )
1108 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1109 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1110 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1111 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1112 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1113 $(LN_S) ../syslog.socket syslog.socket )
1114 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1115 rm -f systemd-update-utmp-runlevel.service && \
1116 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1117 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.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)/runlevel3.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)/runlevel4.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)/runlevel5.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)/shutdown.target.wants && \
1130 rm -f systemd-update-utmp-shutdown.service \
1131 hwclock-save.service \
1132 systemd-random-seed-save.service && \
1133 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1134 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1135 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1136 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1137 rm -f systemd-remount-api-vfs.service \
1139 remount-rootfs.service \
1142 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1143 $(LN_S) ../fsck-root.service fsck-root.service && \
1144 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1145 $(LN_S) ../var-run.mount var-run.mount && \
1146 $(LN_S) ../var-lock.mount var-lock.mount )
1147 ( cd $(DESTDIR)$(sessionunitdir) && \
1148 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1149 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1150 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1151 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1152 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1153 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1154 $(LN_S) $(systemunitdir)/printer.target printer.target)
1155 ( cd $(DESTDIR)$(systemunitdir) && \
1156 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1157 $(LN_S) poweroff.target runlevel0.target && \
1158 $(LN_S) rescue.target runlevel1.target && \
1159 $(LN_S) multi-user.target runlevel2.target && \
1160 $(LN_S) multi-user.target runlevel3.target && \
1161 $(LN_S) multi-user.target runlevel4.target && \
1162 $(LN_S) graphical.target runlevel5.target && \
1163 $(LN_S) reboot.target runlevel6.target )
1164 ( cd $(DESTDIR)$(systemunitdir) && \
1165 rm -f default.target ctrl-alt-del.target && \
1166 $(LN_S) graphical.target default.target && \
1167 $(LN_S) reboot.target ctrl-alt-del.target )
1168 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1169 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1170 $(LN_S) ../getty.target getty.target && \
1171 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1172 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1173 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1174 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1175 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1176 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1177 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1178 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1179 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1180 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1181 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1182 rm -f quotaon.service quotacheck.service && \
1183 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1184 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1185 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1186 rm -f remote-fs.target && \
1187 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1188 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1189 rm -f hwclock-load.service && \
1190 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1191 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1192 rm -f dev-hugepages.automount \
1193 dev-mqueue.automount \
1194 proc-sys-fs-binfmt_misc.automount \
1195 sys-kernel-debug.automount \
1196 sys-kernel-security.automount \
1197 systemd-vconsole-setup.service \
1198 systemd-modules-load.service \
1199 systemd-random-seed-load.service \
1200 systemd-tmpfiles-setup.service \
1202 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1203 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1204 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1205 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1206 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1207 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1208 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1209 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1210 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1211 $(LN_S) ../sysctl.service sysctl.service )
1212 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1213 rm -f systemd-tmpfiles-clean.timer && \
1214 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1215 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1216 rm -f org.freedesktop.systemd1.service && \
1217 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1219 $(MKDIR_P) -m 0755 \
1220 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1221 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1222 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1223 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1224 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1225 $(DESTDIR)$(systemunitdir)/final.target.wants
1226 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1227 rm -f rc-local.service && \
1228 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1229 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1230 rm -f halt-local.service && \
1231 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1232 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1233 rm -f plymouth-start.service systemd-ask-password-plymouth.path plymouth-read-write.service && \
1234 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1235 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service && \
1236 $(LN_S) ../systemd-ask-password-plymouth.path systemd-ask-password-plymouth.path )
1237 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1238 rm -f plymouth-quit.service && \
1239 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1240 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1241 rm -f plymouth-reboot.service && \
1242 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1243 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1244 rm -f plymouth-kexec.service && \
1245 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1246 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1247 rm -f plymouth-poweroff.service && \
1248 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1249 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1250 rm -f plymouth-halt.service && \
1251 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1252 ( cd $(DESTDIR)$(systemunitdir) && \
1253 rm -f display-manager.service && \
1254 $(LN_S) prefdm.service display-manager.service )
1255 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1256 rm -f display-manager.service && \
1257 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1260 ( cd $(DESTDIR)$(systemunitdir) && \
1261 rm -f display-manager.service && \
1262 $(LN_S) xdm.service display-manager.service )
1263 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1264 rm -f display-manager.service && \
1265 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1267 if TARGET_DEBIAN_OR_UBUNTU
1268 $(MKDIR_P) -m 0755 \
1269 $(DESTDIR)$(systemunitdir)/umount.target.wants
1270 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1271 rm -f umountfs.service umountnfs.service umountroot.service && \
1272 $(LN_S) ../umountfs.service umountfs.service && \
1273 $(LN_S) ../umountnfs.service umountnfs.service && \
1274 $(LN_S) ../umountroot.service umountroot.service )
1275 ( cd $(DESTDIR)$(systemunitdir) && \
1276 rm -f runlevel5.target && \
1277 $(LN_S) multi-user.target runlevel5.target )
1280 DISTCHECK_CONFIGURE_FLAGS = \
1281 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1282 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1283 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1284 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1285 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1286 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1287 --with-rootdir=$$dc_install_base/$(rootdir)
1289 upload: all distcheck
1290 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1291 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1292 scp man/*.html tango:public/systemd-man/
1295 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1297 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1299 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-run.mount
1300 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-lock.mount