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 userunitdir=$(pkgdatadir)/user
34 tmpfilesdir=$(sysconfdir)/tmpfiles.d
35 usergeneratordir=$(pkglibexecdir)/user-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
44 systemshutdowndir=$(rootdir)/lib/systemd/system-shutdown
47 -include $(top_builddir)/config.h \
48 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
49 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
50 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
51 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
52 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
53 -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
54 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
55 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
56 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
57 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
58 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
59 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
60 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
61 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
62 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
63 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
64 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
65 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
66 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
67 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
72 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
73 -DKBD_SETFONT=\"/usr/bin/setfont\" \
74 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
78 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
79 -DKBD_SETFONT=\"/usr/bin/setfont\" \
80 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
84 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
85 -DKBD_SETFONT=\"/usr/bin/setfont\" \
86 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
90 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
91 -DKBD_SETFONT=\"/bin/setfont\" \
92 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
95 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
96 -DKBD_SETFONT=\"/bin/setfont\" \
97 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
107 systemd-ask-password \
108 systemd-tty-ask-password-agent \
110 systemd-machine-id-setup
114 systemd-stdio-bridge \
120 systemd-gnome-ask-password-agent
123 rootlibexec_PROGRAMS = \
125 systemd-cgroups-agent \
127 systemd-update-utmp \
128 systemd-random-seed \
131 systemd-modules-load \
132 systemd-remount-api-vfs \
133 systemd-kmsg-syslogd \
134 systemd-vconsole-setup \
135 systemd-reply-password \
136 systemd-readahead-collect \
137 systemd-readahead-replay \
138 systemd-user-sessions \
143 systemd-detect-virt \
146 systemgenerator_PROGRAMS = \
147 systemd-getty-generator
149 if HAVE_LIBCRYPTSETUP
150 rootlibexec_PROGRAMS += \
153 systemgenerator_PROGRAMS += \
154 systemd-cryptsetup-generator
169 pamlib_LTLIBRARIES = \
173 dist_pkgsysconf_DATA = \
176 dist_dbuspolicy_DATA = \
177 src/org.freedesktop.systemd1.conf
179 dist_dbussystemservice_DATA = \
180 src/org.freedesktop.systemd1.service
182 dist_udevrules_DATA = \
185 dbusinterface_DATA = \
186 org.freedesktop.systemd1.Manager.xml \
187 org.freedesktop.systemd1.Job.xml \
188 org.freedesktop.systemd1.Unit.xml \
189 org.freedesktop.systemd1.Service.xml \
190 org.freedesktop.systemd1.Socket.xml \
191 org.freedesktop.systemd1.Timer.xml \
192 org.freedesktop.systemd1.Target.xml \
193 org.freedesktop.systemd1.Device.xml \
194 org.freedesktop.systemd1.Mount.xml \
195 org.freedesktop.systemd1.Automount.xml \
196 org.freedesktop.systemd1.Snapshot.xml \
197 org.freedesktop.systemd1.Swap.xml \
198 org.freedesktop.systemd1.Path.xml
200 dist_bashcompletion_DATA = \
201 src/systemctl-bash-completion.sh
203 dist_tmpfiles_DATA = \
204 tmpfiles.d/systemd.conf \
207 dist_systemunit_DATA = \
208 units/graphical.target \
209 units/multi-user.target \
210 units/emergency.service \
211 units/emergency.target \
212 units/sysinit.target \
217 units/local-fs.target \
218 units/cryptsetup.target \
219 units/network.target \
220 units/nss-lookup.target \
221 units/mail-transfer-agent.target \
222 units/http-daemon.target \
223 units/poweroff.target \
224 units/reboot.target \
225 units/rescue.target \
226 units/rpcbind.target \
227 units/rtc-set.target \
228 units/shutdown.target \
230 units/umount.target \
231 units/sigpwr.target \
232 units/sockets.target \
234 units/systemd-initctl.socket \
235 units/systemd-logger.socket \
236 units/systemd-shutdownd.socket \
237 units/syslog.socket \
238 units/dev-hugepages.automount \
239 units/dev-hugepages.mount \
240 units/dev-mqueue.automount \
241 units/dev-mqueue.mount \
242 units/proc-sys-fs-binfmt_misc.automount \
243 units/proc-sys-fs-binfmt_misc.mount \
244 units/sys-kernel-debug.automount \
245 units/sys-kernel-debug.mount \
246 units/sys-kernel-security.automount \
247 units/sys-kernel-security.mount \
248 units/var-lock.mount \
249 units/var-run.mount \
251 units/hwclock-load.service \
252 units/hwclock-save.service \
253 units/remount-rootfs.service \
254 units/printer.target \
256 units/bluetooth.target \
257 units/smartcard.target \
258 units/systemd-readahead-done.timer \
259 units/systemd-tmpfiles-clean.timer \
260 units/quotaon.service \
261 units/systemd-ask-password-wall.path \
262 units/systemd-ask-password-console.path \
265 nodist_systemunit_DATA = \
266 units/getty@.service \
267 units/serial-getty@.service \
268 units/console-shell.service \
269 units/remote-fs.target \
270 units/systemd-initctl.service \
271 units/systemd-logger.service \
272 units/systemd-shutdownd.service \
273 units/systemd-kmsg-syslogd.service \
274 units/systemd-modules-load.service \
275 units/systemd-vconsole-setup.service \
276 units/systemd-remount-api-vfs.service \
277 units/systemd-update-utmp-runlevel.service \
278 units/systemd-update-utmp-shutdown.service \
279 units/systemd-random-seed-save.service \
280 units/systemd-random-seed-load.service \
281 units/systemd-readahead-collect.service \
282 units/systemd-readahead-replay.service \
283 units/systemd-readahead-done.service \
284 units/systemd-tmpfiles-setup.service \
285 units/systemd-tmpfiles-clean.service \
286 units/systemd-user-sessions.service \
287 units/systemd-ask-password-wall.service \
288 units/systemd-ask-password-console.service \
289 units/systemd-sysctl.service \
291 units/poweroff.service \
292 units/reboot.service \
293 units/kexec.service \
294 units/fsck@.service \
295 units/fsck-root.service \
296 units/quotacheck.service \
299 dist_userunit_DATA = \
300 units/user/default.target \
301 units/user/exit.target
303 nodist_userunit_DATA = \
304 units/user/remote-fs.target \
305 units/user/exit.service
308 units/getty@.service.m4 \
309 units/serial-getty@.service.m4 \
310 units/console-shell.service.m4 \
311 units/remote-fs.target.m4 \
312 units/rescue.service.m4 \
313 units/systemd-initctl.service.in \
314 units/systemd-logger.service.in \
315 units/systemd-shutdownd.service.in \
316 units/systemd-kmsg-syslogd.service.in \
317 units/systemd-modules-load.service.in \
318 units/systemd-vconsole-setup.service.in \
319 units/systemd-remount-api-vfs.service.in \
320 units/systemd-update-utmp-runlevel.service.in \
321 units/systemd-update-utmp-shutdown.service.in \
322 units/systemd-random-seed-save.service.in \
323 units/systemd-random-seed-load.service.in \
324 units/systemd-readahead-collect.service.in \
325 units/systemd-readahead-replay.service.in \
326 units/systemd-readahead-done.service.in \
327 units/systemd-tmpfiles-setup.service.in \
328 units/systemd-tmpfiles-clean.service.in \
329 units/systemd-user-sessions.service.in \
330 units/systemd-ask-password-wall.service.in \
331 units/systemd-ask-password-console.service.in \
332 units/systemd-sysctl.service.in \
333 units/halt.service.in \
334 units/poweroff.service.in \
335 units/reboot.service.in \
336 units/kexec.service.in \
337 units/user/exit.service.in \
338 units/fsck@.service.in \
339 units/fsck-root.service.in \
340 units/quotacheck.service.in \
343 src/org.freedesktop.systemd1.policy.in
346 dist_systemunit_DATA += \
347 units/fedora/prefdm.service \
348 units/fedora/rc-local.service \
349 units/fedora/halt-local.service
353 dist_systemunit_DATA += \
354 units/mandriva/prefdm.service \
355 units/fedora/rc-local.service \
356 units/fedora/halt-local.service
360 dist_systemunit_DATA += \
361 units/frugalware/display-manager.service
365 dist_systemunit_DATA += \
366 units/plymouth-start.service \
367 units/plymouth-read-write.service \
368 units/plymouth-quit.service \
369 units/plymouth-quit-wait.service \
370 units/plymouth-reboot.service \
371 units/plymouth-kexec.service \
372 units/plymouth-poweroff.service \
373 units/plymouth-halt.service \
374 units/systemd-ask-password-plymouth.path
376 nodist_systemunit_DATA += \
377 units/systemd-ask-password-plymouth.service
380 units/systemd-ask-password-plymouth.service.in
392 pkgconfigdata_DATA = \
395 polkitpolicy_DATA = \
396 src/org.freedesktop.systemd1.policy
398 noinst_LTLIBRARIES = \
399 libsystemd-basic.la \
403 libsystemd_basic_la_SOURCES = \
415 libsystemd_basic_la_CFLAGS = \
419 libsystemd_basic_la_LIBADD = \
422 libsystemd_core_la_SOURCES = \
427 src/load-fragment.c \
450 src/dbus-automount.c \
452 src/dbus-snapshot.c \
458 src/hostname-setup.c \
459 src/selinux-setup.c \
460 src/loopback-setup.c \
463 src/machine-id-setup.c \
472 libsystemd_core_la_CFLAGS = \
480 libsystemd_core_la_LIBADD = \
481 libsystemd-basic.la \
488 libsystemd_daemon_la_SOURCES = \
491 # This is needed because automake is buggy in how it generates the
492 # rules for C programs, but not Vala programs. We therefore can't
493 # list the .h files as dependencies if we want make dist to work.
496 ${libsystemd_basic_la_SOURCES:.c=.h} \
497 ${libsystemd_core_la_SOURCES:.c=.h} \
498 ${libsystemd_daemon_la_SOURCES:.c=.h} \
505 src/linux/auto_dev-ioctl.h \
506 src/linux/fanotify.h \
516 src/readahead-common.h \
517 src/ask-password-api.h
524 man/systemd-nspawn.1 \
525 man/systemd-tmpfiles.8 \
526 man/systemd-notify.1 \
530 man/sd_listen_fds.3 \
533 man/systemd.service.5 \
534 man/systemd.socket.5 \
535 man/systemd.mount.5 \
536 man/systemd.automount.5 \
538 man/systemd.timer.5 \
540 man/systemd.target.5 \
541 man/systemd.device.5 \
542 man/systemd.snapshot.5 \
556 man/vconsole.conf.5 \
565 man/sd_is_socket_unix.3 \
566 man/sd_is_socket_inet.3 \
570 man/reboot.8: man/halt.8
571 man/poweroff.8: man/halt.8
572 man/sd_is_socket.3: man/sd_is_fifo.3
573 man/sd_is_socket_unix.3: man/sd_is_fifo.3
574 man/sd_is_socket_inet.3: man/sd_is_fifo.3
575 man/sd_notifyf.3: man/sd_notify.3
576 man/init.1: man/systemd.1
583 man/systemd.special.7
586 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
589 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
592 ${XML_FILES:.xml=.html}
594 nodist_noinst_DATA = \
595 ${XML_IN_FILES:.xml.in=.html}
600 ${nodist_man_MANS:=.in} \
601 ${XML_IN_FILES:.xml.in=.html.in}
614 test_engine_SOURCES = \
617 test_engine_CFLAGS = $(systemd_CFLAGS)
618 test_engine_LDADD = $(systemd_LDADD)
620 test_job_type_SOURCES = \
623 test_job_type_CFLAGS = $(systemd_CFLAGS)
624 test_job_type_LDADD = $(systemd_LDADD)
629 test_ns_CFLAGS = $(systemd_CFLAGS)
630 test_ns_LDADD = $(systemd_LDADD)
632 test_loopback_SOURCES = \
633 src/test-loopback.c \
636 test_loopback_LDADD = \
639 test_hostname_SOURCES = \
640 src/test-hostname.c \
643 test_hostname_LDADD = \
646 test_daemon_SOURCES = \
649 test_daemon_LDADD = \
650 libsystemd-basic.la \
653 test_cgroup_SOURCES = \
657 test_cgroup_CFLAGS = \
660 test_cgroup_LDADD = \
663 test_env_replace_SOURCES = \
664 src/test-env-replace.c
666 test_env_replace_CFLAGS = \
669 test_env_replace_LDADD = \
672 test_strv_SOURCES = \
682 systemd_logger_SOURCES = \
686 systemd_logger_LDADD = \
687 libsystemd-basic.la \
688 libsystemd-daemon.la \
691 systemd_initctl_SOURCES = \
695 systemd_initctl_CFLAGS = \
699 systemd_initctl_LDADD = \
700 libsystemd-basic.la \
701 libsystemd-daemon.la \
704 systemd_update_utmp_SOURCES = \
709 systemd_update_utmp_CFLAGS = \
714 systemd_update_utmp_LDADD = \
715 libsystemd-basic.la \
719 systemd_random_seed_SOURCES = \
722 systemd_random_seed_CFLAGS = \
725 systemd_random_seed_LDADD = \
728 systemd_shutdownd_SOURCES = \
732 systemd_shutdownd_CFLAGS = \
735 systemd_shutdownd_LDADD = \
736 libsystemd-basic.la \
739 systemd_shutdown_SOURCES = \
744 systemd_shutdown_CFLAGS = \
748 systemd_shutdown_LDADD = \
749 libsystemd-basic.la \
752 systemd_modules_load_SOURCES = \
755 systemd_modules_load_CFLAGS = \
758 systemd_modules_load_LDADD = \
761 systemd_tmpfiles_SOURCES = \
764 systemd_tmpfiles_CFLAGS = \
767 systemd_tmpfiles_LDADD = \
770 systemd_machine_id_setup_SOURCES = \
771 src/machine-id-setup.c \
772 src/machine-id-main.c
774 systemd_machine_id_setup_CFLAGS = \
777 systemd_machine_id_setup_LDADD = \
780 systemd_sysctl_SOURCES = \
783 systemd_sysctl_CFLAGS = \
786 systemd_sysctl_LDADD = \
789 systemd_fsck_SOURCES = \
793 systemd_fsck_CFLAGS = \
798 systemd_fsck_LDADD = \
799 libsystemd-basic.la \
803 systemd_quotacheck_SOURCES = \
806 systemd_quotacheck_CFLAGS = \
809 systemd_quotacheck_LDADD = \
812 systemd_timestamp_SOURCES = \
815 systemd_timestamp_CFLAGS = \
818 systemd_timestamp_LDADD = \
821 systemd_ac_power_SOURCES = \
824 systemd_ac_power_CFLAGS = \
828 systemd_ac_power_LDADD = \
829 libsystemd-basic.la \
832 systemd_detect_virt_SOURCES = \
835 systemd_detect_virt_CFLAGS = \
838 systemd_detect_virt_LDADD = \
841 systemd_cryptsetup_SOURCES = \
843 src/ask-password-api.c
845 systemd_cryptsetup_CFLAGS = \
846 $(LIBCRYPTSETUP_CFLAGS) \
850 systemd_cryptsetup_LDADD = \
851 $(LIBCRYPTSETUP_LIBS) \
855 systemd_cryptsetup_generator_SOURCES = \
856 src/cryptsetup-generator.c \
859 systemd_cryptsetup_generator_CFLAGS = \
862 systemd_cryptsetup_generator_LDADD = \
865 systemd_getty_generator_SOURCES = \
866 src/getty-generator.c \
869 systemd_getty_generator_CFLAGS = \
872 systemd_getty_generator_LDADD = \
875 systemd_user_sessions_SOURCES = \
876 src/user-sessions.c \
879 systemd_user_sessions_CFLAGS = \
882 systemd_user_sessions_LDADD = \
885 systemd_vconsole_setup_SOURCES = \
888 systemd_vconsole_setup_CFLAGS = \
891 systemd_vconsole_setup_LDADD = \
894 systemd_remount_api_vfs_SOURCES = \
895 src/remount-api-vfs.c \
899 systemd_remount_api_vfs_CFLAGS = \
902 systemd_remount_api_vfs_LDADD = \
905 systemd_cgroups_agent_SOURCES = \
906 src/cgroups-agent.c \
909 systemd_cgroups_agent_CFLAGS = \
913 systemd_cgroups_agent_LDADD = \
914 libsystemd-basic.la \
917 systemd_kmsg_syslogd_SOURCES = \
921 systemd_kmsg_syslogd_CFLAGS = \
924 systemd_kmsg_syslogd_LDADD = \
925 libsystemd-basic.la \
928 systemctl_SOURCES = \
943 libsystemd-basic.la \
944 libsystemd-daemon.la \
947 systemd_notify_SOURCES = \
951 systemd_notify_LDADD = \
952 libsystemd-basic.la \
955 systemd_ask_password_SOURCES = \
957 src/ask-password-api.c
959 systemd_ask_password_LDADD = \
962 systemd_reply_password_SOURCES = \
965 systemd_reply_password_LDADD = \
968 systemd_readahead_collect_SOURCES = \
969 src/readahead-collect.c \
970 src/readahead-common.c
972 systemd_readahead_collect_CFLAGS = \
975 systemd_readahead_collect_LDADD = \
976 libsystemd-basic.la \
977 libsystemd-daemon.la \
980 systemd_readahead_replay_SOURCES = \
981 src/readahead-replay.c \
982 src/readahead-common.c
984 systemd_readahead_replay_CFLAGS = \
987 systemd_readahead_replay_LDADD = \
988 libsystemd-basic.la \
989 libsystemd-daemon.la \
992 systemd_cgls_SOURCES = \
997 systemd_cgls_CFLAGS = \
1000 systemd_cgls_LDADD = \
1003 systemd_nspawn_SOURCES = \
1007 systemd_nspawn_CFLAGS = \
1010 systemd_nspawn_LDADD = \
1011 libsystemd-basic.la \
1012 libsystemd-daemon.la
1014 systemd_stdio_bridge_SOURCES = \
1017 systemd_stdio_bridge_LDADD = \
1020 systemadm_SOURCES = \
1021 src/systemadm.vala \
1022 src/systemd-interfaces.vala
1024 systemadm_CFLAGS = \
1027 -Wno-unused-variable \
1028 -Wno-unused-function \
1030 -Wno-format-nonliteral
1032 systemadm_VALAFLAGS = \
1040 systemd_gnome_ask_password_agent_SOURCES = \
1041 src/gnome-ask-password-agent.vala
1043 systemd_gnome_ask_password_agent_CFLAGS = \
1045 $(LIBNOTIFY_CFLAGS) \
1047 -Wno-unused-variable \
1048 -Wno-unused-function \
1050 -Wno-format-nonliteral
1052 systemd_gnome_ask_password_agent_VALAFLAGS = \
1056 --pkg=gio-unix-2.0 \
1059 systemd_gnome_ask_password_agent_VALAFLAGS += \
1062 systemd_gnome_ask_password_agent_VALAFLAGS += \
1065 systemd_gnome_ask_password_agent_LDADD = \
1069 systemd_tty_ask_password_agent_SOURCES = \
1070 src/tty-ask-password-agent.c \
1071 src/ask-password-api.c \
1074 systemd_tty_ask_password_agent_LDADD = \
1077 pam_systemd_la_SOURCES = \
1081 pam_systemd_la_CFLAGS = \
1085 pam_systemd_la_LDFLAGS = \
1090 -export-symbols-regex '^pam_sm_.*'
1092 pam_systemd_la_LIBADD = \
1093 libsystemd-basic.la \
1094 libsystemd-daemon.la \
1098 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1099 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
1100 -e 's,@rootbindir\@,$(rootbindir),g' \
1101 -e 's,@bindir\@,$(bindir),g' \
1102 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
1103 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
1104 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
1105 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
1106 -e 's,@systemunitdir\@,$(systemunitdir),g' \
1107 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
1108 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
1109 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
1110 -e 's,@prefix\@,$(prefix),g' \
1113 units/%: units/%.in Makefile
1116 man/%: man/%.in Makefile
1119 %.pc: %.pc.in Makefile
1122 src/%.policy: src/%.policy.in Makefile
1125 M4_PROCESS_SYSTEM = \
1126 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1127 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@ || rm $@
1130 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1131 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_USER=1 < $< > $@ || rm $@
1133 units/%: units/%.m4 Makefile
1134 $(M4_PROCESS_SYSTEM)
1136 units/user/%: units/%.m4 Makefile
1140 $(nodist_systemunit_DATA) \
1141 $(nodist_userunit_DATA) \
1142 $(nodist_man_MANS) \
1143 ${XML_IN_FILES:.xml.in=.html} \
1144 $(pkgconfigdata_DATA) \
1145 src/org.freedesktop.systemd1.policy
1149 ${systemadm_SOURCES:.vala=.c}
1155 --param funcsynopsis.style "'ansi'"
1157 XSLTPROC_PROCESS_MAN = \
1158 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1159 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
1161 XSLTPROC_PROCESS_MAN_IN = \
1162 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1163 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
1166 XSLTPROC_PROCESS_HTML = \
1167 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1168 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
1170 XSLTPROC_PROCESS_HTML_IN = \
1171 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
1172 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
1176 $(XSLTPROC_PROCESS_MAN)
1178 man/%.1.in: man/%.xml.in
1179 $(XSLTPROC_PROCESS_MAN)
1182 $(XSLTPROC_PROCESS_MAN)
1184 man/%.3.in: man/%.xml.in
1185 $(XSLTPROC_PROCESS_MAN)
1188 $(XSLTPROC_PROCESS_MAN)
1190 man/%.5.in: man/%.xml.in
1191 $(XSLTPROC_PROCESS_MAN)
1194 $(XSLTPROC_PROCESS_MAN)
1196 man/%.7.in: man/%.xml.in
1197 $(XSLTPROC_PROCESS_MAN_IN)
1200 $(XSLTPROC_PROCESS_MAN)
1202 man/%.8.in: man/%.xml.in
1203 $(XSLTPROC_PROCESS_MAN_IN)
1205 man/%.html: man/%.xml
1206 $(XSLTPROC_PROCESS_HTML)
1208 man/%.html.in: man/%.xml.in
1209 $(XSLTPROC_PROCESS_HTML_IN)
1213 ${nodist_man_MANS:=.in} \
1214 ${XML_FILES:.xml=.html} \
1215 ${XML_IN_FILES:.xml.in=.html.in}
1218 DBUS_PREPROCESS = $(CPP) -P $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
1220 org.freedesktop.systemd1.%.xml: systemd
1221 $(AM_V_GEN)$(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1222 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1223 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1226 $(dbusinterface_DATA)
1229 $(MKDIR_P) -m 0755 \
1230 $(DESTDIR)$(systemunitdir) \
1231 $(DESTDIR)$(userunitdir) \
1232 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
1233 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
1234 $(DESTDIR)$(systemunitdir)/basic.target.wants \
1235 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
1236 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
1237 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
1238 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
1239 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
1240 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
1241 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
1242 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
1243 $(DESTDIR)$(systemunitdir)/graphical.target.wants \
1244 $(DESTDIR)$(pkgsysconfdir)/system \
1245 $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants \
1246 $(DESTDIR)$(pkgsysconfdir)/system/local-fs.target.wants \
1247 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
1248 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
1249 $(DESTDIR)$(pkgsysconfdir)/user \
1250 $(DESTDIR)$(sysconfdir)/xdg/systemd
1251 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
1253 $(LN_S) $(pkgsysconfdir)/user user )
1254 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
1255 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket syslog.socket && \
1256 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
1257 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
1258 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket && \
1259 $(LN_S) ../syslog.socket syslog.socket )
1260 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
1261 rm -f systemd-update-utmp-runlevel.service && \
1262 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1263 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
1264 rm -f systemd-update-utmp-runlevel.service && \
1265 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1266 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
1267 rm -f systemd-update-utmp-runlevel.service && \
1268 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1269 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
1270 rm -f systemd-update-utmp-runlevel.service && \
1271 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1272 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
1273 rm -f systemd-update-utmp-runlevel.service && \
1274 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
1275 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
1276 rm -f systemd-update-utmp-shutdown.service \
1277 hwclock-save.service \
1278 systemd-random-seed-save.service && \
1279 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
1280 $(LN_S) ../hwclock-save.service hwclock-save.service && \
1281 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
1282 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
1283 rm -f systemd-remount-api-vfs.service \
1285 remount-rootfs.service \
1289 $(LN_S) ../systemd-remount-api-vfs.service systemd-remount-api-vfs.service && \
1290 $(LN_S) ../fsck-root.service fsck-root.service && \
1291 $(LN_S) ../remount-rootfs.service remount-rootfs.service && \
1292 $(LN_S) ../var-run.mount var-run.mount && \
1293 $(LN_S) ../var-lock.mount var-lock.mount && \
1294 $(LN_S) ../media.mount media.mount )
1295 ( cd $(DESTDIR)$(userunitdir) && \
1296 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target sound.target && \
1297 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
1298 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
1299 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
1300 $(LN_S) $(systemunitdir)/swap.target swap.target && \
1301 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
1302 $(LN_S) $(systemunitdir)/printer.target printer.target && \
1303 $(LN_S) $(systemunitdir)/sound.target sound.target )
1304 ( cd $(DESTDIR)$(systemunitdir) && \
1305 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
1306 $(LN_S) poweroff.target runlevel0.target && \
1307 $(LN_S) rescue.target runlevel1.target && \
1308 $(LN_S) multi-user.target runlevel2.target && \
1309 $(LN_S) multi-user.target runlevel3.target && \
1310 $(LN_S) multi-user.target runlevel4.target && \
1311 $(LN_S) graphical.target runlevel5.target && \
1312 $(LN_S) reboot.target runlevel6.target )
1313 ( cd $(DESTDIR)$(systemunitdir) && \
1314 rm -f default.target ctrl-alt-del.target && \
1315 $(LN_S) graphical.target default.target && \
1316 $(LN_S) reboot.target ctrl-alt-del.target )
1317 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1318 rm -f getty.target systemd-user-sessions.service systemd-ask-password-wall.path && \
1319 $(LN_S) ../getty.target getty.target && \
1320 $(LN_S) ../systemd-user-sessions.service systemd-user-sessions.service && \
1321 $(LN_S) ../systemd-ask-password-wall.path systemd-ask-password-wall.path )
1322 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1323 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1324 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1325 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1326 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1327 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1328 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1329 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1330 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1331 rm -f remote-fs.target && \
1332 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1333 ( cd $(DESTDIR)$(pkgsysconfdir)/system/sysinit.target.wants && \
1334 rm -f hwclock-load.service && \
1335 $(LN_S) $(systemunitdir)/hwclock-load.service hwclock-load.service )
1336 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1337 rm -f dev-hugepages.automount \
1338 dev-mqueue.automount \
1339 proc-sys-fs-binfmt_misc.automount \
1340 sys-kernel-debug.automount \
1341 sys-kernel-security.automount \
1342 systemd-vconsole-setup.service \
1343 systemd-modules-load.service \
1344 systemd-random-seed-load.service \
1345 systemd-tmpfiles-setup.service \
1346 systemd-sysctl.service \
1347 systemd-ask-password-console.path \
1348 systemd-kmsg-syslogd.service \
1349 cryptsetup.target && \
1350 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1351 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1352 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1353 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1354 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1355 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1356 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1357 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1358 $(LN_S) ../systemd-tmpfiles-setup.service systemd-tmpfiles-setup.service && \
1359 $(LN_S) ../systemd-sysctl.service systemd-sysctl.service && \
1360 $(LN_S) ../systemd-ask-password-console.path systemd-ask-password-console.path && \
1361 $(LN_S) ../systemd-kmsg-syslogd.service && \
1362 $(LN_S) ../cryptsetup.target cryptsetup.target )
1363 ( cd $(DESTDIR)$(systemunitdir)/basic.target.wants && \
1364 rm -f systemd-tmpfiles-clean.timer && \
1365 $(LN_S) ../systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.timer )
1366 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1367 rm -f org.freedesktop.systemd1.service && \
1368 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1370 $(MKDIR_P) -m 0755 \
1371 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1372 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1373 $(DESTDIR)$(systemunitdir)/kexec.target.wants \
1374 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1375 $(DESTDIR)$(systemunitdir)/halt.target.wants
1376 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1377 rm -f plymouth-start.service plymouth-read-write.service && \
1378 $(LN_S) ../plymouth-start.service plymouth-start.service && \
1379 $(LN_S) ../plymouth-read-write.service plymouth-read-write.service )
1380 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1381 rm -f plymouth-quit.service plymouth-quit-wait.service && \
1382 $(LN_S) ../plymouth-quit.service plymouth-quit.service && \
1383 $(LN_S) ../plymouth-quit-wait.service plymouth-quit-wait.service )
1384 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1385 rm -f plymouth-reboot.service && \
1386 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1387 ( cd $(DESTDIR)$(systemunitdir)/kexec.target.wants && \
1388 rm -f plymouth-kexec.service && \
1389 $(LN_S) ../plymouth-kexec.service plymouth-kexec.service )
1390 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1391 rm -f plymouth-poweroff.service && \
1392 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1393 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1394 rm -f plymouth-halt.service && \
1395 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1399 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1400 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1401 rm -f rc-local.service && \
1402 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1403 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1404 rm -f halt-local.service && \
1405 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1406 ( cd $(DESTDIR)$(systemunitdir) && \
1407 rm -f display-manager.service single.service && \
1408 $(LN_S) prefdm.service display-manager.service && \
1409 $(LN_S) rescue.service single.service )
1410 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1411 rm -f display-manager.service && \
1412 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1416 $(MKDIR_P) -m 0755 $(DESTDIR)$(systemunitdir)/final.target.wants
1417 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1418 rm -f rc-local.service && \
1419 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1420 ( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
1421 rm -f halt-local.service && \
1422 $(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
1423 ( cd $(DESTDIR)$(systemunitdir) && \
1424 rm -f display-manager.service dm.service single.service && \
1425 $(LN_S) prefdm.service display-manager.service && \
1426 $(LN_S) prefdm.service dm.service && \
1427 $(LN_S) rescue.service single.service )
1428 ( cd $(DESTDIR)$(systemunitdir)/graphical.target.wants && \
1429 rm -f display-manager.service && \
1430 $(LN_S) $(systemunitdir)/display-manager.service display-manager.service )
1433 if TARGET_DEBIAN_OR_UBUNTU
1434 ( cd $(DESTDIR)$(systemunitdir) && \
1435 rm -f runlevel5.target && \
1436 $(LN_S) multi-user.target runlevel5.target )
1439 DISTCHECK_CONFIGURE_FLAGS = \
1440 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1441 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1442 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1443 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1444 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1445 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1446 --with-rootdir=$$dc_install_base/$(rootdir)
1448 upload: all distcheck
1449 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1450 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1451 scp man/*.html tango:public/systemd-man/
1454 git tag "v$(VERSION)" -m "systemd $(VERSION)"