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
35 sessiongeneratordir=$(pkglibexecdir)/session-generators
37 # And these are the special ones for /
39 rootbindir=$(rootdir)/bin
40 rootsbindir=$(rootdir)/sbin
41 rootlibexecdir=$(rootdir)/lib/systemd
42 systemunitdir=$(rootdir)/lib/systemd/system
43 systemgeneratordir=$(rootdir)/lib/systemd/system-generators
46 -include $(top_builddir)/config.h \
47 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
48 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
49 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
50 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
51 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
52 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
53 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
54 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
55 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
56 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
57 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
58 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
59 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
60 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
61 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
62 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
63 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
64 -DSESSION_GENERATOR_PATH=\"$(sessiongeneratordir)\" \
69 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
70 -DKBD_SETFONT=\"/usr/bin/setfont\" \
71 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
75 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
76 -DKBD_SETFONT=\"/usr/bin/setfont\" \
77 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
80 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
81 -DKBD_SETFONT=\"/bin/setfont\" \
82 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
90 systemd-ask-password \
91 systemd-tty-ask-password-agent
99 systemd-gnome-ask-password-agent
102 rootlibexec_PROGRAMS = \
104 systemd-cgroups-agent \
106 systemd-update-utmp \
107 systemd-random-seed \
110 systemd-modules-load \
111 systemd-remount-api-vfs \
112 systemd-kmsg-syslogd \
113 systemd-vconsole-setup \
114 systemd-reply-password \
115 systemd-readahead-collect \
116 systemd-readahead-replay \
118 systemd-user-sessions \
125 systemgenerator_PROGRAMS = \
126 systemd-cryptsetup-generator
139 pamlib_LTLIBRARIES = \
143 dist_pkgsysconf_DATA = \
146 dist_dbuspolicy_DATA = \
147 src/org.freedesktop.systemd1.conf
149 dist_dbussystemservice_DATA = \
150 src/org.freedesktop.systemd1.service
152 dist_udevrules_DATA = \
155 dbusinterface_DATA = \
156 org.freedesktop.systemd1.Manager.xml \
157 org.freedesktop.systemd1.Job.xml \
158 org.freedesktop.systemd1.Unit.xml \
159 org.freedesktop.systemd1.Service.xml \
160 org.freedesktop.systemd1.Socket.xml \
161 org.freedesktop.systemd1.Timer.xml \
162 org.freedesktop.systemd1.Target.xml \
163 org.freedesktop.systemd1.Device.xml \
164 org.freedesktop.systemd1.Mount.xml \
165 org.freedesktop.systemd1.Automount.xml \
166 org.freedesktop.systemd1.Snapshot.xml \
167 org.freedesktop.systemd1.Swap.xml \
168 org.freedesktop.systemd1.Path.xml
170 dist_bashcompletion_DATA = \
171 src/systemctl-bash-completion.sh
173 dist_tmpfiles_DATA = \
174 tmpfiles.d/systemd.conf \
177 dist_systemunit_DATA = \
178 units/emergency.service \
179 units/emergency.target \
180 units/sysinit.target \
185 units/local-fs.target \
186 units/network.target \
187 units/nss-lookup.target \
188 units/mail-transfer-agent.target \
189 units/http-daemon.target \
190 units/poweroff.target \
191 units/reboot.target \
192 units/rescue.target \
193 units/rpcbind.target \
194 units/rtc-set.target \
195 units/shutdown.target \
197 units/umount.target \
198 units/sigpwr.target \
199 units/sockets.target \
202 units/systemd-initctl.socket \
203 units/systemd-logger.socket \
204 units/systemd-shutdownd.socket \
205 units/syslog.socket \
206 units/dev-hugepages.automount \
207 units/dev-hugepages.mount \
208 units/dev-mqueue.automount \
209 units/dev-mqueue.mount \
210 units/proc-sys-fs-binfmt_misc.automount \
211 units/proc-sys-fs-binfmt_misc.mount \
212 units/sys-kernel-debug.automount \
213 units/sys-kernel-debug.mount \
214 units/sys-kernel-security.automount \
215 units/sys-kernel-security.mount \
217 units/var-lock.mount \
218 units/var-run.mount \
219 units/hwclock-load.service \
220 units/hwclock-save.service \
221 units/sysctl.service \
222 units/remount-rootfs.service \
223 units/printer.target \
224 units/bluetooth.target \
225 units/smartcard.target \
226 units/systemd-readahead-done.timer \
227 units/systemd-tmpfiles-clean.timer \
228 units/quotaon.service \
229 units/systemd-ask-password-wall.path \
230 units/systemd-ask-password-plymouth.path
232 nodist_systemunit_DATA = \
233 units/getty@.service \
234 units/serial-getty@.service \
235 units/graphical.target \
236 units/remote-fs.target \
237 units/multi-user.target \
238 units/systemd-initctl.service \
239 units/systemd-logger.service \
240 units/systemd-shutdownd.service \
241 units/systemd-kmsg-syslogd.service \
242 units/systemd-modules-load.service \
243 units/systemd-vconsole-setup.service \
244 units/systemd-remount-api-vfs.service \
245 units/systemd-update-utmp-runlevel.service \
246 units/systemd-update-utmp-shutdown.service \
247 units/systemd-random-seed-save.service \
248 units/systemd-random-seed-load.service \
249 units/systemd-readahead-collect.service \
250 units/systemd-readahead-replay.service \
251 units/systemd-readahead-done.service \
252 units/systemd-tmpfiles-setup.service \
253 units/systemd-tmpfiles-clean.service \
254 units/systemd-user-sessions.service \
255 units/systemd-ask-password-wall.service \
256 units/systemd-ask-password-plymouth.service \
257 units/syslog.target \
259 units/poweroff.service \
260 units/reboot.service \
261 units/kexec.service \
262 units/fsck@.service \
263 units/fsck-root.service \
264 units/quotacheck.service \
267 dist_sessionunit_DATA = \
268 units/session/default.target \
269 units/session/exit.target
271 nodist_sessionunit_DATA = \
272 units/session/remote-fs.target \
273 units/session/exit.service
276 units/getty@.service.m4 \
277 units/serial-getty@.service.m4 \
278 units/graphical.target.m4 \
279 units/multi-user.target.m4 \
280 units/remote-fs.target.m4 \
281 units/rescue.service.m4 \
282 units/systemd-initctl.service.in \
283 units/systemd-logger.service.in \
284 units/systemd-shutdownd.service.in \
285 units/systemd-kmsg-syslogd.service.in \
286 units/systemd-modules-load.service.in \
287 units/systemd-vconsole-setup.service.in \
288 units/systemd-remount-api-vfs.service.in \
289 units/systemd-update-utmp-runlevel.service.in \
290 units/systemd-update-utmp-shutdown.service.in \
291 units/systemd-random-seed-save.service.in \
292 units/systemd-random-seed-load.service.in \
293 units/systemd-readahead-collect.service.in \
294 units/systemd-readahead-replay.service.in \
295 units/systemd-readahead-done.service.in \
296 units/systemd-tmpfiles-setup.service.in \
297 units/systemd-tmpfiles-clean.service.in \
298 units/systemd-user-sessions.service.in \
299 units/systemd-ask-password-wall.service.in \
300 units/systemd-ask-password-plymouth.service.in \
301 units/syslog.target.in \
302 units/halt.service.in \
303 units/poweroff.service.in \
304 units/reboot.service.in \
305 units/kexec.service.in \
306 units/session/exit.service.in \
307 units/fsck@.service.in \
308 units/fsck-root.service.in \
309 units/quotacheck.service.in \
313 dist_systemunit_DATA += \
314 units/fedora/prefdm.service \
315 units/fedora/rc-local.service \
316 units/fedora/halt-local.service \
317 units/fedora/plymouth-start.service \
318 units/fedora/plymouth-read-write.service \
319 units/fedora/plymouth-quit.service \
320 units/fedora/plymouth-reboot.service \
321 units/fedora/plymouth-kexec.service \
322 units/fedora/plymouth-poweroff.service \
323 units/fedora/plymouth-halt.service
326 if TARGET_DEBIAN_OR_UBUNTU
327 dist_systemunit_DATA += \
328 units/debian/umountfs.service \
329 units/debian/umountnfs.service \
330 units/debian/umountroot.service
334 dist_systemunit_DATA += \
335 units/gentoo/xdm.service
339 dist_systemunit_DATA += \
340 units/arch/rc-local.service
352 pkgconfigdata_DATA = \
355 dist_polkitpolicy_DATA = \
356 src/org.freedesktop.systemd1.policy
358 noinst_LTLIBRARIES = \
359 libsystemd-basic.la \
362 libsystemd_basic_la_SOURCES = \
373 libsystemd_basic_la_CFLAGS = \
377 libsystemd_basic_la_LIBADD = \
380 libsystemd_core_la_SOURCES = \
385 src/load-fragment.c \
409 src/dbus-automount.c \
411 src/dbus-snapshot.c \
417 src/hostname-setup.c \
418 src/selinux-setup.c \
419 src/loopback-setup.c \
430 libsystemd_core_la_CFLAGS = \
438 libsystemd_core_la_LIBADD = \
439 libsystemd-basic.la \
446 # This is needed because automake is buggy in how it generates the
447 # rules for C programs, but not Vala programs. We therefore can't
448 # list the .h files as dependencies if we want make dist to work.
451 ${libsystemd_basic_la_SOURCES:.c=.h} \
452 ${libsystemd_core_la_SOURCES:.c=.h} \
458 src/linux/auto_dev-ioctl.h \
459 src/linux/fanotify.h \
470 src/readahead-common.h
477 man/systemd-notify.1 \
481 man/sd_listen_fds.3 \
484 man/systemd.service.5 \
485 man/systemd.socket.5 \
486 man/systemd.mount.5 \
487 man/systemd.automount.5 \
489 man/systemd.timer.5 \
491 man/systemd.target.5 \
492 man/systemd.device.5 \
493 man/systemd.snapshot.5 \
510 man/sd_is_socket_unix.3 \
511 man/sd_is_socket_inet.3 \
515 man/reboot.8: man/halt.8
516 man/poweroff.8: man/halt.8
517 man/sd_is_socket.3: man/sd_is_fifo.3
518 man/sd_is_socket_unix.3: man/sd_is_fifo.3
519 man/sd_is_socket_inet.3: man/sd_is_fifo.3
520 man/sd_notifyf.3: man/sd_notify.3
521 man/init.1: man/systemd.1
528 man/systemd.special.7
531 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
534 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
537 ${XML_FILES:.xml=.html}
539 nodist_noinst_DATA = \
540 ${XML_IN_FILES:.xml.in=.html}
545 ${nodist_man_MANS:=.in} \
546 ${XML_IN_FILES:.xml.in=.html.in}
559 test_engine_SOURCES = \
562 test_engine_CFLAGS = $(systemd_CFLAGS)
563 test_engine_LDADD = $(systemd_LDADD)
565 test_job_type_SOURCES = \
568 test_job_type_CFLAGS = $(systemd_CFLAGS)
569 test_job_type_LDADD = $(systemd_LDADD)
574 test_ns_CFLAGS = $(systemd_CFLAGS)
575 test_ns_LDADD = $(systemd_LDADD)
577 test_loopback_SOURCES = \
578 src/test-loopback.c \
581 test_loopback_LDADD = \
584 test_hostname_SOURCES = \
585 src/test-hostname.c \
588 test_hostname_LDADD = \
591 test_daemon_SOURCES = \
595 test_daemon_LDADD = \
598 test_cgroup_SOURCES = \
602 test_cgroup_CFLAGS = \
605 test_cgroup_LDADD = \
608 test_env_replace_SOURCES = \
609 src/test-env-replace.c
611 test_env_replace_CFLAGS = \
614 test_env_replace_LDADD = \
617 systemd_logger_SOURCES = \
622 systemd_logger_LDADD = \
623 libsystemd-basic.la \
626 systemd_initctl_SOURCES = \
631 systemd_initctl_CFLAGS = \
635 systemd_initctl_LDADD = \
636 libsystemd-basic.la \
639 systemd_update_utmp_SOURCES = \
644 systemd_update_utmp_CFLAGS = \
649 systemd_update_utmp_LDADD = \
650 libsystemd-basic.la \
654 systemd_random_seed_SOURCES = \
657 systemd_random_seed_CFLAGS = \
660 systemd_random_seed_LDADD = \
663 systemd_shutdownd_SOURCES = \
668 systemd_shutdownd_CFLAGS = \
671 systemd_shutdownd_LDADD = \
674 systemd_shutdown_SOURCES = \
679 systemd_shutdown_CFLAGS = \
683 systemd_shutdown_LDADD = \
684 libsystemd-basic.la \
687 systemd_modules_load_SOURCES = \
690 systemd_modules_load_CFLAGS = \
693 systemd_modules_load_LDADD = \
696 systemd_tmpfiles_SOURCES = \
699 systemd_tmpfiles_CFLAGS = \
702 systemd_tmpfiles_LDADD = \
705 systemd_fsck_SOURCES = \
709 systemd_fsck_CFLAGS = \
714 systemd_fsck_LDADD = \
715 libsystemd-basic.la \
719 systemd_quotacheck_SOURCES = \
722 systemd_quotacheck_CFLAGS = \
725 systemd_quotacheck_LDADD = \
728 systemd_timestamp_SOURCES = \
731 systemd_timestamp_CFLAGS = \
734 systemd_timestamp_LDADD = \
737 systemd_ac_power_SOURCES = \
740 systemd_ac_power_CFLAGS = \
744 systemd_ac_power_LDADD = \
745 libsystemd-basic.la \
748 systemd_cryptsetup_SOURCES = \
751 systemd_cryptsetup_CFLAGS = \
754 systemd_cryptsetup_LDADD = \
757 systemd_cryptsetup_generator_SOURCES = \
758 src/cryptsetup-generator.c \
761 systemd_cryptsetup_generator_CFLAGS = \
764 systemd_cryptsetup_generator_LDADD = \
767 systemd_user_sessions_SOURCES = \
768 src/user-sessions.c \
771 systemd_user_sessions_CFLAGS = \
774 systemd_user_sessions_LDADD = \
777 systemd_vconsole_setup_SOURCES = \
780 systemd_vconsole_setup_CFLAGS = \
783 systemd_vconsole_setup_LDADD = \
786 systemd_remount_api_vfs_SOURCES = \
787 src/remount-api-vfs.c \
790 systemd_remount_api_vfs_CFLAGS = \
793 systemd_remount_api_vfs_LDADD = \
796 systemd_cgroups_agent_SOURCES = \
797 src/cgroups-agent.c \
800 systemd_cgroups_agent_CFLAGS = \
804 systemd_cgroups_agent_LDADD = \
805 libsystemd-basic.la \
808 systemd_kmsg_syslogd_SOURCES = \
813 systemd_kmsg_syslogd_CFLAGS = \
816 systemd_kmsg_syslogd_LDADD = \
819 systemctl_SOURCES = \
835 libsystemd-basic.la \
838 systemd_notify_SOURCES = \
843 systemd_notify_LDADD = \
846 systemd_ask_password_SOURCES = \
849 systemd_ask_password_LDADD = \
852 systemd_reply_password_SOURCES = \
855 systemd_reply_password_LDADD = \
858 systemd_readahead_collect_SOURCES = \
859 src/readahead-collect.c \
861 src/readahead-common.c
863 systemd_readahead_collect_CFLAGS = \
866 systemd_readahead_collect_LDADD = \
867 libsystemd-basic.la \
870 systemd_readahead_replay_SOURCES = \
871 src/readahead-replay.c \
873 src/readahead-common.c
875 systemd_readahead_replay_CFLAGS = \
878 systemd_readahead_replay_LDADD = \
879 libsystemd-basic.la \
882 systemd_cgls_SOURCES = \
887 systemd_cgls_CFLAGS = \
890 systemd_cgls_LDADD = \
893 systemadm_SOURCES = \
895 src/systemd-interfaces.vala
901 -Wno-unused-variable \
902 -Wno-unused-function \
904 -Wno-format-nonliteral
906 systemadm_VALAFLAGS = \
916 systemd_gnome_ask_password_agent_SOURCES = \
917 src/gnome-ask-password-agent.vala
919 systemd_gnome_ask_password_agent_CFLAGS = \
923 -Wno-unused-variable \
924 -Wno-unused-function \
926 -Wno-format-nonliteral
928 systemd_gnome_ask_password_agent_VALAFLAGS = \
937 systemd_gnome_ask_password_agent_LDADD = \
941 systemd_tty_ask_password_agent_SOURCES = \
942 src/tty-ask-password-agent.c \
945 systemd_tty_ask_password_agent_LDADD = \
948 pam_systemd_la_SOURCES = \
953 pam_systemd_la_CFLAGS = \
957 pam_systemd_la_LDFLAGS = \
962 -export-symbols-regex '^pam_sm_.*'
964 pam_systemd_la_LIBADD = \
965 libsystemd-basic.la \
969 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
970 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
971 -e 's,@rootbindir\@,$(rootbindir),g' \
972 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
973 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
974 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
975 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
976 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
977 -e 's,@systemunitdir\@,$(systemunitdir),g' \
978 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
979 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
980 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
981 -e 's,@prefix\@,$(prefix),g' \
984 units/%: units/%.in Makefile
987 man/%: man/%.in Makefile
990 %.pc: %.pc.in Makefile
993 M4_PROCESS_SYSTEM = \
994 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
995 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
997 M4_PROCESS_SESSION = \
998 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
999 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@ || rm $@
1001 units/%: units/%.m4 Makefile
1002 $(M4_PROCESS_SYSTEM)
1004 units/session/%: units/%.m4 Makefile
1005 $(M4_PROCESS_SESSION)
1008 $(nodist_systemunit_DATA) \
1009 $(nodist_sessionunit_DATA) \
1010 $(nodist_man_MANS) \
1011 ${XML_IN_FILES:.xml.in=.html} \
1012 $(pkgconfigdata_DATA)
1016 ${systemadm_SOURCES:.vala=.c}
1022 --param funcsynopsis.style "'ansi'"
1024 XSLTPROC_PROCESS_MAN = \
1025 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1026 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1028 XSLTPROC_PROCESS_MAN_IN = \
1029 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1030 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1033 XSLTPROC_PROCESS_HTML = \
1034 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1035 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1037 XSLTPROC_PROCESS_HTML_IN = \
1038 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1039 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1043 $(XSLTPROC_PROCESS_MAN)
1045 man/%.1.in: man/%.xml.in
1046 $(XSLTPROC_PROCESS_MAN)
1049 $(XSLTPROC_PROCESS_MAN)
1051 man/%.3.in: man/%.xml.in
1052 $(XSLTPROC_PROCESS_MAN)
1055 $(XSLTPROC_PROCESS_MAN)
1057 man/%.5.in: man/%.xml.in
1058 $(XSLTPROC_PROCESS_MAN)
1061 $(XSLTPROC_PROCESS_MAN)
1063 man/%.7.in: man/%.xml.in
1064 $(XSLTPROC_PROCESS_MAN_IN)
1067 $(XSLTPROC_PROCESS_MAN)
1069 man/%.8.in: man/%.xml.in
1070 $(XSLTPROC_PROCESS_MAN_IN)
1072 man/%.html: man/%.xml
1073 $(XSLTPROC_PROCESS_HTML)
1075 man/%.html.in: man/%.xml.in
1076 $(XSLTPROC_PROCESS_HTML_IN)
1080 ${nodist_man_MANS:=.in} \
1081 ${XML_FILES:.xml=.html} \
1082 ${XML_IN_FILES:.xml.in=.html.in}
1085 org.freedesktop.systemd1.%.xml: systemd
1086 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
1089 $(dbusinterface_DATA)
1092 $(MKDIR_P) -m 0755 \
1093 $(DESTDIR)$(systemunitdir) \
1094 $(DESTDIR)$(sessionunitdir) \
1095 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1096 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1097 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1098 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1099 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1100 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1101 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1102 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1103 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1104 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1105 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1106 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1107 $(DESTDIR)$(pkgsysconfdir)/system \
1108 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1109 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1110 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1111 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1112 $(DESTDIR)$(pkgsysconfdir)/session \
1113 $(DESTDIR)$(sysconfdir)/xdg/systemd
1114 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1116 $(LN_S) $(pkgsysconfdir)/session session )
1117 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1118 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1119 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1120 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1121 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1122 $(LN_S) ../syslog.socket syslog.socket )
1123 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.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)/runlevel2.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)/runlevel3.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)/runlevel4.target.wants && \
1133 rm -f systemd-update-utmp-runlevel.service && \
1134 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1135 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1136 rm -f systemd-update-utmp-runlevel.service && \
1137 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1138 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1139 rm -f systemd-update-utmp-shutdown.service \
1140 hwclock-save.service \
1141 systemd-random-seed-save.service && \
1142 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1143 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1144 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1145 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1146 rm -f systemd-remount-api-vfs.service \
1148 remount-rootfs.service \
1151 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1152 $(LN_S) ../fsck-root.service fsck-root.service && \
1153 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1154 $(LN_S) ../var-run.mount var-run.mount && \
1155 $(LN_S) ../var-lock.mount var-lock.mount )
1156 ( cd $(DESTDIR)$(sessionunitdir) && \
1157 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
1158 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1159 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1160 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1161 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1162 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1163 $(LN_S) $(systemunitdir)/printer.target printer.target)
1164 ( cd $(DESTDIR)$(systemunitdir) && \
1165 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1166 $(LN_S) poweroff.target runlevel0.target && \
1167 $(LN_S) rescue.target runlevel1.target && \
1168 $(LN_S) multi-user.target runlevel2.target && \
1169 $(LN_S) multi-user.target runlevel3.target && \
1170 $(LN_S) multi-user.target runlevel4.target && \
1171 $(LN_S) graphical.target runlevel5.target && \
1172 $(LN_S) reboot.target runlevel6.target )
1173 ( cd $(DESTDIR)$(systemunitdir) && \
1174 rm -f default.target ctrl-alt-del.target && \
1175 $(LN_S) graphical.target default.target && \
1176 $(LN_S) reboot.target ctrl-alt-del.target )
1177 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1178 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1179 $(LN_S) ../getty.target getty.target && \
1180 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1181 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1182 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1183 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1184 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1185 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1186 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1187 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1188 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1189 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1190 ( cd $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants && \
1191 rm -f quotaon.service quotacheck.service && \
1192 $(LN_S) $(systemunitdir)/quotacheck.service quotacheck.service && \
1193 $(LN_S) $(systemunitdir)/quotaon.service quotaon.service )
1194 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1195 rm -f remote-fs.target && \
1196 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1197 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1198 rm -f hwclock-load.service && \
1199 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1200 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1201 rm -f dev-hugepages.automount \
1202 dev-mqueue.automount \
1203 proc-sys-fs-binfmt_misc.automount \
1204 sys-kernel-debug.automount \
1205 sys-kernel-security.automount \
1206 systemd-vconsole-setup.service \
1207 systemd-modules-load.service \
1208 systemd-random-seed-load.service \
1209 systemd-tmpfiles-setup.service \
1211 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1212 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1213 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1214 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1215 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1216 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1217 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1218 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1219 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1220 $(LN_S) ../sysctl.service sysctl.service )
1221 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1222 rm -f systemd-tmpfiles-clean.timer && \
1223 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1224 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1225 rm -f org.freedesktop.systemd1.service && \
1226 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1228 $(MKDIR_P) -m 0755 \
1229 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1230 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1231 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1232 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1233 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1234 $(DESTDIR)$(systemunitdir)/final.target.wants
1235 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1236 rm -f rc-local.service && \
1237 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1238 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1239 rm -f halt-local.service && \
1240 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1241 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1242 rm -f plymouth-start.service systemd-ask-password-plymouth.path plymouth-read-write.service && \
1243 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1244 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service && \
1245 $(LN_S) ../systemd-ask-password-plymouth.path systemd-ask-password-plymouth.path )
1246 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1247 rm -f plymouth-quit.service && \
1248 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1249 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1250 rm -f plymouth-reboot.service && \
1251 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1252 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1253 rm -f plymouth-kexec.service && \
1254 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1255 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1256 rm -f plymouth-poweroff.service && \
1257 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1258 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1259 rm -f plymouth-halt.service && \
1260 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1261 ( cd $(DESTDIR)$(systemunitdir) && \
1262 rm -f display-manager.service && \
1263 $(LN_S) prefdm.service display-manager.service )
1264 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1265 rm -f display-manager.service && \
1266 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1269 ( cd $(DESTDIR)$(systemunitdir) && \
1270 rm -f display-manager.service && \
1271 $(LN_S) xdm.service display-manager.service )
1272 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1273 rm -f display-manager.service && \
1274 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1276 if TARGET_DEBIAN_OR_UBUNTU
1277 $(MKDIR_P) -m 0755 \
1278 $(DESTDIR)$(systemunitdir)/umount.target.wants
1279 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1280 rm -f umountfs.service umountnfs.service umountroot.service && \
1281 $(LN_S) ../umountfs.service umountfs.service && \
1282 $(LN_S) ../umountnfs.service umountnfs.service && \
1283 $(LN_S) ../umountroot.service umountroot.service )
1284 ( cd $(DESTDIR)$(systemunitdir) && \
1285 rm -f runlevel5.target && \
1286 $(LN_S) multi-user.target runlevel5.target )
1289 DISTCHECK_CONFIGURE_FLAGS = \
1290 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1291 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1292 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1293 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1294 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1295 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1296 --with-rootdir=$$dc_install_base/$(rootdir)
1298 upload: all distcheck
1299 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1300 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1301 scp man/*.html tango:public/systemd-man/
1304 git tag "v$(VERSION)" -m "systemd $(VERSION)"
1306 # Opt out from a few services on Fedora for now, as long as rc.sysinit does this job
1308 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-run.mount
1309 rm $(DESTDIR)/lib/systemd/system/local-fs.target.wants/var-lock.mount