summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 87c686b931..26a2c95850 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -250,3 +250,8 @@ CLEANFILES = \
systemadm.c \
systemd-initctl.service \
systemd-logger.service
+
+install-data-hook:
+ $(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