chiark / gitweb /
automount: add DirectoryMode= setting
[elogind.git] / Makefile.am
1 #  This file is part of systemd.
2 #
3 #  Copyright 2010 Lennart Poettering
4 #
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.
9 #
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.
14 #
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/>.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 # Dirs of external packages
21 dbuspolicydir=@dbuspolicydir@
22 dbussessionservicedir=@dbussessionservicedir@
23 dbussystemservicedir=@dbussystemservicedir@
24 dbusinterfacedir=@dbusinterfacedir@
25 udevrulesdir=@udevrulesdir@
26 pamlibdir=@pamlibdir@
27 pkgconfigdatadir=$(datadir)/pkgconfig
28
29 # Our own, non-special dirs
30 pkgsysconfdir=$(sysconfdir)/systemd
31 sessionunitdir=$(pkgdatadir)/session
32
33 # And these are the special ones for /
34 rootdir=@rootdir@
35 rootbindir=$(rootdir)/bin
36 rootlibexecdir=$(rootdir)/lib/systemd
37 systemunitdir=$(rootdir)/lib/systemd/system
38
39 AM_CPPFLAGS = \
40         -include $(top_builddir)/config.h \
41         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
42         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
43         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
44         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
45         -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
46         -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
47         -DCGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
48         -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \
49         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
50         -DRUNTIME_DIR=\"$(localstatedir)/run\" \
51         -I $(top_srcdir)/src
52
53 rootbin_PROGRAMS = \
54         systemd \
55         systemctl \
56         systemd-notify
57
58 bin_PROGRAMS = \
59         systemd-install
60
61 if HAVE_GTK
62 bin_PROGRAMS += \
63         systemadm
64 endif
65
66 rootlibexec_PROGRAMS = \
67         systemd-logger \
68         systemd-cgroups-agent \
69         systemd-initctl
70
71 noinst_PROGRAMS = \
72         test-engine \
73         test-job-type \
74         test-ns \
75         test-loopback \
76         test-daemon \
77         test-cgroup
78
79 if HAVE_PAM
80 pamlib_LTLIBRARIES = \
81         pam_systemd.la
82 endif
83
84 dist_dbuspolicy_DATA = \
85         src/org.freedesktop.systemd1.conf
86
87 dist_dbussystemservice_DATA = \
88         src/org.freedesktop.systemd1.service
89
90 dist_udevrules_DATA = \
91         src/99-systemd.rules
92
93 dbusinterface_DATA = \
94         org.freedesktop.systemd1.Manager.xml \
95         org.freedesktop.systemd1.Job.xml \
96         org.freedesktop.systemd1.Unit.xml \
97         org.freedesktop.systemd1.Service.xml \
98         org.freedesktop.systemd1.Socket.xml \
99         org.freedesktop.systemd1.Timer.xml \
100         org.freedesktop.systemd1.Target.xml \
101         org.freedesktop.systemd1.Device.xml \
102         org.freedesktop.systemd1.Mount.xml \
103         org.freedesktop.systemd1.Automount.xml \
104         org.freedesktop.systemd1.Snapshot.xml \
105         org.freedesktop.systemd1.Swap.xml \
106         org.freedesktop.systemd1.Path.xml
107
108 dist_systemunit_DATA = \
109         units/emergency.service \
110         units/basic.target \
111         units/getty.target \
112         units/halt.target \
113         units/local-fs.target \
114         units/network.target \
115         units/nss-lookup.target \
116         units/mail-transfer-agent.target \
117         units/poweroff.target \
118         units/reboot.target \
119         units/rescue.target \
120         units/rpcbind.target \
121         units/rtc-set.target \
122         units/shutdown.target \
123         units/sigpwr.target \
124         units/sockets.target \
125         units/swap.target \
126         units/systemd-initctl.socket \
127         units/systemd-logger.socket \
128         units/dev-hugepages.automount \
129         units/dev-hugepages.mount \
130         units/dev-mqueue.automount \
131         units/dev-mqueue.mount \
132         units/proc-sys-fs-binfmt_misc.automount \
133         units/proc-sys-fs-binfmt_misc.mount \
134         units/sys-kernel-debug.automount \
135         units/sys-kernel-debug.mount \
136         units/sys-kernel-security.automount \
137         units/sys-kernel-security.mount \
138         units/var-lock.mount \
139         units/var-run.mount
140
141 nodist_systemunit_DATA = \
142         units/sysinit.target \
143         units/getty@.service \
144         units/graphical.target \
145         units/remote-fs.target \
146         units/multi-user.target \
147         units/systemd-initctl.service \
148         units/systemd-logger.service \
149         units/syslog.target
150
151 dist_sessionunit_DATA = \
152         units/session/default.target
153
154 nodist_sessionunit_DATA = \
155         units/session/remote-fs.target \
156         units/session/exit.service
157
158 EXTRA_DIST = \
159         units/sysinit.target.m4 \
160         units/getty@.service.m4 \
161         units/graphical.target.m4 \
162         units/multi-user.target.m4 \
163         units/remote-fs.target.m4 \
164         units/systemd-initctl.service.in \
165         units/systemd-logger.service.in \
166         units/syslog.target.in \
167         units/session/exit.service.in \
168         systemd.pc.in
169
170 if TARGET_FEDORA
171 dist_systemunit_DATA += \
172         units/fedora/halt.service \
173         units/fedora/killall.service \
174         units/fedora/poweroff.service \
175         units/fedora/prefdm.service \
176         units/fedora/rc-local.service \
177         units/fedora/reboot.service \
178         units/fedora/sysinit.service
179 endif
180
181 if TARGET_SUSE
182 dist_systemunit_DATA += \
183         units/suse/halt.service \
184         units/suse/poweroff.service \
185         units/suse/reboot.service
186 endif
187
188 if TARGET_GENTOO
189 dist_systemunit_DATA += \
190         units/gentoo/halt.service \
191         units/gentoo/killall.service \
192         units/gentoo/poweroff.service \
193         units/gentoo/reboot.service \
194         units/gentoo/xdm.service
195 endif
196
197 if TARGET_ARCH
198 dist_systemunit_DATA += \
199         units/arch/sysinit.service \
200         units/arch/rc-local.service \
201         units/arch/halt.service \
202         units/arch/poweroff.service \
203         units/arch/reboot.service
204 endif
205
206 dist_doc_DATA = \
207         README \
208         LICENSE \
209         DISTRO_PORTING \
210         src/sd-daemon.h \
211         src/sd-daemon.c
212
213 pkgconfigdata_DATA = \
214         systemd.pc
215
216 noinst_LTLIBRARIES = \
217         libsystemd-basic.la \
218         libsystemd-core.la
219
220 # This is needed because automake is buggy in how it generates the
221 # rules for C programs, but not Vala programs.  We therefore can't
222 # list the .h files as dependencies if we want make dist to work.
223
224 libsystemd_basic_la_SOURCES = \
225         src/util.c \
226         src/hashmap.c \
227         src/set.c \
228         src/strv.c \
229         src/conf-parser.c \
230         src/socket-util.c \
231         src/log.c \
232         src/ratelimit.c
233
234 libsystemd_core_la_SOURCES = \
235         src/unit.c \
236         src/job.c \
237         src/manager.c \
238         src/path-lookup.c \
239         src/load-fragment.c \
240         src/service.c \
241         src/automount.c \
242         src/mount.c \
243         src/swap.c \
244         src/device.c \
245         src/target.c \
246         src/snapshot.c \
247         src/socket.c \
248         src/timer.c \
249         src/path.c \
250         src/load-dropin.c \
251         src/execute.c \
252         src/dbus.c \
253         src/dbus-manager.c \
254         src/dbus-unit.c \
255         src/dbus-job.c \
256         src/dbus-service.c \
257         src/dbus-socket.c \
258         src/dbus-timer.c \
259         src/dbus-target.c \
260         src/dbus-mount.c \
261         src/dbus-automount.c \
262         src/dbus-swap.c \
263         src/dbus-snapshot.c \
264         src/dbus-device.c \
265         src/dbus-execute.c \
266         src/dbus-path.c \
267         src/cgroup.c \
268         src/mount-setup.c \
269         src/hostname-setup.c \
270         src/loopback-setup.c \
271         src/kmod-setup.c \
272         src/utmp-wtmp.c \
273         src/specifier.c \
274         src/unit-name.c \
275         src/fdset.c \
276         src/namespace.c \
277         src/tcpwrap.c \
278         src/cgroup-util.c
279
280 libsystemd_core_la_CFLAGS = \
281         $(AM_CFLAGS) \
282         $(DBUS_CFLAGS) \
283         $(UDEV_CFLAGS) \
284         $(CGROUP_CFLAGS)
285
286 libsystemd_core_la_LIBADD = \
287         libsystemd-basic.la \
288         $(DBUS_LIBS) \
289         $(UDEV_LIBS) \
290         $(CGROUP_LIBS) \
291         $(LIBWRAP_LIBS) \
292         $(PAM_LIBS)
293
294 EXTRA_DIST += \
295         ${libsystemd_basic_la_SOURCES:.c=.h} \
296         ${libsystemd_core_la_SOURCES:.c=.h} \
297         src/macro.h \
298         src/ioprio.h \
299         src/missing.h \
300         src/list.h \
301         src/securebits.h \
302         src/linux/auto_dev-ioctl.h \
303         src/initreq.h \
304         src/sd-daemon.h \
305         src/special.h
306
307
308 MANPAGES = \
309         man/systemd.1 \
310         man/systemctl.1 \
311         man/systemadm.1 \
312         man/systemd-install.1 \
313         man/systemd-notify.1 \
314         man/sd_notify.3 \
315         man/sd_booted.3 \
316         man/sd_listen_fds.3 \
317         man/sd_is_fifo.3 \
318         man/systemd.unit.5 \
319         man/systemd.service.5 \
320         man/systemd.socket.5 \
321         man/systemd.mount.5 \
322         man/daemon.7 \
323         man/sd-daemon.7 \
324         man/runlevel.8 \
325         man/telinit.8 \
326         man/halt.8 \
327         man/shutdown.8 \
328         man/pam_systemd.8
329
330 MANPAGES_ALIAS = \
331         man/reboot.8 \
332         man/poweroff.8 \
333         man/sd_is_socket.3 \
334         man/sd_is_socket_unix.3 \
335         man/sd_is_socket_inet.3 \
336         man/sd_notifyf.3 \
337         man/init.1
338
339 man/reboot.8: man/halt.8
340 man/poweroff.8: man/halt.8
341 man/sd_is_socket.3: man/sd_is_fifo.3
342 man/sd_is_socket_unix.3: man/sd_is_fifo.3
343 man/sd_is_socket_inet.3: man/sd_is_fifo.3
344 man/sd_notifyf.3: man/sd_notify.3
345 man/init.1: man/systemd.1
346
347 dist_man_MANS = \
348         $(MANPAGES) \
349         $(MANPAGES_ALIAS)
350
351 nodist_man_MANS = \
352         man/systemd.special.7
353
354 XML_FILES = \
355         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
356
357 XML_IN_FILES = \
358         ${patsubst %.1,%.xml.in,${patsubst %.3,%.xml.in,${patsubst %.5,%.xml.in,${patsubst %.7,%.xml.in,${patsubst %.8,%.xml.in,$(nodist_man_MANS)}}}}}
359
360 dist_noinst_DATA = \
361         ${XML_FILES:.xml=.html}
362
363 nodist_noinst_DATA = \
364         ${XML_IN_FILES:.xml.in=.html}
365
366 EXTRA_DIST += \
367         $(XML_FILES) \
368         $(XML_IN_FILES) \
369         ${nodist_man_MANS:=.in} \
370         ${XML_IN_FILES:.xml.in=.html.in}
371
372 systemd_SOURCES = \
373         src/main.c
374
375 systemd_CFLAGS = \
376         $(AM_CFLAGS) \
377         $(DBUS_CFLAGS) \
378         $(UDEV_CFLAGS) \
379         $(CGROUP_CFLAGS)
380
381 systemd_LDADD = \
382         libsystemd-core.la
383
384 test_engine_SOURCES = \
385         src/test-engine.c
386
387 test_engine_CFLAGS = $(systemd_CFLAGS)
388 test_engine_LDADD = $(systemd_LDADD)
389
390 test_job_type_SOURCES = \
391         src/test-job-type.c
392
393 test_job_type_CFLAGS = $(systemd_CFLAGS)
394 test_job_type_LDADD = $(systemd_LDADD)
395
396 test_ns_SOURCES = \
397         src/test-ns.c
398
399 test_ns_CFLAGS = $(systemd_CFLAGS)
400 test_ns_LDADD = $(systemd_LDADD)
401
402 test_loopback_SOURCES = \
403         src/test-loopback.c \
404         src/loopback-setup.c
405
406 test_loopback_LDADD = \
407         libsystemd-basic.la
408
409 test_daemon_SOURCES = \
410         src/test-daemon.c \
411         src/sd-daemon.c
412
413 test_daemon_LDADD = \
414         libsystemd-basic.la
415
416 test_cgroup_SOURCES = \
417         src/test-cgroup.c \
418         src/cgroup-util.c
419
420 test_cgroup_CFLAGS = \
421         $(AM_CFLAGS) \
422         $(CGROUP_CFLAGS)
423
424 test_cgroup_LDADD = \
425         libsystemd-basic.la \
426         $(CGROUP_LIBS)
427
428 systemd_logger_SOURCES = \
429         src/logger.c \
430         src/sd-daemon.c \
431         src/tcpwrap.c
432
433 systemd_logger_LDADD = \
434         libsystemd-basic.la \
435         $(LIBWRAP_LIBS)
436
437 systemd_initctl_SOURCES = \
438         src/initctl.c \
439         src/sd-daemon.c
440
441 systemd_initctl_CFLAGS = \
442         $(AM_CFLAGS) \
443         $(DBUS_CFLAGS)
444
445 systemd_initctl_LDADD = \
446         libsystemd-basic.la \
447         $(DBUS_LIBS)
448
449 systemd_cgroups_agent_SOURCES = \
450         src/cgroups-agent.c
451
452 systemd_cgroups_agent_CFLAGS = \
453         $(AM_CFLAGS) \
454         $(DBUS_CFLAGS)
455
456 systemd_cgroups_agent_LDADD = \
457         libsystemd-basic.la \
458         $(DBUS_LIBS)
459
460 systemctl_SOURCES = \
461         src/systemctl.c \
462         src/utmp-wtmp.c
463
464 systemctl_CFLAGS = \
465         $(AM_CFLAGS) \
466         $(DBUS_CFLAGS)
467
468 systemctl_LDADD = \
469         libsystemd-basic.la \
470         $(DBUS_LIBS)
471
472 systemd_notify_SOURCES = \
473         src/notify.c \
474         src/sd-daemon.c
475
476 systemd_notify_LDADD = \
477         libsystemd-basic.la
478
479 systemd_install_SOURCES = \
480         src/install.c \
481         src/path-lookup.c
482
483 systemd_install_LDADD = \
484         libsystemd-basic.la
485
486 # We don't really link here against D-Bus, however we indirectly include D-Bus header files
487 systemd_install_CFLAGS = \
488         $(AM_CFLAGS) \
489         $(DBUS_CFLAGS)
490
491 systemadm_SOURCES = \
492         src/systemadm.vala \
493         src/systemd-interfaces.vala
494
495 systemadm_CFLAGS = \
496         $(AM_CFLAGS) \
497         $(DBUSGLIB_CFLAGS) \
498         $(GTK_CFLAGS) \
499         -Wno-unused-variable \
500         -Wno-unused-function \
501         -Wno-shadow \
502         -Wno-format-nonliteral
503
504 systemadm_VALAFLAGS = \
505         --pkg=dbus-glib-1 \
506         --pkg=posix \
507         --pkg=gtk+-2.0 \
508         -g
509
510 systemadm_LDADD = \
511         $(DBUSGLIB_LIBS) \
512         $(GTK_LIBS)
513
514 pam_systemd_la_SOURCES = \
515         src/pam-module.c \
516         src/cgroup-util.c \
517         src/sd-daemon.c
518
519 pam_systemd_la_CFLAGS = \
520         $(AM_CFLAGS) \
521         $(CGROUP_CFLAGS) \
522         -fvisibility=hidden
523
524 pam_systemd_la_LDFLAGS = \
525         -module \
526         -export-dynamic \
527         -avoid-version \
528         -shared \
529         -export-symbols-regex '^pam_sm_.*'
530
531 pam_systemd_la_LIBADD = \
532         libsystemd-basic.la \
533         $(PAM_LIBS) \
534         $(CGROUP_LIBS)
535
536 SED_PROCESS = \
537         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
538         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
539                 -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \
540                 -e 's,@SPECIAL_DBUS_SERVICE\@,$(SPECIAL_DBUS_SERVICE),g' \
541                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
542                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
543                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
544                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
545                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
546                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
547                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
548                 -e 's,@prefix\@,$(prefix),g' \
549                 < $< > $@
550
551 units/%: units/%.in Makefile
552         $(SED_PROCESS)
553
554 man/%: man/%.in Makefile
555         $(SED_PROCESS)
556
557 %.pc: %.pc.in Makefile
558         $(SED_PROCESS)
559
560 M4_PROCESS_SYSTEM = \
561         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
562         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SYSTEM=1 < $< > $@
563
564 M4_PROCESS_SESSION = \
565         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
566         $(M4) -P $(M4_DISTRO_FLAG) -DFOR_SESSION=1 < $< > $@
567
568 units/%: units/%.m4 Makefile
569         $(M4_PROCESS_SYSTEM)
570
571 units/session/%: units/%.m4 Makefile
572         $(M4_PROCESS_SESSION)
573
574 CLEANFILES = \
575         $(nodist_systemunit_DATA) \
576         $(nodist_sessionunit_DATA) \
577         $(nodist_man_MANS) \
578         ${XML_IN_FILES:.xml.in=.html} \
579         $(pkgconfigdata_DATA)
580
581 if HAVE_VALAC
582 CLEANFILES += \
583         ${systemadm_SOURCES:.vala=.c}
584 endif
585
586 if HAVE_XSLTPROC
587 XSLTPROC_FLAGS = \
588         --nonet \
589         --param funcsynopsis.style "'ansi'"
590
591 XSLTPROC_PROCESS_MAN = \
592         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
593         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
594
595 XSLTPROC_PROCESS_MAN_IN = \
596         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
597         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $< && \
598         mv ${@:.in=} $@
599
600 XSLTPROC_PROCESS_HTML = \
601         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
602         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $<
603
604 XSLTPROC_PROCESS_HTML_IN = \
605         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
606         $(XSLTPROC) -o ${@:.in=} $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/xhtml-1_1/docbook.xsl $< && \
607         mv ${@:.in=} $@
608
609 man/%.1: man/%.xml
610         $(XSLTPROC_PROCESS_MAN)
611
612 man/%.1.in: man/%.xml.in
613         $(XSLTPROC_PROCESS_MAN)
614
615 man/%.3: man/%.xml
616         $(XSLTPROC_PROCESS_MAN)
617
618 man/%.3.in: man/%.xml.in
619         $(XSLTPROC_PROCESS_MAN)
620
621 man/%.5: man/%.xml
622         $(XSLTPROC_PROCESS_MAN)
623
624 man/%.5.in: man/%.xml.in
625         $(XSLTPROC_PROCESS_MAN)
626
627 man/%.7: man/%.xml
628         $(XSLTPROC_PROCESS_MAN)
629
630 man/%.7.in: man/%.xml.in
631         $(XSLTPROC_PROCESS_MAN_IN)
632
633 man/%.8: man/%.xml
634         $(XSLTPROC_PROCESS_MAN)
635
636 man/%.8.in: man/%.xml.in
637         $(XSLTPROC_PROCESS_MAN_IN)
638
639 man/%.html: man/%.xml
640         $(XSLTPROC_PROCESS_HTML)
641
642 man/%.html.in: man/%.xml.in
643         $(XSLTPROC_PROCESS_HTML_IN)
644
645 CLEANFILES += \
646         $(dist_man_MANS) \
647         ${nodist_man_MANS:=.in} \
648         ${XML_FILES:.xml=.html} \
649         ${XML_IN_FILES:.xml.in=.html.in}
650 endif
651
652 org.freedesktop.systemd1.%.xml: systemd
653         $(AM_V_GEN)./systemd --introspect=${@:.xml=} > $@
654
655 CLEANFILES += \
656         $(dbusinterface_DATA)
657
658 install-data-hook:
659         $(MKDIR_P) -m 0755 \
660                 $(DESTDIR)$(systemunitdir) \
661                 $(DESTDIR)$(sessionunitdir) \
662                 $(DESTDIR)$(systemunitdir)/sockets.target.wants \
663                 $(DESTDIR)$(systemunitdir)/sysinit.target.wants \
664                 $(DESTDIR)$(pkgsysconfdir)/system \
665                 $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants \
666                 $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants \
667                 $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants \
668                 $(DESTDIR)$(pkgsysconfdir)/session \
669                 $(DESTDIR)$(sysconfdir)/xdg/systemd
670         $(MKDIR_P) -m 0755 $(DESTDIR)/cgroup || \
671                 echo "Don't forget to create /cgroup! Couldn't create it for you, continuing anyway."
672         ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
673                 rm -f session && \
674                 $(LN_S) $(pkgsysconfdir)/session session )
675         ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \
676                 rm -f systemd-initctl.socket systemd-logger.socket && \
677                 $(LN_S) ../systemd-logger.socket systemd-logger.socket && \
678                 $(LN_S) ../systemd-initctl.socket systemd-initctl.socket )
679         ( cd $(DESTDIR)$(sessionunitdir) && \
680                 rm -f shutdown.target sockets.target local-fs.target swap.target && \
681                 $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \
682                 $(LN_S) $(systemunitdir)/sockets.target sockets.target && \
683                 $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \
684                 $(LN_S) $(systemunitdir)/swap.target swap.target )
685         ( cd $(DESTDIR)$(systemunitdir) && \
686                 rm -f runlevel0.target runlevel1.target runlevel6.target && \
687                 $(LN_S) poweroff.target runlevel0.target && \
688                 $(LN_S) rescue.target runlevel1.target && \
689                 $(LN_S) reboot.target runlevel6.target )
690         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
691                 rm -f default.target ctrl-alt-del.target kbrequest.target && \
692                 $(LN_S) $(systemunitdir)/graphical.target default.target && \
693                 $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \
694                 $(LN_S) $(systemunitdir)/rescue.target kbrequest.target && \
695                 rm -f runlevel2.target runlevel3.target runlevel4.target runlevel5.target && \
696                 $(LN_S) $(systemunitdir)/multi-user.target runlevel2.target && \
697                 $(LN_S) $(systemunitdir)/multi-user.target runlevel3.target && \
698                 $(LN_S) $(systemunitdir)/multi-user.target runlevel4.target && \
699                 $(LN_S) $(systemunitdir)/graphical.target runlevel5.target )
700         ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \
701                 rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \
702                 $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \
703                 $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \
704                 $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \
705                 $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \
706                 $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \
707                 $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service )
708         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
709                 rm -f getty.target remote-fs.target && \
710                 $(LN_S) $(systemunitdir)/getty.target getty.target && \
711                 $(LN_S) $(systemunitdir)/remote-fs.target remote-fs.target )
712         ( cd $(DESTDIR)$(systemunitdir)/sysinit.target.wants && \
713                 rm -f dev-hugepages.automount \
714                         dev-mqueue.automount \
715                         proc-sys-fs-binfmt_misc.automount \
716                         sys-kernel-debug.automount \
717                         sys-kernel-security.automount && \
718                 $(LN_S) ../dev-hugepages.automount dev-hugepages.automount && \
719                 $(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
720                 $(LN_S) ../proc-sys-fs-binfmt_misc.automount proc-sys-fs-binfmt_misc.automount && \
721                 $(LN_S) ../sys-kernel-debug.automount sys-kernel-debug.automount && \
722                 $(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount )
723         ( cd $(DESTDIR)$(dbussessionservicedir) && \
724                 rm -f org.freedesktop.systemd1.service && \
725                 $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
726 if TARGET_FEDORA
727         $(MKDIR_P) -m 0755 \
728                 $(DESTDIR)$(SYSTEM_SYSVINIT_PATH)
729         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
730                 rm -f display-manager.service && \
731                 $(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
732         ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
733                 rm -f display-manager.service && \
734                 $(LN_S) ../display-manager.service display-manager.service )
735         ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
736                 rm -f rc-local.service && \
737                 $(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
738         ( cd $(DESTDIR)$(systemunitdir) && \
739                 rm -f local.service && \
740                 $(LN_S) rc-local.service local.service )
741         ( cd $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) && \
742                 $(LN_S) halt reboot > /dev/null 2>&1 || true )
743 endif
744 if TARGET_GENTOO
745         ( cd $(DESTDIR)$(pkgsysconfdir)/system && \
746                 rm -f display-manager.service && \
747                 $(LN_S) $(systemunitdir)/xdm.service display-manager.service )
748         ( cd $(DESTDIR)$(pkgsysconfdir)/system/graphical.target.wants && \
749                 rm -f display-manager.service && \
750                 $(LN_S) ../display-manager.service display-manager.service )
751 endif
752
753 DISTCHECK_CONFIGURE_FLAGS = \
754         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
755         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
756         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
757         --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
758         --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \
759         --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
760         --with-rootdir=$$dc_install_base/$(rootdir)