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
29 # Our own, non-special dirs
30 pkgsysconfdir=$(sysconfdir)/systemd
31 sessionunitdir=$(pkgdatadir)/session
33 # And these are the special ones for /
35 rootbindir=$(rootdir)/bin
36 rootlibexecdir=$(rootdir)/lib/systemd
37 systemunitdir=$(rootdir)/lib/systemd/system
40 -include $(top_builddir)/config.h \
41 -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
42 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
43 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
44 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
45 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
46 -DSESSION_CONFIG_FILE=\"$(pkgsysconfdir)/session.conf\" \
47 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
48 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
49 -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
50 -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
51 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
52 -DRUNTIME_DIR=\"$(localstatedir)/run\" \
53 -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
69 rootlibexec_PROGRAMS = \
71 systemd-cgroups-agent \
76 systemd-modules-load \
77 systemd-remount-api-vfs \
78 systemd-kmsg-syslogd \
79 systemd-vconsole-setup
92 pamlib_LTLIBRARIES = \
96 dist_pkgsysconf_DATA = \
99 dist_dbuspolicy_DATA = \
100 src/org.freedesktop.systemd1.conf
102 dist_dbussystemservice_DATA = \
103 src/org.freedesktop.systemd1.service
105 dist_udevrules_DATA = \
108 dbusinterface_DATA = \
109 org.freedesktop.systemd1.Manager.xml \
110 org.freedesktop.systemd1.Job.xml \
111 org.freedesktop.systemd1.Unit.xml \
112 org.freedesktop.systemd1.Service.xml \
113 org.freedesktop.systemd1.Socket.xml \
114 org.freedesktop.systemd1.Timer.xml \
115 org.freedesktop.systemd1.Target.xml \
116 org.freedesktop.systemd1.Device.xml \
117 org.freedesktop.systemd1.Mount.xml \
118 org.freedesktop.systemd1.Automount.xml \
119 org.freedesktop.systemd1.Snapshot.xml \
120 org.freedesktop.systemd1.Swap.xml \
121 org.freedesktop.systemd1.Path.xml
123 dist_systemunit_DATA = \
124 units/emergency.service \
125 units/emergency.target \
129 units/local-fs.target \
130 units/network.target \
131 units/nss-lookup.target \
132 units/mail-transfer-agent.target \
133 units/http-daemon.target \
134 units/poweroff.target \
135 units/reboot.target \
136 units/rescue.target \
137 units/rpcbind.target \
138 units/rtc-set.target \
139 units/shutdown.target \
140 units/umount.target \
141 units/sigpwr.target \
142 units/sockets.target \
145 units/systemd-initctl.socket \
146 units/systemd-logger.socket \
147 units/systemd-shutdownd.socket \
148 units/systemd-kmsg-syslogd.socket \
149 units/dev-hugepages.automount \
150 units/dev-hugepages.mount \
151 units/dev-mqueue.automount \
152 units/dev-mqueue.mount \
153 units/proc-sys-fs-binfmt_misc.automount \
154 units/proc-sys-fs-binfmt_misc.mount \
155 units/sys-kernel-debug.automount \
156 units/sys-kernel-debug.mount \
157 units/sys-kernel-security.automount \
158 units/sys-kernel-security.mount \
160 units/var-lock.mount \
161 units/var-lock.service \
162 units/var-run.mount \
163 units/var-run.service \
164 units/hwclock-load.service \
165 units/hwclock-save.service \
166 units/sysctl.service \
167 units/remount-rootfs.service \
168 units/printer.target \
169 units/bluetooth.target \
170 units/smartcard.target
172 nodist_systemunit_DATA = \
173 units/sysinit.target \
174 units/getty@.service \
175 units/serial-getty@.service \
176 units/graphical.target \
177 units/remote-fs.target \
178 units/multi-user.target \
179 units/systemd-initctl.service \
180 units/systemd-logger.service \
181 units/systemd-shutdownd.service \
182 units/systemd-kmsg-syslogd.service \
183 units/systemd-modules-load.service \
184 units/systemd-vconsole-setup.service \
185 units/systemd-remount-api-vfs.service \
186 units/systemd-update-utmp-runlevel.service \
187 units/systemd-update-utmp-shutdown.service \
188 units/systemd-random-seed-save.service \
189 units/systemd-random-seed-load.service \
192 dist_sessionunit_DATA = \
193 units/session/default.target
195 nodist_sessionunit_DATA = \
196 units/session/remote-fs.target \
197 units/session/exit.service
200 units/sysinit.target.m4 \
201 units/getty@.service.m4 \
202 units/serial-getty@.service.m4 \
203 units/graphical.target.m4 \
204 units/multi-user.target.m4 \
205 units/remote-fs.target.m4 \
206 units/systemd-initctl.service.in \
207 units/systemd-logger.service.in \
208 units/systemd-shutdownd.service.in \
209 units/systemd-kmsg-syslogd.service.in \
210 units/systemd-modules-load.service.in \
211 units/systemd-vconsole-setup.service.in \
212 units/systemd-remount-api-vfs.service.in \
213 units/systemd-update-utmp-runlevel.service.in \
214 units/systemd-update-utmp-shutdown.service.in \
215 units/systemd-random-seed-save.service.in \
216 units/systemd-random-seed-load.service.in \
217 units/syslog.target.in \
218 units/session/exit.service.in \
222 dist_systemunit_DATA += \
223 units/fedora/halt.service \
224 units/fedora/killall.service \
225 units/fedora/poweroff.service \
226 units/fedora/prefdm.service \
227 units/fedora/rc-local.service \
228 units/fedora/reboot.service \
229 units/fedora/sysinit.service \
230 units/fedora/single.service \
231 units/fedora/plymouth-quit.service \
232 units/fedora/plymouth-reboot.service \
233 units/fedora/plymouth-poweroff.service \
234 units/fedora/plymouth-halt.service
238 dist_systemunit_DATA += \
239 units/debian/halt.service \
240 units/debian/killall.service \
241 units/debian/poweroff.service \
242 units/debian/reboot.service \
243 units/debian/fsck.target \
244 units/debian/umountfs.service \
245 units/debian/umountnfs.service \
246 units/debian/umountroot.service
250 dist_systemunit_DATA += \
251 units/suse/halt.service \
252 units/suse/poweroff.service \
253 units/suse/reboot.service \
254 units/suse/fsck.target
258 dist_systemunit_DATA += \
259 units/gentoo/halt.service \
260 units/gentoo/killall.service \
261 units/gentoo/poweroff.service \
262 units/gentoo/reboot.service \
263 units/gentoo/xdm.service
267 dist_systemunit_DATA += \
268 units/arch/sysinit.service \
269 units/arch/rc-local.service \
270 units/arch/halt.service \
271 units/arch/poweroff.service \
272 units/arch/reboot.service
282 pkgconfigdata_DATA = \
285 noinst_LTLIBRARIES = \
286 libsystemd-basic.la \
289 libsystemd_basic_la_SOURCES = \
300 libsystemd_basic_la_CFLAGS = \
304 libsystemd_basic_la_LIBADD = \
307 libsystemd_core_la_SOURCES = \
312 src/load-fragment.c \
335 src/dbus-automount.c \
337 src/dbus-snapshot.c \
343 src/hostname-setup.c \
344 src/loopback-setup.c \
353 libsystemd_core_la_CFLAGS = \
361 libsystemd_core_la_LIBADD = \
362 libsystemd-basic.la \
369 # This is needed because automake is buggy in how it generates the
370 # rules for C programs, but not Vala programs. We therefore can't
371 # list the .h files as dependencies if we want make dist to work.
374 ${libsystemd_basic_la_SOURCES:.c=.h} \
375 ${libsystemd_core_la_SOURCES:.c=.h} \
381 src/linux/auto_dev-ioctl.h \
397 man/systemd-notify.1 \
400 man/sd_listen_fds.3 \
403 man/systemd.service.5 \
404 man/systemd.socket.5 \
405 man/systemd.mount.5 \
406 man/systemd.automount.5 \
408 man/systemd.timer.5 \
410 man/systemd.target.5 \
411 man/systemd.device.5 \
412 man/systemd.snapshot.5 \
427 man/sd_is_socket_unix.3 \
428 man/sd_is_socket_inet.3 \
432 man/reboot.8: man/halt.8
433 man/poweroff.8: man/halt.8
434 man/sd_is_socket.3: man/sd_is_fifo.3
435 man/sd_is_socket_unix.3: man/sd_is_fifo.3
436 man/sd_is_socket_inet.3: man/sd_is_fifo.3
437 man/sd_notifyf.3: man/sd_notify.3
438 man/init.1: man/systemd.1
445 man/systemd.special.7
448 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
451 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
454 ${XML_FILES:.xml=.html}
456 nodist_noinst_DATA = \
457 ${XML_IN_FILES:.xml.in=.html}
462 ${nodist_man_MANS:=.in} \
463 ${XML_IN_FILES:.xml.in=.html.in}
476 test_engine_SOURCES = \
479 test_engine_CFLAGS = $(systemd_CFLAGS)
480 test_engine_LDADD = $(systemd_LDADD)
482 test_job_type_SOURCES = \
485 test_job_type_CFLAGS = $(systemd_CFLAGS)
486 test_job_type_LDADD = $(systemd_LDADD)
491 test_ns_CFLAGS = $(systemd_CFLAGS)
492 test_ns_LDADD = $(systemd_LDADD)
494 test_loopback_SOURCES = \
495 src/test-loopback.c \
498 test_loopback_LDADD = \
501 test_hostname_SOURCES = \
502 src/test-hostname.c \
505 test_hostname_LDADD = \
508 test_daemon_SOURCES = \
512 test_daemon_LDADD = \
515 test_cgroup_SOURCES = \
519 test_cgroup_CFLAGS = \
522 test_cgroup_LDADD = \
525 test_env_replace_SOURCES = \
526 src/test-env-replace.c
528 test_env_replace_CFLAGS = \
531 test_env_replace_LDADD = \
534 systemd_logger_SOURCES = \
539 systemd_logger_LDADD = \
540 libsystemd-basic.la \
543 systemd_initctl_SOURCES = \
548 systemd_initctl_CFLAGS = \
552 systemd_initctl_LDADD = \
553 libsystemd-basic.la \
556 systemd_update_utmp_SOURCES = \
561 systemd_update_utmp_CFLAGS = \
566 systemd_update_utmp_LDADD = \
567 libsystemd-basic.la \
571 systemd_random_seed_SOURCES = \
574 systemd_random_seed_CFLAGS = \
577 systemd_random_seed_LDADD = \
580 systemd_shutdownd_SOURCES = \
585 systemd_shutdownd_CFLAGS = \
588 systemd_shutdownd_LDADD = \
591 systemd_modules_load_SOURCES = \
594 systemd_modules_load_CFLAGS = \
597 systemd_modules_load_LDADD = \
600 systemd_vconsole_setup_SOURCES = \
603 systemd_vconsole_setup_CFLAGS = \
606 systemd_vconsole_setup_LDADD = \
609 systemd_remount_api_vfs_SOURCES = \
610 src/remount-api-vfs.c \
613 systemd_remount_api_vfs_CFLAGS = \
616 systemd_remount_api_vfs_LDADD = \
619 systemd_cgroups_agent_SOURCES = \
620 src/cgroups-agent.c \
623 systemd_cgroups_agent_CFLAGS = \
627 systemd_cgroups_agent_LDADD = \
628 libsystemd-basic.la \
631 systemd_kmsg_syslogd_SOURCES = \
636 systemd_kmsg_syslogd_CFLAGS = \
639 systemd_kmsg_syslogd_LDADD = \
642 systemctl_SOURCES = \
657 libsystemd-basic.la \
660 systemd_notify_SOURCES = \
664 systemd_notify_LDADD = \
667 systemd_cgls_SOURCES = \
672 systemd_cgls_CFLAGS = \
675 systemd_cgls_LDADD = \
678 systemadm_SOURCES = \
680 src/systemd-interfaces.vala
686 -Wno-unused-variable \
687 -Wno-unused-function \
689 -Wno-format-nonliteral
691 systemadm_VALAFLAGS = \
701 pam_systemd_la_SOURCES = \
706 pam_systemd_la_CFLAGS = \
710 pam_systemd_la_LDFLAGS = \
715 -export-symbols-regex '^pam_sm_.*'
717 pam_systemd_la_LIBADD = \
718 libsystemd-basic.la \
722 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
723 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
724 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
725 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
726 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
727 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
728 -e 's,@systemunitdir\@,$(systemunitdir),g' \
729 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
730 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
731 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
732 -e 's,@prefix\@,$(prefix),g' \
735 units/%: units/%.in Makefile
738 man/%: man/%.in Makefile
741 %.pc: %.pc.in Makefile
744 M4_PROCESS_SYSTEM = \
745 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
746 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
748 M4_PROCESS_SESSION = \
749 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
750 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
752 units/%: units/%.m4 Makefile
755 units/session/%: units/%.m4 Makefile
756 $(M4_PROCESS_SESSION)
759 $(nodist_systemunit_DATA) \
760 $(nodist_sessionunit_DATA) \
762 ${XML_IN_FILES:.xml.in=.html} \
763 $(pkgconfigdata_DATA)
767 ${systemadm_SOURCES:.vala=.c}
773 --param funcsynopsis.style "'ansi'"
775 XSLTPROC_PROCESS_MAN = \
776 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
777 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
779 XSLTPROC_PROCESS_MAN_IN = \
780 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
781 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
784 XSLTPROC_PROCESS_HTML = \
785 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
786 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
788 XSLTPROC_PROCESS_HTML_IN = \
789 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
790 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
794 $(XSLTPROC_PROCESS_MAN)
796 man/%.1.in: man/%.xml.in
797 $(XSLTPROC_PROCESS_MAN)
800 $(XSLTPROC_PROCESS_MAN)
802 man/%.3.in: man/%.xml.in
803 $(XSLTPROC_PROCESS_MAN)
806 $(XSLTPROC_PROCESS_MAN)
808 man/%.5.in: man/%.xml.in
809 $(XSLTPROC_PROCESS_MAN)
812 $(XSLTPROC_PROCESS_MAN)
814 man/%.7.in: man/%.xml.in
815 $(XSLTPROC_PROCESS_MAN_IN)
818 $(XSLTPROC_PROCESS_MAN)
820 man/%.8.in: man/%.xml.in
821 $(XSLTPROC_PROCESS_MAN_IN)
823 man/%.html: man/%.xml
824 $(XSLTPROC_PROCESS_HTML)
826 man/%.html.in: man/%.xml.in
827 $(XSLTPROC_PROCESS_HTML_IN)
831 ${nodist_man_MANS:=.in} \
832 ${XML_FILES:.xml=.html} \
833 ${XML_IN_FILES:.xml.in=.html.in}
836 org.freedesktop.systemd1.%.xml: systemd
837 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
840 $(dbusinterface_DATA)
844 $(DESTDIR)$(systemunitdir) \
845 $(DESTDIR)$(sessionunitdir) \
846 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
847 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
848 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
849 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
850 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
851 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
852 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
853 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
854 $(DESTDIR)$(pkgsysconfdir)/system \
855 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
856 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
857 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
858 $(DESTDIR)$(pkgsysconfdir)/session \
859 $(DESTDIR)$(sysconfdir)/xdg/systemd
860 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
862 $(LN_S) $(pkgsysconfdir)/session session )
863 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
864 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
865 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
866 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
867 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
868 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
869 rm -f systemd-update-utmp-runlevel.service && \
870 $(LN_S) ../systemd-update-utmp-runlevel.service )
871 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
872 rm -f systemd-update-utmp-runlevel.service && \
873 $(LN_S) ../systemd-update-utmp-runlevel.service )
874 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
875 rm -f systemd-update-utmp-runlevel.service && \
876 $(LN_S) ../systemd-update-utmp-runlevel.service )
877 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
878 rm -f systemd-update-utmp-runlevel.service && \
879 $(LN_S) ../systemd-update-utmp-runlevel.service )
880 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
881 rm -f systemd-update-utmp-runlevel.service && \
882 $(LN_S) ../systemd-update-utmp-runlevel.service )
883 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
884 rm -f systemd-update-utmp-shutdown.service && \
885 $(LN_S) ../systemd-update-utmp-shutdown.service )
886 ( cd $(DESTDIR)$(sessionunitdir) && \
887 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
888 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
889 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
890 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
891 $(LN_S) $(systemunitdir)/swap.target swap.target && \
892 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
893 $(LN_S) $(systemunitdir)/printer.target printer.target)
894 ( cd $(DESTDIR)$(systemunitdir) && \
895 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
896 $(LN_S) poweroff.target runlevel0.target && \
897 $(LN_S) rescue.target runlevel1.target && \
898 $(LN_S) multi-user.target runlevel2.target && \
899 $(LN_S) multi-user.target runlevel3.target && \
900 $(LN_S) multi-user.target runlevel4.target && \
901 $(LN_S) graphical.target runlevel5.target && \
902 $(LN_S) reboot.target runlevel6.target )
903 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
904 rm -f default.target ctrl-alt-del.target kbrequest.target && \
905 $(LN_S) $(systemunitdir)/graphical.target default.target && \
906 $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \
907 $(LN_S) $(systemunitdir)/rescue.target kbrequest.target )
908 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
909 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
910 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
911 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
912 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
913 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
914 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
915 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
916 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
917 rm -f getty.target remote-fs.target && \
918 $(LN_S) $(systemunitdir)/getty.target getty.target && \
919 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
920 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
921 rm -f dev-hugepages.automount \
922 dev-mqueue.automount \
923 proc-sys-fs-binfmt_misc.automount \
924 sys-kernel-debug.automount \
925 sys-kernel-security.automount && \
926 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
927 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
928 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
929 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
930 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount )
931 ( cd $(DESTDIR)$(dbussessionservicedir) && \
932 rm -f org.freedesktop.systemd1.service && \
933 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
936 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
937 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
938 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
939 $(DESTDIR)$(systemunitdir)/halt.target.wants \
940 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
941 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
942 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
943 rm -f display-manager.service && \
944 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
945 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
946 rm -f prefdm.service && \
947 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
948 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
949 rm -f rc-local.service && \
950 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
951 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
952 rm -f single.service && \
953 $(LN_S) $(systemunitdir)/single.service single.service )
954 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
955 rm -f plymouth-quit.service && \
956 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
957 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
958 rm -f plymouth-reboot.service && \
959 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
960 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
961 rm -f plymouth-poweroff.service && \
962 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
963 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
964 rm -f plymouth-halt.service && \
965 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
966 ( cd $(DESTDIR)$(systemunitdir) && \
967 rm -f local.service && \
968 $(LN_S) rc-local.service local.service )
969 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
970 $(LN_S) halt reboot > /dev/null 2>&1 || true )
973 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
974 rm -f display-manager.service && \
975 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
976 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
977 rm -f xdm.service && \
978 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
982 $(DESTDIR)$(systemunitdir)/umount.target.wants
983 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
984 rm -f umountfs.service umountnfs.service umountroot.service && \
985 $(LN_S) ../umountfs.service umountfs.service && \
986 $(LN_S) ../umountnfs.service umountnfs.service && \
987 $(LN_S) ../umountroot.service umountroot.service )
988 ( cd $(DESTDIR)$(systemunitdir) && \
989 rm -f runlevel5.target && \
990 $(LN_S) multi-user.target runlevel5.target )
994 ( cd $(DESTDIR)$(systemunitdir) && \
995 rm -f fsck.target && \
996 $(LN_S) sysinit.target fsck.target )
1000 DISTCHECK_CONFIGURE_FLAGS = \
1001 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
1002 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
1003 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
1004 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
1005 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
1006 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
1007 --with-rootdir=$$dc_install_base/$(rootdir)
1009 upload: all distcheck
1010 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
1011 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1012 scp man/*.html tango:public/systemd-man/
1015 git tag "v$(VERSION)" -m "systemd $(VERSION)"