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 \
91 pamlib_LTLIBRARIES = \
95 dist_pkgsysconf_DATA = \
98 dist_dbuspolicy_DATA = \
99 src/org.freedesktop.systemd1.conf
101 dist_dbussystemservice_DATA = \
102 src/org.freedesktop.systemd1.service
104 dist_udevrules_DATA = \
107 dbusinterface_DATA = \
108 org.freedesktop.systemd1.Manager.xml \
109 org.freedesktop.systemd1.Job.xml \
110 org.freedesktop.systemd1.Unit.xml \
111 org.freedesktop.systemd1.Service.xml \
112 org.freedesktop.systemd1.Socket.xml \
113 org.freedesktop.systemd1.Timer.xml \
114 org.freedesktop.systemd1.Target.xml \
115 org.freedesktop.systemd1.Device.xml \
116 org.freedesktop.systemd1.Mount.xml \
117 org.freedesktop.systemd1.Automount.xml \
118 org.freedesktop.systemd1.Snapshot.xml \
119 org.freedesktop.systemd1.Swap.xml \
120 org.freedesktop.systemd1.Path.xml
122 dist_systemunit_DATA = \
123 units/emergency.service \
124 units/emergency.target \
128 units/local-fs.target \
129 units/network.target \
130 units/nss-lookup.target \
131 units/mail-transfer-agent.target \
132 units/http-daemon.target \
133 units/poweroff.target \
134 units/reboot.target \
135 units/rescue.target \
136 units/rpcbind.target \
137 units/rtc-set.target \
138 units/shutdown.target \
139 units/umount.target \
140 units/sigpwr.target \
141 units/sockets.target \
144 units/systemd-initctl.socket \
145 units/systemd-logger.socket \
146 units/systemd-shutdownd.socket \
147 units/systemd-kmsg-syslogd.socket \
148 units/dev-hugepages.automount \
149 units/dev-hugepages.mount \
150 units/dev-mqueue.automount \
151 units/dev-mqueue.mount \
152 units/proc-sys-fs-binfmt_misc.automount \
153 units/proc-sys-fs-binfmt_misc.mount \
154 units/sys-kernel-debug.automount \
155 units/sys-kernel-debug.mount \
156 units/sys-kernel-security.automount \
157 units/sys-kernel-security.mount \
159 units/var-lock.mount \
160 units/var-lock.service \
161 units/var-run.mount \
162 units/var-run.service \
163 units/hwclock-load.service \
164 units/hwclock-save.service \
165 units/sysctl.service \
166 units/remount-rootfs.service \
167 units/printer.target \
168 units/bluetooth.target \
169 units/smartcard.target
171 nodist_systemunit_DATA = \
172 units/sysinit.target \
173 units/getty@.service \
174 units/serial-getty@.service \
175 units/graphical.target \
176 units/remote-fs.target \
177 units/multi-user.target \
178 units/systemd-initctl.service \
179 units/systemd-logger.service \
180 units/systemd-shutdownd.service \
181 units/systemd-kmsg-syslogd.service \
182 units/systemd-modules-load.service \
183 units/systemd-remount-api-vfs.service \
184 units/systemd-update-utmp-runlevel.service \
185 units/systemd-update-utmp-shutdown.service \
186 units/systemd-random-seed-save.service \
187 units/systemd-random-seed-load.service \
190 dist_sessionunit_DATA = \
191 units/session/default.target
193 nodist_sessionunit_DATA = \
194 units/session/remote-fs.target \
195 units/session/exit.service
198 units/sysinit.target.m4 \
199 units/getty@.service.m4 \
200 units/serial-getty@.service.m4 \
201 units/graphical.target.m4 \
202 units/multi-user.target.m4 \
203 units/remote-fs.target.m4 \
204 units/systemd-initctl.service.in \
205 units/systemd-logger.service.in \
206 units/systemd-shutdownd.service.in \
207 units/systemd-kmsg-syslogd.service.in \
208 units/systemd-modules-load.service.in \
209 units/systemd-remount-api-vfs.service.in \
210 units/systemd-update-utmp-runlevel.service.in \
211 units/systemd-update-utmp-shutdown.service.in \
212 units/systemd-random-seed-save.service.in \
213 units/systemd-random-seed-load.service.in \
214 units/syslog.target.in \
215 units/session/exit.service.in \
219 dist_systemunit_DATA += \
220 units/fedora/halt.service \
221 units/fedora/killall.service \
222 units/fedora/poweroff.service \
223 units/fedora/prefdm.service \
224 units/fedora/rc-local.service \
225 units/fedora/reboot.service \
226 units/fedora/sysinit.service \
227 units/fedora/single.service \
228 units/fedora/plymouth-quit.service \
229 units/fedora/plymouth-reboot.service \
230 units/fedora/plymouth-poweroff.service \
231 units/fedora/plymouth-halt.service
235 dist_systemunit_DATA += \
236 units/debian/halt.service \
237 units/debian/killall.service \
238 units/debian/poweroff.service \
239 units/debian/reboot.service \
240 units/debian/fsck.target \
241 units/debian/umountfs.service \
242 units/debian/umountnfs.service \
243 units/debian/umountroot.service
247 dist_systemunit_DATA += \
248 units/suse/halt.service \
249 units/suse/poweroff.service \
250 units/suse/reboot.service \
251 units/suse/fsck.target
255 dist_systemunit_DATA += \
256 units/gentoo/halt.service \
257 units/gentoo/killall.service \
258 units/gentoo/poweroff.service \
259 units/gentoo/reboot.service \
260 units/gentoo/xdm.service
264 dist_systemunit_DATA += \
265 units/arch/sysinit.service \
266 units/arch/rc-local.service \
267 units/arch/halt.service \
268 units/arch/poweroff.service \
269 units/arch/reboot.service
279 pkgconfigdata_DATA = \
282 noinst_LTLIBRARIES = \
283 libsystemd-basic.la \
286 libsystemd_basic_la_SOURCES = \
297 libsystemd_basic_la_CFLAGS = \
301 libsystemd_basic_la_LIBADD = \
304 libsystemd_core_la_SOURCES = \
309 src/load-fragment.c \
332 src/dbus-automount.c \
334 src/dbus-snapshot.c \
340 src/hostname-setup.c \
341 src/loopback-setup.c \
350 libsystemd_core_la_CFLAGS = \
358 libsystemd_core_la_LIBADD = \
359 libsystemd-basic.la \
366 # This is needed because automake is buggy in how it generates the
367 # rules for C programs, but not Vala programs. We therefore can't
368 # list the .h files as dependencies if we want make dist to work.
371 ${libsystemd_basic_la_SOURCES:.c=.h} \
372 ${libsystemd_core_la_SOURCES:.c=.h} \
378 src/linux/auto_dev-ioctl.h \
394 man/systemd-notify.1 \
397 man/sd_listen_fds.3 \
400 man/systemd.service.5 \
401 man/systemd.socket.5 \
402 man/systemd.mount.5 \
403 man/systemd.automount.5 \
405 man/systemd.timer.5 \
407 man/systemd.target.5 \
408 man/systemd.device.5 \
409 man/systemd.snapshot.5 \
424 man/sd_is_socket_unix.3 \
425 man/sd_is_socket_inet.3 \
429 man/reboot.8: man/halt.8
430 man/poweroff.8: man/halt.8
431 man/sd_is_socket.3: man/sd_is_fifo.3
432 man/sd_is_socket_unix.3: man/sd_is_fifo.3
433 man/sd_is_socket_inet.3: man/sd_is_fifo.3
434 man/sd_notifyf.3: man/sd_notify.3
435 man/init.1: man/systemd.1
442 man/systemd.special.7
445 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
448 ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
451 ${XML_FILES:.xml=.html}
453 nodist_noinst_DATA = \
454 ${XML_IN_FILES:.xml.in=.html}
459 ${nodist_man_MANS:=.in} \
460 ${XML_IN_FILES:.xml.in=.html.in}
473 test_engine_SOURCES = \
476 test_engine_CFLAGS = $(systemd_CFLAGS)
477 test_engine_LDADD = $(systemd_LDADD)
479 test_job_type_SOURCES = \
482 test_job_type_CFLAGS = $(systemd_CFLAGS)
483 test_job_type_LDADD = $(systemd_LDADD)
488 test_ns_CFLAGS = $(systemd_CFLAGS)
489 test_ns_LDADD = $(systemd_LDADD)
491 test_loopback_SOURCES = \
492 src/test-loopback.c \
495 test_loopback_LDADD = \
498 test_hostname_SOURCES = \
499 src/test-hostname.c \
502 test_hostname_LDADD = \
505 test_daemon_SOURCES = \
509 test_daemon_LDADD = \
512 test_cgroup_SOURCES = \
516 test_cgroup_CFLAGS = \
519 test_cgroup_LDADD = \
522 test_env_replace_SOURCES = \
523 src/test-env-replace.c
525 test_env_replace_CFLAGS = \
528 test_env_replace_LDADD = \
531 systemd_logger_SOURCES = \
536 systemd_logger_LDADD = \
537 libsystemd-basic.la \
540 systemd_initctl_SOURCES = \
545 systemd_initctl_CFLAGS = \
549 systemd_initctl_LDADD = \
550 libsystemd-basic.la \
553 systemd_update_utmp_SOURCES = \
558 systemd_update_utmp_CFLAGS = \
563 systemd_update_utmp_LDADD = \
564 libsystemd-basic.la \
568 systemd_random_seed_SOURCES = \
571 systemd_random_seed_CFLAGS = \
574 systemd_random_seed_LDADD = \
577 systemd_shutdownd_SOURCES = \
582 systemd_shutdownd_CFLAGS = \
585 systemd_shutdownd_LDADD = \
588 systemd_modules_load_SOURCES = \
591 systemd_modules_load_CFLAGS = \
594 systemd_modules_load_LDADD = \
597 systemd_remount_api_vfs_SOURCES = \
598 src/remount-api-vfs.c \
601 systemd_remount_api_vfs_CFLAGS = \
604 systemd_remount_api_vfs_LDADD = \
607 systemd_cgroups_agent_SOURCES = \
608 src/cgroups-agent.c \
611 systemd_cgroups_agent_CFLAGS = \
615 systemd_cgroups_agent_LDADD = \
616 libsystemd-basic.la \
619 systemd_kmsg_syslogd_SOURCES = \
624 systemd_kmsg_syslogd_CFLAGS = \
627 systemd_kmsg_syslogd_LDADD = \
630 systemctl_SOURCES = \
645 libsystemd-basic.la \
648 systemd_notify_SOURCES = \
652 systemd_notify_LDADD = \
655 systemd_cgls_SOURCES = \
660 systemd_cgls_CFLAGS = \
663 systemd_cgls_LDADD = \
666 systemadm_SOURCES = \
668 src/systemd-interfaces.vala
674 -Wno-unused-variable \
675 -Wno-unused-function \
677 -Wno-format-nonliteral
679 systemadm_VALAFLAGS = \
689 pam_systemd_la_SOURCES = \
694 pam_systemd_la_CFLAGS = \
698 pam_systemd_la_LDFLAGS = \
703 -export-symbols-regex '^pam_sm_.*'
705 pam_systemd_la_LIBADD = \
706 libsystemd-basic.la \
710 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
711 $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
712 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
713 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
714 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
715 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
716 -e 's,@systemunitdir\@,$(systemunitdir),g' \
717 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
718 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
719 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
720 -e 's,@prefix\@,$(prefix),g' \
723 units/%: units/%.in Makefile
726 man/%: man/%.in Makefile
729 %.pc: %.pc.in Makefile
732 M4_PROCESS_SYSTEM = \
733 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
734 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
736 M4_PROCESS_SESSION = \
737 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
738 $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
740 units/%: units/%.m4 Makefile
743 units/session/%: units/%.m4 Makefile
744 $(M4_PROCESS_SESSION)
747 $(nodist_systemunit_DATA) \
748 $(nodist_sessionunit_DATA) \
750 ${XML_IN_FILES:.xml.in=.html} \
751 $(pkgconfigdata_DATA)
755 ${systemadm_SOURCES:.vala=.c}
761 --param funcsynopsis.style "'ansi'"
763 XSLTPROC_PROCESS_MAN = \
764 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
765 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
767 XSLTPROC_PROCESS_MAN_IN = \
768 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
769 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
772 XSLTPROC_PROCESS_HTML = \
773 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
774 $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
776 XSLTPROC_PROCESS_HTML_IN = \
777 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
778 $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
782 $(XSLTPROC_PROCESS_MAN)
784 man/%.1.in: man/%.xml.in
785 $(XSLTPROC_PROCESS_MAN)
788 $(XSLTPROC_PROCESS_MAN)
790 man/%.3.in: man/%.xml.in
791 $(XSLTPROC_PROCESS_MAN)
794 $(XSLTPROC_PROCESS_MAN)
796 man/%.5.in: man/%.xml.in
797 $(XSLTPROC_PROCESS_MAN)
800 $(XSLTPROC_PROCESS_MAN)
802 man/%.7.in: man/%.xml.in
803 $(XSLTPROC_PROCESS_MAN_IN)
806 $(XSLTPROC_PROCESS_MAN)
808 man/%.8.in: man/%.xml.in
809 $(XSLTPROC_PROCESS_MAN_IN)
811 man/%.html: man/%.xml
812 $(XSLTPROC_PROCESS_HTML)
814 man/%.html.in: man/%.xml.in
815 $(XSLTPROC_PROCESS_HTML_IN)
819 ${nodist_man_MANS:=.in} \
820 ${XML_FILES:.xml=.html} \
821 ${XML_IN_FILES:.xml.in=.html.in}
824 org.freedesktop.systemd1.%.xml: systemd
825 $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@
828 $(dbusinterface_DATA)
832 $(DESTDIR)$(systemunitdir) \
833 $(DESTDIR)$(sessionunitdir) \
834 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
835 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
836 $(DESTDIR)$(systemunitdir)/shutdown.target.wants \
837 $(DESTDIR)$(systemunitdir)/runlevel1.target.wants \
838 $(DESTDIR)$(systemunitdir)/runlevel2.target.wants \
839 $(DESTDIR)$(systemunitdir)/runlevel3.target.wants \
840 $(DESTDIR)$(systemunitdir)/runlevel4.target.wants \
841 $(DESTDIR)$(systemunitdir)/runlevel5.target.wants \
842 $(DESTDIR)$(pkgsysconfdir)/system \
843 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
844 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
845 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
846 $(DESTDIR)$(pkgsysconfdir)/session \
847 $(DESTDIR)$(sysconfdir)/xdg/systemd
848 ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
850 $(LN_S) $(pkgsysconfdir)/session session )
851 ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
852 rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \
853 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
854 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \
855 $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket )
856 ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \
857 rm -f systemd-update-utmp-runlevel.service && \
858 $(LN_S) ../systemd-update-utmp-runlevel.service )
859 ( cd $(DESTDIR)$(systemunitdir)/runlevel2.target.wants && \
860 rm -f systemd-update-utmp-runlevel.service && \
861 $(LN_S) ../systemd-update-utmp-runlevel.service )
862 ( cd $(DESTDIR)$(systemunitdir)/runlevel3.target.wants && \
863 rm -f systemd-update-utmp-runlevel.service && \
864 $(LN_S) ../systemd-update-utmp-runlevel.service )
865 ( cd $(DESTDIR)$(systemunitdir)/runlevel4.target.wants && \
866 rm -f systemd-update-utmp-runlevel.service && \
867 $(LN_S) ../systemd-update-utmp-runlevel.service )
868 ( cd $(DESTDIR)$(systemunitdir)/runlevel5.target.wants && \
869 rm -f systemd-update-utmp-runlevel.service && \
870 $(LN_S) ../systemd-update-utmp-runlevel.service )
871 ( cd $(DESTDIR)$(systemunitdir)/shutdown.target.wants && \
872 rm -f systemd-update-utmp-shutdown.service && \
873 $(LN_S) ../systemd-update-utmp-shutdown.service )
874 ( cd $(DESTDIR)$(sessionunitdir) && \
875 rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \
876 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
877 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
878 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
879 $(LN_S) $(systemunitdir)/swap.target swap.target && \
880 $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \
881 $(LN_S) $(systemunitdir)/printer.target printer.target)
882 ( cd $(DESTDIR)$(systemunitdir) && \
883 rm -f runlevel0.target runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target runlevel6.target && \
884 $(LN_S) poweroff.target runlevel0.target && \
885 $(LN_S) rescue.target runlevel1.target && \
886 $(LN_S) multi-user.target runlevel2.target && \
887 $(LN_S) multi-user.target runlevel3.target && \
888 $(LN_S) multi-user.target runlevel4.target && \
889 $(LN_S) graphical.target runlevel5.target && \
890 $(LN_S) reboot.target runlevel6.target )
891 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
892 rm -f default.target ctrl-alt-del.target kbrequest.target && \
893 $(LN_S) $(systemunitdir)/graphical.target default.target && \
894 $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \
895 $(LN_S) $(systemunitdir)/rescue.target kbrequest.target )
896 ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
897 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
898 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
899 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
900 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
901 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
902 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
903 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
904 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
905 rm -f getty.target remote-fs.target && \
906 $(LN_S) $(systemunitdir)/getty.target getty.target && \
907 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
908 ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
909 rm -f dev-hugepages.automount \
910 dev-mqueue.automount \
911 proc-sys-fs-binfmt_misc.automount \
912 sys-kernel-debug.automount \
913 sys-kernel-security.automount && \
914 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
915 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
916 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
917 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
918 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount )
919 ( cd $(DESTDIR)$(dbussessionservicedir) && \
920 rm -f org.freedesktop.systemd1.service && \
921 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
924 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
925 $(DESTDIR)$(systemunitdir)/reboot.target.wants \
926 $(DESTDIR)$(systemunitdir)/poweroff.target.wants \
927 $(DESTDIR)$(systemunitdir)/halt.target.wants \
928 $(DESTDIR)$(systemunitdir)/rescue.target.wants \
929 $(DESTDIR)$(systemunitdir)/multi-user.target.wants
930 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
931 rm -f display-manager.service && \
932 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
933 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
934 rm -f prefdm.service && \
935 $(LN_S) $(systemunitdir)/prefdm.service prefdm.service )
936 ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
937 rm -f rc-local.service && \
938 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
939 ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
940 rm -f single.service && \
941 $(LN_S) $(systemunitdir)/single.service single.service )
942 ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \
943 rm -f plymouth-quit.service && \
944 $(LN_S) ../plymouth-quit.service plymouth-quit.service )
945 ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \
946 rm -f plymouth-reboot.service && \
947 $(LN_S) ../plymouth-reboot.service plymouth-reboot.service )
948 ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \
949 rm -f plymouth-poweroff.service && \
950 $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service )
951 ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \
952 rm -f plymouth-halt.service && \
953 $(LN_S) ../plymouth-halt.service plymouth-halt.service )
954 ( cd $(DESTDIR)$(systemunitdir) && \
955 rm -f local.service && \
956 $(LN_S) rc-local.service local.service )
957 ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
958 $(LN_S) halt reboot > /dev/null 2>&1 || true )
961 ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
962 rm -f display-manager.service && \
963 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
964 ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
965 rm -f xdm.service && \
966 $(LN_S) $(systemunitdir)/xdm.service xdm.service )
970 $(DESTDIR)$(systemunitdir)/umount.target.wants
971 ( cd $(DESTDIR)$(systemunitdir)/umount.target.wants && \
972 rm -f umountfs.service umountnfs.service umountroot.service && \
973 $(LN_S) ../umountfs.service umountfs.service && \
974 $(LN_S) ../umountnfs.service umountnfs.service && \
975 $(LN_S) ../umountroot.service umountroot.service )
976 ( cd $(DESTDIR)$(systemunitdir) && \
977 rm -f runlevel5.target && \
978 $(LN_S) multi-user.target runlevel5.target )
982 ( cd $(DESTDIR)$(systemunitdir) && \
983 rm -f fsck.target && \
984 $(LN_S) sysinit.target fsck.target )
988 DISTCHECK_CONFIGURE_FLAGS = \
989 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
990 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
991 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
992 --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
993 --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
994 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
995 --with-rootdir=$$dc_install_base/$(rootdir)
997 upload: all distcheck
998 cp -v systemd-$(VERSION).tar.bz2 /home/lennart/git.fedora/systemd/
999 scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/
1000 scp man/*.html tango:public/systemd-man/
1003 git tag "v$(VERSION)" -m "systemd $(VERSION)"