Skip to content

Commit

Permalink
create all needed directories at install
Browse files Browse the repository at this point in the history
this fixes #69
  • Loading branch information
pseyfert committed Dec 25, 2018
1 parent cb89e84 commit 99247ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 99247ff

Please sign in to comment.