Skip to content

Commit

Permalink
Merge pull request #489 from apjanke/customize-etcdir
Browse files Browse the repository at this point in the history
Makefile: allow customizing of SYSCONFDIR (/etc) location.
  • Loading branch information
qw3rtman committed Dec 27, 2015
2 parents 4c06b7f + 4354cca commit d46c515
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PREFIX ?= /usr/local
BINPREFIX ?= "$(PREFIX)/bin"
MANPREFIX ?= "$(PREFIX)/share/man/man1"
SYSCONFDIR ?= /etc
BINS = $(wildcard bin/git-*)
MANS = $(wildcard man/git-*.md)
MAN_HTML = $(MANS:.md=.html)
Expand Down Expand Up @@ -47,8 +48,8 @@ install:
cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX); \
echo "cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX)"; \
fi
@mkdir -p $(DESTDIR)/etc/bash_completion.d
cp -f etc/bash_completion.sh $(DESTDIR)/etc/bash_completion.d/git-extras
@mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
cp -f etc/bash_completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/git-extras

man/%.html: man/%.md
ronn \
Expand All @@ -72,7 +73,7 @@ uninstall:
echo "... uninstalling $(DESTDIR)$(MANPREFIX)/$(notdir $(MAN))"; \
rm -f $(DESTDIR)$(MANPREFIX)/$(notdir $(MAN)); \
)
rm -f $(DESTDIR)/etc/bash_completion.d/git-extras
rm -f $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/git-extras

clean: docclean

Expand Down

0 comments on commit d46c515

Please sign in to comment.