Merge branch 'kd/installation-makefile-improvements'

Signed-off-by: Elijah Newren <newren@gmail.com>
pull/310/head
Elijah Newren 2 years ago
commit bfb86c1b17

@ -1,4 +1,5 @@
# A bunch of installation-related paths people can override on the command line
DESTDIR = /
prefix = $(HOME)
bindir = $(prefix)/libexec/git-core
localedir = $(prefix)/share/locale
@ -34,10 +35,11 @@ Documentation/html/git-filter-repo.html:
git show origin/docs:html/git-filter-repo.html >Documentation/html/git-filter-repo.html
install: snag_docs #fixup_locale
cp -a git-filter-repo "$(bindir)/"
ln -sf "$(bindir)/git-filter-repo" "$(pythondir)/git_filter_repo.py"
cp -a Documentation/man1/git-filter-repo.1 "$(mandir)/man1/git-filter-repo.1"
cp -a Documentation/html/git-filter-repo.html "$(htmldir)/git-filter-repo.html"
install -Dm0755 git-filter-repo "$(DESTDIR)/$(bindir)/git-filter-repo"
install -dm0755 "$(DESTDIR)/$(pythondir)"
ln -sf "$(bindir)/git-filter-repo" "$(DESTDIR)/$(pythondir)/git_filter_repo.py"
install -Dm0644 Documentation/man1/git-filter-repo.1 "$(DESTDIR)/$(mandir)/man1/git-filter-repo.1"
install -Dm0644 Documentation/html/git-filter-repo.html "$(DESTDIR)/$(htmldir)/git-filter-repo.html"
if which mandb > /dev/null; then mandb; fi

Loading…
Cancel
Save