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 -DCGROUP_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 -DKEXEC_BINARY_PATH=\"/sbin/kexec\" \
61 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
66 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
67 -DKBD_SETFONT=\"/usr/bin/setfont\" \
68 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
72 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
73 -DKBD_SETFONT=\"/usr/bin/setfont\" \
74 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
77 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
78 -DKBD_SETFONT=\"/bin/setfont\" \
79 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
87 systemd-ask-password \
88 systemd-tty-ask-password-agent
96 systemd-gnome-ask-password-agent
99 rootlibexec_PROGRAMS = \
101 systemd-cgroups-agent \
103 systemd-update-utmp \
104 systemd-random-seed \
107 systemd-modules-load \
108 systemd-remount-api-vfs \
109 systemd-kmsg-syslogd \
110 systemd-vconsole-setup \
111 systemd-reply-password \
112 systemd-readahead-collect \
113 systemd-readahead-replay \
115 systemd-user-sessions \
119 systemd-cryptsetup-generator \
134 pamlib_LTLIBRARIES = \
138 dist_pkgsysconf_DATA = \
141 dist_dbuspolicy_DATA = \
142 src/org.freedesktop.systemd1.conf
144 dist_dbussystemservice_DATA = \
145 src/org.freedesktop.systemd1.service
147 dist_udevrules_DATA = \
150 dbusinterface_DATA = \
151 org.freedesktop.systemd1.Manager.xml \
152 org.freedesktop.systemd1.Job.xml \
153 org.freedesktop.systemd1.Unit.xml \
154 org.freedesktop.systemd1.Service.xml \
155 org.freedesktop.systemd1.Socket.xml \
156 org.freedesktop.systemd1.Timer.xml \
157 org.freedesktop.systemd1.Target.xml \
158 org.freedesktop.systemd1.Device.xml \
159 org.freedesktop.systemd1.Mount.xml \
160 org.freedesktop.systemd1.Automount.xml \
161 org.freedesktop.systemd1.Snapshot.xml \
162 org.freedesktop.systemd1.Swap.xml \
163 org.freedesktop.systemd1.Path.xml
165 dist_bashcompletion_DATA = \
166 src/systemctl-bash-completion.sh
168 dist_tmpfiles_DATA = \
169 tmpfiles.d/systemd.conf \
172 dist_systemunit_DATA = \
173 units/emergency.service \
174 units/emergency.target \
175 units/sysinit.target \
180 units/local-fs.target \
181 units/network.target \
182 units/nss-lookup.target \
183 units/mail-transfer-agent.target \
184 units/http-daemon.target \
185 units/poweroff.target \
186 units/reboot.target \
187 units/rescue.target \
188 units/rpcbind.target \
189 units/rtc-set.target \
190 units/shutdown.target \
192 units/umount.target \
193 units/sigpwr.target \
194 units/sockets.target \
197 units/systemd-initctl.socket \
198 units/systemd-logger.socket \
199 units/systemd-shutdownd.socket \
200 units/syslog.socket \
201 units/dev-hugepages.automount \
202 units/dev-hugepages.mount \
203 units/dev-mqueue.automount \
204 units/dev-mqueue.mount \
205 units/proc-sys-fs-binfmt_misc.automount \
206 units/proc-sys-fs-binfmt_misc.mount \
207 units/sys-kernel-debug.automount \
208 units/sys-kernel-debug.mount \
209 units/sys-kernel-security.automount \
210 units/sys-kernel-security.mount \
212 units/var-lock.mount \
213 units/var-run.mount \
214 units/hwclock-load.service \
215 units/hwclock-save.service \
216 units/sysctl.service \
217 units/remount-rootfs.service \
218 units/printer.target \
219 units/bluetooth.target \
220 units/smartcard.target \
221 units/systemd-readahead-done.timer \
222 units/systemd-tmpfiles-clean.timer \
223 units/quotaon.service \
224 units/systemd-ask-password-wall.path \
225 units/systemd-ask-password-plymouth.path
227 nodist_systemunit_DATA = \
228 units/getty@.service \
229 units/serial-getty@.service \
230 units/graphical.target \
231 units/remote-fs.target \
232 units/multi-user.target \
233 units/systemd-initctl.service \
234 units/systemd-logger.service \
235 units/systemd-shutdownd.service \
236 units/systemd-kmsg-syslogd.service \
237 units/systemd-modules-load.service \
238 units/systemd-vconsole-setup.service \
239 units/systemd-remount-api-vfs.service \
240 units/systemd-update-utmp-runlevel.service \
241 units/systemd-update-utmp-shutdown.service \
242 units/systemd-random-seed-save.service \
243 units/systemd-random-seed-load.service \
244 units/systemd-readahead-collect.service \
245 units/systemd-readahead-replay.service \
246 units/systemd-readahead-done.service \
247 units/systemd-tmpfiles-setup.service \
248 units/systemd-tmpfiles-clean.service \
249 units/systemd-user-sessions.service \
250 units/systemd-ask-password-wall.service \
251 units/systemd-ask-password-plymouth.service \
252 units/syslog.target \
254 units/poweroff.service \
255 units/reboot.service \
256 units/kexec.service \
257 units/fsck@.service \
258 units/fsck-root.service \
259 units/quotacheck.service \
262 dist_sessionunit_DATA = \
263 units/session/default.target \
264 units/session/exit.target
266 nodist_sessionunit_DATA = \
267 units/session/remote-fs.target \
268 units/session/exit.service
271 units/getty@.service.m4 \
272 units/serial-getty@.service.m4 \
273 units/graphical.target.m4 \
274 units/multi-user.target.m4 \
275 units/remote-fs.target.m4 \
276 units/rescue.service.m4 \
277 units/systemd-initctl.service.in \
278 units/systemd-logger.service.in \
279 units/systemd-shutdownd.service.in \
280 units/systemd-kmsg-syslogd.service.in \
281 units/systemd-modules-load.service.in \
282 units/systemd-vconsole-setup.service.in \
283 units/systemd-remount-api-vfs.service.in \
284 units/systemd-update-utmp-runlevel.service.in \
285 units/systemd-update-utmp-shutdown.service.in \
286 units/systemd-random-seed-save.service.in \
287 units/systemd-random-seed-load.service.in \
288 units/systemd-readahead-collect.service.in \
289 units/systemd-readahead-replay.service.in \
290 units/systemd-readahead-done.service.in \
291 units/systemd-tmpfiles-setup.service.in \
292 units/systemd-tmpfiles-clean.service.in \
293 units/systemd-user-sessions.service.in \
294 units/systemd-ask-password-wall.service.in \
295 units/systemd-ask-password-plymouth.service.in \
296 units/syslog.target.in \
297 units/halt.service.in \
298 units/poweroff.service.in \
299 units/reboot.service.in \
300 units/kexec.service.in \
301 units/session/exit.service.in \
302 units/fsck@.service.in \
303 units/fsck-root.service.in \
304 units/quotacheck.service.in \
308 dist_systemunit_DATA += \
309 units/fedora/prefdm.service \
310 units/fedora/rc-local.service \
311 units/fedora/halt-local.service \
312 units/fedora/plymouth-start.service \
313 units/fedora/plymouth-read-write.service \
314 units/fedora/plymouth-quit.service \
315 units/fedora/plymouth-reboot.service \
316 units/fedora/plymouth-kexec.service \
317 units/fedora/plymouth-poweroff.service \
318 units/fedora/plymouth-halt.service
321 if TARGET_DEBIAN_OR_UBUNTU
322 dist_systemunit_DATA += \
323 units/debian/umountfs.service \
324 units/debian/umountnfs.service \
325 units/debian/umountroot.service
329 dist_systemunit_DATA += \
330 units/gentoo/xdm.service
334 dist_systemunit_DATA += \
335 units/arch/rc-local.service
347 pkgconfigdata_DATA = \
350 dist_polkitpolicy_DATA = \
351 src/org.freedesktop.systemd1.policy
353 noinst_LTLIBRARIES = \
354 libsystemd-basic.la \
357 libsystemd_basic_la_SOURCES = \
368 libsystemd_basic_la_CFLAGS = \
372 libsystemd_basic_la_LIBADD = \
375 libsystemd_core_la_SOURCES = \
380 src/load-fragment.c \
404 src/dbus-automount.c \
406 src/dbus-snapshot.c \
412 src/hostname-setup.c \
413 src/selinux-setup.c \
414 src/loopback-setup.c \
425 libsystemd_core_la_CFLAGS = \
433 libsystemd_core_la_LIBADD = \
434 libsystemd-basic.la \
441 # This is needed because automake is buggy in how it generates the
442 # rules for C programs, but not Vala programs. We therefore can't
443 # list the .h files as dependencies if we want make dist to work.
446 ${libsystemd_basic_la_SOURCES:.c=.h} \
447 ${libsystemd_core_la_SOURCES:.c=.h} \
453 src/linux/auto_dev-ioctl.h \
454 src/linux/fanotify.h \
465 src/readahead-common.h
472 man/systemd-notify.1 \
476 man/sd_listen_fds.3 \
479 man/systemd.service.5 \
480 man/systemd.socket.5 \
481 man/systemd.mount.5 \
482 man/systemd.automount.5 \
484 man/systemd.timer.5 \
486 man/systemd.target.5 \
487 man/systemd.device.5 \
488 man/systemd.snapshot.5 \
505 man/sd_is_socket_unix.3 \
506 man/sd_is_socket_inet.3 \
510 man/reboot.8: man/halt.8
511 man/poweroff.8: man/halt.8
512 man/sd_is_socket.3: man/sd_is_fifo.3
513 man/sd_is_socket_unix.3: man/sd_is_fifo.3
514 man/sd_is_socket_inet.3: man/sd_is_fifo.3
515 man/sd_notifyf.3: man/sd_notify.3
516 man/init.1: man/systemd.1
523 man/systemd.special.7
526 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
529 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
532 ${XML_FILES:.xml=.html}
534 nodist_noinst_DATA = \
535 ${XML_IN_FILES:.xml.in=.html}
540 ${nodist_man_MANS:=.in} \
541 ${XML_IN_FILES:.xml.in=.html.in}
554 test_engine_SOURCES = \
557 test_engine_CFLAGS = $(systemd_CFLAGS)
558 test_engine_LDADD = $(systemd_LDADD)
560 test_job_type_SOURCES = \
563 test_job_type_CFLAGS = $(systemd_CFLAGS)
564 test_job_type_LDADD = $(systemd_LDADD)
569 test_ns_CFLAGS = $(systemd_CFLAGS)
570 test_ns_LDADD = $(systemd_LDADD)
572 test_loopback_SOURCES = \
573 src/test-loopback.c \
576 test_loopback_LDADD = \
579 test_hostname_SOURCES = \
580 src/test-hostname.c \
583 test_hostname_LDADD = \
586 test_daemon_SOURCES = \
590 test_daemon_LDADD = \
593 test_cgroup_SOURCES = \
597 test_cgroup_CFLAGS = \
600 test_cgroup_LDADD = \
603 test_env_replace_SOURCES = \
604 src/test-env-replace.c
606 test_env_replace_CFLAGS = \
609 test_env_replace_LDADD = \
612 systemd_logger_SOURCES = \
617 systemd_logger_LDADD = \
618 libsystemd-basic.la \
621 systemd_initctl_SOURCES = \
626 systemd_initctl_CFLAGS = \
630 systemd_initctl_LDADD = \
631 libsystemd-basic.la \
634 systemd_update_utmp_SOURCES = \
639 systemd_update_utmp_CFLAGS = \
644 systemd_update_utmp_LDADD = \
645 libsystemd-basic.la \
649 systemd_random_seed_SOURCES = \
652 systemd_random_seed_CFLAGS = \
655 systemd_random_seed_LDADD = \
658 systemd_shutdownd_SOURCES = \
663 systemd_shutdownd_CFLAGS = \
666 systemd_shutdownd_LDADD = \
669 systemd_shutdown_SOURCES = \
674 systemd_shutdown_CFLAGS = \
678 systemd_shutdown_LDADD = \
679 libsystemd-basic.la \
682 systemd_modules_load_SOURCES = \
685 systemd_modules_load_CFLAGS = \
688 systemd_modules_load_LDADD = \
691 systemd_tmpfiles_SOURCES = \
694 systemd_tmpfiles_CFLAGS = \
697 systemd_tmpfiles_LDADD = \
700 systemd_fsck_SOURCES = \
704 systemd_fsck_CFLAGS = \
709 systemd_fsck_LDADD = \
710 libsystemd-basic.la \
714 systemd_quotacheck_SOURCES = \
717 systemd_quotacheck_CFLAGS = \
720 systemd_quotacheck_LDADD = \
723 systemd_timestamp_SOURCES = \
726 systemd_timestamp_CFLAGS = \
729 systemd_timestamp_LDADD = \
732 systemd_ac_power_SOURCES = \
735 systemd_ac_power_CFLAGS = \
739 systemd_ac_power_LDADD = \
740 libsystemd-basic.la \
743 systemd_cryptsetup_SOURCES = \
746 systemd_cryptsetup_CFLAGS = \
749 systemd_cryptsetup_LDADD = \
752 systemd_cryptsetup_generator_SOURCES = \
753 src/cryptsetup-generator.c \
756 systemd_cryptsetup_generator_CFLAGS = \
759 systemd_cryptsetup_generator_LDADD = \
762 systemd_user_sessions_SOURCES = \
763 src/user-sessions.c \
766 systemd_user_sessions_CFLAGS = \
769 systemd_user_sessions_LDADD = \
772 systemd_vconsole_setup_SOURCES = \
775 systemd_vconsole_setup_CFLAGS = \
778 systemd_vconsole_setup_LDADD = \
781 systemd_remount_api_vfs_SOURCES = \
782 src/remount-api-vfs.c \
785 systemd_remount_api_vfs_CFLAGS = \
788 systemd_remount_api_vfs_LDADD = \
791 systemd_cgroups_agent_SOURCES = \
792 src/cgroups-agent.c \
795 systemd_cgroups_agent_CFLAGS = \
799 systemd_cgroups_agent_LDADD = \
800 libsystemd-basic.la \
803 systemd_kmsg_syslogd_SOURCES = \
808 systemd_kmsg_syslogd_CFLAGS = \
811 systemd_kmsg_syslogd_LDADD = \
814 systemctl_SOURCES = \
830 libsystemd-basic.la \
833 systemd_notify_SOURCES = \
838 systemd_notify_LDADD = \
841 systemd_ask_password_SOURCES = \
844 systemd_ask_password_LDADD = \
847 systemd_reply_password_SOURCES = \
850 systemd_reply_password_LDADD = \
853 systemd_readahead_collect_SOURCES = \
854 src/readahead-collect.c \
856 src/readahead-common.c
858 systemd_readahead_collect_CFLAGS = \
861 systemd_readahead_collect_LDADD = \
862 libsystemd-basic.la \
865 systemd_readahead_replay_SOURCES = \
866 src/readahead-replay.c \
868 src/readahead-common.c
870 systemd_readahead_replay_CFLAGS = \
873 systemd_readahead_replay_LDADD = \
874 libsystemd-basic.la \
877 systemd_cgls_SOURCES = \
882 systemd_cgls_CFLAGS = \
885 systemd_cgls_LDADD = \
888 systemadm_SOURCES = \
890 src/systemd-interfaces.vala
896 -Wno-unused-variable \
897 -Wno-unused-function \
899 -Wno-format-nonliteral
901 systemadm_VALAFLAGS = \
911 systemd_gnome_ask_password_agent_SOURCES = \
912 src/gnome-ask-password-agent.vala
914 systemd_gnome_ask_password_agent_CFLAGS = \
918 -Wno-unused-variable \
919 -Wno-unused-function \
921 -Wno-format-nonliteral
923 systemd_gnome_ask_password_agent_VALAFLAGS = \
932 systemd_gnome_ask_password_agent_LDADD = \
936 systemd_tty_ask_password_agent_SOURCES = \
937 src/tty-ask-password-agent.c \
940 systemd_tty_ask_password_agent_LDADD = \
943 pam_systemd_la_SOURCES = \
948 pam_systemd_la_CFLAGS = \
952 pam_systemd_la_LDFLAGS = \
957 -export-symbols-regex '^pam_sm_.*'
959 pam_systemd_la_LIBADD = \
960 libsystemd-basic.la \
964 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
965 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
966 -e 's,@rootbindir\@,$(rootbindir),g' \
967 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
968 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
969 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
970 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
971 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
972 -e 's,@systemunitdir\@,$(systemunitdir),g' \
973 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
974 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
975 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
976 -e 's,@prefix\@,$(prefix),g' \
979 units/%: units/%.in Makefile
982 man/%: man/%.in Makefile
985 %.pc: %.pc.in Makefile
988 M4_PROCESS_SYSTEM = \
989 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
990 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
992 M4_PROCESS_SESSION = \
993 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
994 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ || rm $@
996 units/%: units/%.m4 Makefile
999 units/session/%: units/%.m4 Makefile
1000 $(M4_PROCESS_SESSION)
1003 $(nodist_systemunit_DATA) \
1004 $(nodist_sessionunit_DATA) \
1005 $(nodist_man_MANS) \
1006 ${XML_IN_FILES:.xml.in=.html} \
1007 $(pkgconfigdata_DATA)
1011 ${systemadm_SOURCES:.vala=.c}
1017 --param funcsynopsis.style "'ansi'"
1019 XSLTPROC_PROCESS_MAN = \
1020 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1021 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1023 XSLTPROC_PROCESS_MAN_IN = \
1024 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1025 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1028 XSLTPROC_PROCESS_HTML = \
1029 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1030 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1032 XSLTPROC_PROCESS_HTML_IN = \
1033 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1034 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1038 $(XSLTPROC_PROCESS_MAN)
1040 man/%.1.in: man/%.xml.in
1041 $(XSLTPROC_PROCESS_MAN)
1044 $(XSLTPROC_PROCESS_MAN)
1046 man/%.3.in: man/%.xml.in
1047 $(XSLTPROC_PROCESS_MAN)
1050 $(XSLTPROC_PROCESS_MAN)
1052 man/%.5.in: man/%.xml.in
1053 $(XSLTPROC_PROCESS_MAN)
1056 $(XSLTPROC_PROCESS_MAN)
1058 man/%.7.in: man/%.xml.in
1059 $(XSLTPROC_PROCESS_MAN_IN)
1062 $(XSLTPROC_PROCESS_MAN)
1064 man/%.8.in: man/%.xml.in
1065 $(XSLTPROC_PROCESS_MAN_IN)
1067 man/%.html: man/%.xml
1068 $(XSLTPROC_PROCESS_HTML)
1070 man/%.html.in: man/%.xml.in
1071 $(XSLTPROC_PROCESS_HTML_IN)
1075 ${nodist_man_MANS:=.in} \
1076 ${XML_FILES:.xml=.html} \
1077 ${XML_IN_FILES:.xml.in=.html.in}
1080 org.freedesktop.systemd1.%.xml: systemd
1081 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1084 $(dbusinterface_DATA)
1087 $(MKDIR_P) -m 0755 \
1088 $(DESTDIR)$(systemunitdir) \
1089 $(DESTDIR)$(sessionunitdir) \
1090 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1091 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1092 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1093 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1094 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1095 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1096 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1097 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1098 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1099 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1100 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1101 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1102 $(DESTDIR)$(pkgsysconfdir)/system \
1103 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1104 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1105 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1106 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1107 $(DESTDIR)$(pkgsysconfdir)/session \
1108 $(DESTDIR)$(sysconfdir)/xdg/systemd
1109 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1111 $(LN_S) $(pkgsysconfdir)/session session )
1112 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1113 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1114 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1115 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1116 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1117 $(LN_S) ../syslog.socket syslog.socket )
1118 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1119 rm -f systemd-update-utmp-runlevel.service && \
1120 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1121 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1122 rm -f systemd-update-utmp-runlevel.service && \
1123 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1124 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1125 rm -f systemd-update-utmp-runlevel.service && \
1126 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1127 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1128 rm -f systemd-update-utmp-runlevel.service && \
1129 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1130 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1131 rm -f systemd-update-utmp-runlevel.service && \
1132 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1133 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1134 rm -f systemd-update-utmp-shutdown.service \
1135 hwclock-save.service \
1136 systemd-random-seed-save.service && \
1137 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1138 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1139 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1140 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1141 rm -f systemd-remount-api-vfs.service \
1143 remount-rootfs.service \
1146 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1147 $(LN_S) ../fsck-root.service fsck-root.service && \
1148 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1149 $(LN_S) ../var-run.mount var-run.mount && \
1150 $(LN_S) ../var-lock.mount var-lock.mount )
1151 ( cd $(DESTDIR)$(sessionunitdir) && \
1152 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1153 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1154 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1155 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1156 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1157 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1158 $(LN_S) $(systemunitdir)/printer.target printer.target)
1159 ( cd $(DESTDIR)$(systemunitdir) && \
1160 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1161 $(LN_S) poweroff.target runlevel0.target && \
1162 $(LN_S) rescue.target runlevel1.target && \
1163 $(LN_S) multi-user.target runlevel2.target && \
1164 $(LN_S) multi-user.target runlevel3.target && \
1165 $(LN_S) multi-user.target runlevel4.target && \
1166 $(LN_S) graphical.target runlevel5.target && \
1167 $(LN_S) reboot.target runlevel6.target )
1168 ( cd $(DESTDIR)$(systemunitdir) && \
1169 rm -f default.target ctrl-alt-del.target && \
1170 $(LN_S) graphical.target default.target && \
1171 $(LN_S) reboot.target ctrl-alt-del.target )
1172 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1173 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1174 $(LN_S) ../getty.target getty.target && \
1175 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1176 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1177 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1178 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1179 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1180 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1181 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1182 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1183 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1184 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1185 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1186 rm -f quotaon.service quotacheck.service && \
1187 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1188 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1189 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1190 rm -f remote-fs.target && \
1191 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1192 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1193 rm -f hwclock-load.service && \
1194 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1195 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1196 rm -f dev-hugepages.automount \
1197 dev-mqueue.automount \
1198 proc-sys-fs-binfmt_misc.automount \
1199 sys-kernel-debug.automount \
1200 sys-kernel-security.automount \
1201 systemd-vconsole-setup.service \
1202 systemd-modules-load.service \
1203 systemd-random-seed-load.service \
1204 systemd-tmpfiles-setup.service \
1206 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1207 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1208 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1209 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1210 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1211 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1212 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1213 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1214 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1215 $(LN_S) ../sysctl.service sysctl.service )
1216 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1217 rm -f systemd-tmpfiles-clean.timer && \
1218 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1219 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1220 rm -f org.freedesktop.systemd1.service && \
1221 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1223 $(MKDIR_P) -m 0755 \
1224 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1225 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1226 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1227 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1228 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1229 $(DESTDIR)$(systemunitdir)/final.target.wants
1230 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1231 rm -f rc-local.service && \
1232 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1233 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1234 rm -f halt-local.service && \
1235 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1236 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1237 rm -f plymouth-start.service systemd-ask-password-plymouth.path plymouth-read-write.service && \
1238 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1239 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service && \
1240 $(LN_S) ../systemd-ask-password-plymouth.path systemd-ask-password-plymouth.path )
1241 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1242 rm -f plymouth-quit.service && \
1243 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1244 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1245 rm -f plymouth-reboot.service && \
1246 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1247 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1248 rm -f plymouth-kexec.service && \
1249 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1250 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1251 rm -f plymouth-poweroff.service && \
1252 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1253 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1254 rm -f plymouth-halt.service && \
1255 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1256 ( cd $(DESTDIR)$(systemunitdir) && \
1257 rm -f display-manager.service && \
1258 $(LN_S) prefdm.service display-manager.service )
1259 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1260 rm -f display-manager.service && \
1261 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1264 ( cd $(DESTDIR)$(systemunitdir) && \
1265 rm -f display-manager.service && \
1266 $(LN_S) xdm.service display-manager.service )
1267 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1268 rm -f display-manager.service && \
1269 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1271 if TARGET_DEBIAN_OR_UBUNTU
1272 $(MKDIR_P) -m 0755 \
1273 $(DESTDIR)$(systemunitdir)/umount.target.wants
1274 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1275 rm -f umountfs.service umountnfs.service umountroot.service && \
1276 $(LN_S) ../umountfs.service umountfs.service && \
1277 $(LN_S) ../umountnfs.service umountnfs.service && \
1278 $(LN_S) ../umountroot.service umountroot.service )
1279 ( cd $(DESTDIR)$(systemunitdir) && \
1280 rm -f runlevel5.target && \
1281 $(LN_S) multi-user.target runlevel5.target )
1284 DISTCHECK_CONFIGURE_FLAGS = \
1285 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1286 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1287 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1288 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1289 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1290 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1291 --with-rootdir=$$dc_install_base/$(rootdir)
1293 upload: all distcheck
1294 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1295 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1296 scp man/*.html tango:public/systemd-man/
1299 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1301 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1303 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-run.mount
1304 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-lock.mount