1 # This file is part of systemd.
3 # Copyright 2010 Lennart Poettering
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # systemd is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
18 ACLOCAL_AMFLAGS = -I m4
20 # Dirs of external packages
21 dbuspolicydir=@dbuspolicydir@
22 dbussessionservicedir=@dbussessionservicedir@
23 dbussystemservicedir=@dbussystemservicedir@
24 dbusinterfacedir=@dbusinterfacedir@
25 udevrulesdir=@udevrulesdir@
27 pkgconfigdatadir=$(datadir)/pkgconfig
28 polkitpolicydir=$(datadir)/polkit-1/actions
30 # Our own, non-special dirs
31 pkgsysconfdir=$(sysconfdir)/systemd
32 sessionunitdir=$(pkgdatadir)/session
34 # And these are the special ones for /
36 rootbindir=$(rootdir)/bin
37 rootlibexecdir=$(rootdir)/lib/systemd
38 systemunitdir=$(rootdir)/lib/systemd/system
41 -include $(top_builddir)/config.h \
42 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
43 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
44 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
45 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
46 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
47 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
48 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
49 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
50 -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
51 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
52 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
53 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
54 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
59 -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \
60 -DKBD_SETFONT=\"/usr/bin/setfont\" \
61 -DDEFAULT_FONT=\"LatArCyrHeb-16\"
64 -DKBD_LOADKEYS=\"/bin/loadkeys\" \
65 -DKBD_SETFONT=\"/bin/setfont\" \
66 -DDEFAULT_FONT=\"latarcyrheb-sun16\"
81 systemd-ask-password-agent
84 rootlibexec_PROGRAMS = \
86 systemd-cgroups-agent \
91 systemd-modules-load \
92 systemd-remount-api-vfs \
93 systemd-kmsg-syslogd \
94 systemd-vconsole-setup \
95 systemd-reply-password \
96 systemd-readahead-collect \
97 systemd-readahead-replay
110 pamlib_LTLIBRARIES = \
114 dist_pkgsysconf_DATA = \
117 dist_dbuspolicy_DATA = \
118 src/org.freedesktop.systemd1.conf
120 dist_dbussystemservice_DATA = \
121 src/org.freedesktop.systemd1.service
123 dist_udevrules_DATA = \
126 dbusinterface_DATA = \
127 org.freedesktop.systemd1.Manager.xml \
128 org.freedesktop.systemd1.Job.xml \
129 org.freedesktop.systemd1.Unit.xml \
130 org.freedesktop.systemd1.Service.xml \
131 org.freedesktop.systemd1.Socket.xml \
132 org.freedesktop.systemd1.Timer.xml \
133 org.freedesktop.systemd1.Target.xml \
134 org.freedesktop.systemd1.Device.xml \
135 org.freedesktop.systemd1.Mount.xml \
136 org.freedesktop.systemd1.Automount.xml \
137 org.freedesktop.systemd1.Snapshot.xml \
138 org.freedesktop.systemd1.Swap.xml \
139 org.freedesktop.systemd1.Path.xml
141 dist_systemunit_DATA = \
142 units/emergency.service \
143 units/emergency.target \
147 units/local-fs.target \
148 units/network.target \
149 units/nss-lookup.target \
150 units/mail-transfer-agent.target \
151 units/http-daemon.target \
152 units/poweroff.target \
153 units/reboot.target \
154 units/rescue.target \
155 units/rpcbind.target \
156 units/rtc-set.target \
157 units/shutdown.target \
158 units/umount.target \
159 units/sigpwr.target \
160 units/sockets.target \
163 units/systemd-initctl.socket \
164 units/systemd-logger.socket \
165 units/systemd-shutdownd.socket \
166 units/systemd-kmsg-syslogd.socket \
167 units/dev-hugepages.automount \
168 units/dev-hugepages.mount \
169 units/dev-mqueue.automount \
170 units/dev-mqueue.mount \
171 units/proc-sys-fs-binfmt_misc.automount \
172 units/proc-sys-fs-binfmt_misc.mount \
173 units/sys-kernel-debug.automount \
174 units/sys-kernel-debug.mount \
175 units/sys-kernel-security.automount \
176 units/sys-kernel-security.mount \
179 units/var-lock.mount \
180 units/var-lock.service \
181 units/var-run.mount \
182 units/var-run.service \
183 units/hwclock-load.service \
184 units/hwclock-save.service \
185 units/sysctl.service \
186 units/remount-rootfs.service \
187 units/printer.target \
188 units/bluetooth.target \
189 units/smartcard.target \
190 units/tmpwatch.service \
193 nodist_systemunit_DATA = \
194 units/sysinit.target \
195 units/getty@.service \
196 units/serial-getty@.service \
197 units/graphical.target \
198 units/remote-fs.target \
199 units/multi-user.target \
200 units/systemd-initctl.service \
201 units/systemd-logger.service \
202 units/systemd-shutdownd.service \
203 units/systemd-kmsg-syslogd.service \
204 units/systemd-modules-load.service \
205 units/systemd-vconsole-setup.service \
206 units/systemd-remount-api-vfs.service \
207 units/systemd-update-utmp-runlevel.service \
208 units/systemd-update-utmp-shutdown.service \
209 units/systemd-random-seed-save.service \
210 units/systemd-random-seed-load.service \
213 dist_sessionunit_DATA = \
214 units/session/default.target
216 nodist_sessionunit_DATA = \
217 units/session/remote-fs.target \
218 units/session/exit.service
221 units/sysinit.target.m4 \
222 units/getty@.service.m4 \
223 units/serial-getty@.service.m4 \
224 units/graphical.target.m4 \
225 units/multi-user.target.m4 \
226 units/remote-fs.target.m4 \
227 units/systemd-initctl.service.in \
228 units/systemd-logger.service.in \
229 units/systemd-shutdownd.service.in \
230 units/systemd-kmsg-syslogd.service.in \
231 units/systemd-modules-load.service.in \
232 units/systemd-vconsole-setup.service.in \
233 units/systemd-remount-api-vfs.service.in \
234 units/systemd-update-utmp-runlevel.service.in \
235 units/systemd-update-utmp-shutdown.service.in \
236 units/systemd-random-seed-save.service.in \
237 units/systemd-random-seed-load.service.in \
238 units/syslog.target.in \
239 units/session/exit.service.in \
243 dist_systemunit_DATA += \
244 units/fedora/halt.service \
245 units/fedora/killall.service \
246 units/fedora/poweroff.service \
247 units/fedora/prefdm.service \
248 units/fedora/rc-local.service \
249 units/fedora/reboot.service \
250 units/fedora/sysinit.service \
251 units/fedora/single.service \
252 units/fedora/plymouth-quit.service \
253 units/fedora/plymouth-reboot.service \
254 units/fedora/plymouth-poweroff.service \
255 units/fedora/plymouth-halt.service
259 dist_systemunit_DATA += \
260 units/debian/halt.service \
261 units/debian/killall.service \
262 units/debian/poweroff.service \
263 units/debian/reboot.service \
264 units/debian/fsck.target \
265 units/debian/umountfs.service \
266 units/debian/umountnfs.service \
267 units/debian/umountroot.service
271 dist_systemunit_DATA += \
272 units/suse/halt.service \
273 units/suse/poweroff.service \
274 units/suse/reboot.service \
275 units/suse/fsck.target
279 dist_systemunit_DATA += \
280 units/gentoo/halt.service \
281 units/gentoo/killall.service \
282 units/gentoo/poweroff.service \
283 units/gentoo/reboot.service \
284 units/gentoo/xdm.service
288 dist_systemunit_DATA += \
289 units/arch/sysinit.service \
290 units/arch/rc-local.service \
291 units/arch/halt.service \
292 units/arch/poweroff.service \
293 units/arch/reboot.service
303 pkgconfigdata_DATA = \
306 dist_polkitpolicy_DATA = \
307 src/org.freedesktop.systemd1.policy
309 noinst_LTLIBRARIES = \
310 libsystemd-basic.la \
313 libsystemd_basic_la_SOURCES = \
324 libsystemd_basic_la_CFLAGS = \
328 libsystemd_basic_la_LIBADD = \
331 libsystemd_core_la_SOURCES = \
336 src/load-fragment.c \
359 src/dbus-automount.c \
361 src/dbus-snapshot.c \
367 src/hostname-setup.c \
368 src/loopback-setup.c \
378 libsystemd_core_la_CFLAGS = \
386 libsystemd_core_la_LIBADD = \
387 libsystemd-basic.la \
394 # This is needed because automake is buggy in how it generates the
395 # rules for C programs, but not Vala programs. We therefore can't
396 # list the .h files as dependencies if we want make dist to work.
399 ${libsystemd_basic_la_SOURCES:.c=.h} \
400 ${libsystemd_core_la_SOURCES:.c=.h} \
406 src/linux/auto_dev-ioctl.h \
422 man/systemd-notify.1 \
426 man/sd_listen_fds.3 \
429 man/systemd.service.5 \
430 man/systemd.socket.5 \
431 man/systemd.mount.5 \
432 man/systemd.automount.5 \
434 man/systemd.timer.5 \
436 man/systemd.target.5 \
437 man/systemd.device.5 \
438 man/systemd.snapshot.5 \
453 man/sd_is_socket_unix.3 \
454 man/sd_is_socket_inet.3 \
458 man/reboot.8: man/halt.8
459 man/poweroff.8: man/halt.8
460 man/sd_is_socket.3: man/sd_is_fifo.3
461 man/sd_is_socket_unix.3: man/sd_is_fifo.3
462 man/sd_is_socket_inet.3: man/sd_is_fifo.3
463 man/sd_notifyf.3: man/sd_notify.3
464 man/init.1: man/systemd.1
471 man/systemd.special.7
474 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
477 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
480 ${XML_FILES:.xml=.html}
482 nodist_noinst_DATA = \
483 ${XML_IN_FILES:.xml.in=.html}
488 ${nodist_man_MANS:=.in} \
489 ${XML_IN_FILES:.xml.in=.html.in}
502 test_engine_SOURCES = \
505 test_engine_CFLAGS = $(systemd_CFLAGS)
506 test_engine_LDADD = $(systemd_LDADD)
508 test_job_type_SOURCES = \
511 test_job_type_CFLAGS = $(systemd_CFLAGS)
512 test_job_type_LDADD = $(systemd_LDADD)
517 test_ns_CFLAGS = $(systemd_CFLAGS)
518 test_ns_LDADD = $(systemd_LDADD)
520 test_loopback_SOURCES = \
521 src/test-loopback.c \
524 test_loopback_LDADD = \
527 test_hostname_SOURCES = \
528 src/test-hostname.c \
531 test_hostname_LDADD = \
534 test_daemon_SOURCES = \
538 test_daemon_LDADD = \
541 test_cgroup_SOURCES = \
545 test_cgroup_CFLAGS = \
548 test_cgroup_LDADD = \
551 test_env_replace_SOURCES = \
552 src/test-env-replace.c
554 test_env_replace_CFLAGS = \
557 test_env_replace_LDADD = \
560 systemd_logger_SOURCES = \
565 systemd_logger_LDADD = \
566 libsystemd-basic.la \
569 systemd_initctl_SOURCES = \
574 systemd_initctl_CFLAGS = \
578 systemd_initctl_LDADD = \
579 libsystemd-basic.la \
582 systemd_update_utmp_SOURCES = \
587 systemd_update_utmp_CFLAGS = \
592 systemd_update_utmp_LDADD = \
593 libsystemd-basic.la \
597 systemd_random_seed_SOURCES = \
600 systemd_random_seed_CFLAGS = \
603 systemd_random_seed_LDADD = \
606 systemd_shutdownd_SOURCES = \
611 systemd_shutdownd_CFLAGS = \
614 systemd_shutdownd_LDADD = \
617 systemd_modules_load_SOURCES = \
620 systemd_modules_load_CFLAGS = \
623 systemd_modules_load_LDADD = \
626 systemd_vconsole_setup_SOURCES = \
629 systemd_vconsole_setup_CFLAGS = \
632 systemd_vconsole_setup_LDADD = \
635 systemd_remount_api_vfs_SOURCES = \
636 src/remount-api-vfs.c \
639 systemd_remount_api_vfs_CFLAGS = \
642 systemd_remount_api_vfs_LDADD = \
645 systemd_cgroups_agent_SOURCES = \
646 src/cgroups-agent.c \
649 systemd_cgroups_agent_CFLAGS = \
653 systemd_cgroups_agent_LDADD = \
654 libsystemd-basic.la \
657 systemd_kmsg_syslogd_SOURCES = \
662 systemd_kmsg_syslogd_CFLAGS = \
665 systemd_kmsg_syslogd_LDADD = \
668 systemctl_SOURCES = \
683 libsystemd-basic.la \
686 systemd_notify_SOURCES = \
690 systemd_notify_LDADD = \
693 systemd_ask_password_SOURCES = \
696 systemd_ask_password_LDADD = \
699 systemd_reply_password_SOURCES = \
702 systemd_reply_password_LDADD = \
705 systemd_readahead_collect_SOURCES = \
706 src/readahead-collect.c \
708 src/readahead-common.c
710 systemd_readahead_collect_CFLAGS = \
713 systemd_readahead_collect_LDADD = \
714 libsystemd-basic.la \
717 systemd_readahead_replay_SOURCES = \
718 src/readahead-replay.c \
720 src/readahead-common.c
722 systemd_readahead_replay_CFLAGS = \
725 systemd_readahead_replay_LDADD = \
726 libsystemd-basic.la \
729 systemd_cgls_SOURCES = \
734 systemd_cgls_CFLAGS = \
737 systemd_cgls_LDADD = \
740 systemadm_SOURCES = \
742 src/systemd-interfaces.vala
748 -Wno-unused-variable \
749 -Wno-unused-function \
751 -Wno-format-nonliteral
753 systemadm_VALAFLAGS = \
763 systemd_ask_password_agent_SOURCES = \
764 src/ask-password-agent.vala
766 systemd_ask_password_agent_CFLAGS = \
770 -Wno-unused-variable \
771 -Wno-unused-function \
773 -Wno-format-nonliteral
775 systemd_ask_password_agent_VALAFLAGS = \
784 systemd_ask_password_agent_LDADD = \
788 pam_systemd_la_SOURCES = \
793 pam_systemd_la_CFLAGS = \
797 pam_systemd_la_LDFLAGS = \
802 -export-symbols-regex '^pam_sm_.*'
804 pam_systemd_la_LIBADD = \
805 libsystemd-basic.la \
809 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
810 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
811 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
812 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
813 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
814 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
815 -e 's,@systemunitdir\@,$(systemunitdir),g' \
816 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
817 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
818 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
819 -e 's,@prefix\@,$(prefix),g' \
822 units/%: units/%.in Makefile
825 man/%: man/%.in Makefile
828 %.pc: %.pc.in Makefile
831 M4_PROCESS_SYSTEM = \
832 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
833 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
835 M4_PROCESS_SESSION = \
836 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
837 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
839 units/%: units/%.m4 Makefile
842 units/session/%: units/%.m4 Makefile
843 $(M4_PROCESS_SESSION)
846 $(nodist_systemunit_DATA) \
847 $(nodist_sessionunit_DATA) \
849 ${XML_IN_FILES:.xml.in=.html} \
850 $(pkgconfigdata_DATA)
854 ${systemadm_SOURCES:.vala=.c}
860 --param funcsynopsis.style "'ansi'"
862 XSLTPROC_PROCESS_MAN = \
863 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
864 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
866 XSLTPROC_PROCESS_MAN_IN = \
867 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
868 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
871 XSLTPROC_PROCESS_HTML = \
872 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
873 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
875 XSLTPROC_PROCESS_HTML_IN = \
876 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
877 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
881 $(XSLTPROC_PROCESS_MAN)
883 man/%.1.in: man/%.xml.in
884 $(XSLTPROC_PROCESS_MAN)
887 $(XSLTPROC_PROCESS_MAN)
889 man/%.3.in: man/%.xml.in
890 $(XSLTPROC_PROCESS_MAN)
893 $(XSLTPROC_PROCESS_MAN)
895 man/%.5.in: man/%.xml.in
896 $(XSLTPROC_PROCESS_MAN)
899 $(XSLTPROC_PROCESS_MAN)
901 man/%.7.in: man/%.xml.in
902 $(XSLTPROC_PROCESS_MAN_IN)
905 $(XSLTPROC_PROCESS_MAN)
907 man/%.8.in: man/%.xml.in
908 $(XSLTPROC_PROCESS_MAN_IN)
910 man/%.html: man/%.xml
911 $(XSLTPROC_PROCESS_HTML)
913 man/%.html.in: man/%.xml.in
914 $(XSLTPROC_PROCESS_HTML_IN)
918 ${nodist_man_MANS:=.in} \
919 ${XML_FILES:.xml=.html} \
920 ${XML_IN_FILES:.xml.in=.html.in}
923 org.freedesktop.systemd1.%.xml: systemd
924 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
927 $(dbusinterface_DATA)
931 $(DESTDIR)$(systemunitdir) \
932 $(DESTDIR)$(sessionunitdir) \
933 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
934 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
935 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
936 $(DESTDIR)$(systemunitdir)/local-fs.target.wants \
937 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
938 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
939 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
940 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
941 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
942 $(DESTDIR)$(systemunitdir)/multi-user.target.wants \
943 $(DESTDIR)$(pkgsysconfdir)/system \
944 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
945 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
946 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
947 $(DESTDIR)$(pkgsysconfdir)/session \
948 $(DESTDIR)$(sysconfdir)/xdg/systemd
949 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
951 $(LN_S) $(pkgsysconfdir)/session session )
952 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
953 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
954 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
955 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
956 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
957 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
958 rm -f systemd-update-utmp-runlevel.service && \
959 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
960 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
961 rm -f systemd-update-utmp-runlevel.service && \
962 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
963 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
964 rm -f systemd-update-utmp-runlevel.service && \
965 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
966 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
967 rm -f systemd-update-utmp-runlevel.service && \
968 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
969 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
970 rm -f systemd-update-utmp-runlevel.service && \
971 $(LN_S) ../systemd-update-utmp-runlevel.service systemd-update-utmp-runlevel.service )
972 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
973 rm -f systemd-update-utmp-shutdown.service \
974 hwclock-save.service \
975 systemd-random-seed-save.service && \
976 $(LN_S) ../systemd-update-utmp-shutdown.service systemd-update-utmp-shutdown.service && \
977 $(LN_S) ../hwclock-save.service hwclock-save.service && \
978 $(LN_S) ../systemd-random-seed-save.service systemd-random-seed-save.service )
979 ( cd $(DESTDIR)$(systemunitdir)/local-fs.target.wants && \
980 rm -f systemd-update-utmp-shutdown.service \
982 var-lock.service && \
983 $(LN_S) ../var-run.service var-run.service && \
984 $(LN_S) ../var-lock.service var-lock.service )
985 ( cd $(DESTDIR)$(sessionunitdir) && \
986 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
987 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
988 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
989 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
990 $(LN_S) $(systemunitdir)/swap.target swap.target && \
991 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
992 $(LN_S) $(systemunitdir)/printer.target printer.target)
993 ( cd $(DESTDIR)$(systemunitdir) && \
994 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
995 $(LN_S) poweroff.target runlevel0.target && \
996 $(LN_S) rescue.target runlevel1.target && \
997 $(LN_S) multi-user.target runlevel2.target && \
998 $(LN_S) multi-user.target runlevel3.target && \
999 $(LN_S) multi-user.target runlevel4.target && \
1000 $(LN_S) graphical.target runlevel5.target && \
1001 $(LN_S) reboot.target runlevel6.target )
1002 ( cd $(DESTDIR)$(systemunitdir) && \
1003 rm -f default.target ctrl-alt-del.target && \
1004 $(LN_S) graphical.target default.target && \
1005 $(LN_S) reboot.target ctrl-alt-del.target )
1006 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1007 rm -f getty.target && \
1008 $(LN_S) ../getty.target getty.target )
1009 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
1010 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
1011 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
1012 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
1013 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
1014 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
1015 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
1016 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
1017 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1018 rm -f remote-fs.target && \
1019 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
1020 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
1021 rm -f dev-hugepages.automount \
1022 dev-mqueue.automount \
1023 proc-sys-fs-binfmt_misc.automount \
1024 sys-kernel-debug.automount \
1025 sys-kernel-security.automount \
1026 systemd-vconsole-setup.service \
1027 systemd-modules-load.service \
1028 systemd-random-seed-load.service \
1031 tmpwatch.service && \
1032 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
1033 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
1034 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
1035 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
1036 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
1037 $(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
1038 $(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
1039 $(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
1040 $(LN_S) ../sysctl.service sysctl.service && \
1041 $(LN_S) ../tmpwatch.timer tmpwatch.timer && \
1042 $(LN_S) ../tmpwatch.service tmpwatch.service )
1043 ( cd $(DESTDIR)$(dbussessionservicedir) && \
1044 rm -f org.freedesktop.systemd1.service && \
1045 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
1047 $(MKDIR_P) -m 0755 \
1048 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
1049 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
1050 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
1051 $(DESTDIR)$(systemunitdir)/halt.target.wants \
1052 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
1053 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
1054 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1055 rm -f display-manager.service && \
1056 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
1057 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1058 rm -f prefdm.service && \
1059 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
1060 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
1061 rm -f rc-local.service && \
1062 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
1063 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
1064 rm -f single.service && \
1065 $(LN_S) $(systemunitdir)/single.service single.service )
1066 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
1067 rm -f plymouth-quit.service && \
1068 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
1069 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
1070 rm -f plymouth-reboot.service && \
1071 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
1072 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
1073 rm -f plymouth-poweroff.service && \
1074 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
1075 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
1076 rm -f plymouth-halt.service && \
1077 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
1078 ( cd $(DESTDIR)$(systemunitdir) && \
1079 rm -f local.service && \
1080 $(LN_S) rc-local.service local.service )
1081 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
1082 $(LN_S) halt reboot > /dev/null 2>&1 || true )
1085 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
1086 rm -f display-manager.service && \
1087 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
1088 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
1089 rm -f xdm.service && \
1090 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
1093 $(MKDIR_P) -m 0755 \
1094 $(DESTDIR)$(systemunitdir)/umount.target.wants
1095 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
1096 rm -f umountfs.service umountnfs.service umountroot.service && \
1097 $(LN_S) ../umountfs.service umountfs.service && \
1098 $(LN_S) ../umountnfs.service umountnfs.service && \
1099 $(LN_S) ../umountroot.service umountroot.service )
1100 ( cd $(DESTDIR)$(systemunitdir) && \
1101 rm -f runlevel5.target && \
1102 $(LN_S) multi-user.target runlevel5.target )
1106 ( cd $(DESTDIR)$(systemunitdir) && \
1107 rm -f fsck.target && \
1108 $(LN_S) sysinit.target fsck.target )
1112 DISTCHECK_CONFIGURE_FLAGS = \
1113 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1114 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1115 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1116 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1117 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1118 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1119 --with-rootdir=$$dc_install_base/$(rootdir)
1121 upload: all distcheck
1122 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1123 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1124 scp man/*.html tango:public/systemd-man/
1127 git tag "v$(VERSION)" -m "systemd $(VERSION)"