- $(MKDIR_P) $(DESTDIR)$(pkgsysconfdir)/system $(DESTDIR)$(pkgsysconfdir)/session $(DESTDIR)$(sysconfdir)/xdg/systemd
- rm -f $(DESTDIR)$(sysconfdir)/xdg/systemd/session
- ln -sf $(DESTDIR)$(pkgsysconfdir)/session $(DESTDIR)$(sysconfdir)/xdg/systemd/session
+ $(MKDIR_P) -m 0755 \
+ $(DESTDIR)$(systemunitdir) \
+ $(DESTDIR)$(sessionunitdir) \
+ $(DESTDIR)$(pkgsysconfdir)/system \
+ $(DESTDIR)$(pkgsysconfdir)/system/sockets.target.wants \
+ $(DESTDIR)$(pkgsysconfdir)/session \
+ $(DESTDIR)$(sysconfdir)/xdg/systemd \
+ $(DESTDIR)/cgroup/debug
+ ( cd $(DESTDIR)$(sysconfdir)/xdg/systemd/ && \
+ rm -f session && \
+ $(LN_S) $(DESTDIR)$(pkgsysconfdir)/session session )
+ ( cd $(DESTDIR)$(pkgsysconfdir)/system/sockets.target.wants && \
+ rm -f systemd-initctl.socket systemd-logger.socket && \
+ $(LN_S) $(DESTDIR)$(systemunitdir)/systemd-logger.socket systemd-logger.socket && \
+ $(LN_S) $(DESTDIR)$(systemunitdir)/systemd-initctl.socket systemd-initctl.socket )
+ ( cd $(DESTDIR)$(sessionunitdir) && \
+ rm -f shutdown.target sockets.target && \
+ $(LN_S) ../system/shutdown.target shutdown.target && \
+ $(LN_S) ../system/sockets.target sockets.target )
+
+DISTCHECK_CONFIGURE_FLAGS = \
+ --with-udevrulesdir=$$dc_install_base/$(udevrulesdir)