From 6c100f2960c530fbf0366351baf6307ed63952d9 Mon Sep 17 00:00:00 2001 From: Paul Seyfert Date: Tue, 25 Dec 2018 13:01:27 +0100 Subject: [PATCH] create all needed directories at install this fixes #69 Thanks to de-vries from the archlinux user repository --- conf.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf.mk b/conf.mk index 9a629f9..b6ff612 100644 --- a/conf.mk +++ b/conf.mk @@ -23,7 +23,12 @@ conf/shellexrc: conf/shellexrc.in install-rc: conf/shellexrc echo "[INSTALL] $@" + $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)$(LIBDIR)/shellex $(INSTALL) -m 0644 conf/shellexrc $(DESTDIR)$(PREFIX)$(LIBDIR)/shellex/shellexrc + + # $DESTDIR/$SYSCONFDIR may not exist, but if it does, don't alter the permissions + # (this is not a shellex specific directory) + [ -d $(DESTDIR)$(SYSCONFDIR) ] || $(INSTALL) -d -m 0755 $(DESTDIR)$(SYSCONFDIR) [ -e $(DESTDIR)$(SYSCONFDIR)/shellexrc ] || ln -s $(PREFIX)$(LIBDIR)/shellex/shellexrc $(DESTDIR)$(SYSCONFDIR)/shellexrc clean-shellexrc: