Makefile: change the installed manpage destination in FreeBSD (#725)

This commit is contained in:
罗泽轩 2018-08-09 10:06:18 +08:00 committed by GitHub
parent e4aaf9f697
commit 1cb4979ed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,13 @@
PREFIX ?= /usr/local
BINPREFIX ?= "$(PREFIX)/bin"
MANPREFIX ?= "$(PREFIX)/share/man/man1"
OS = $(shell uname)
ifeq ($(OS), FreeBSD)
MANPREFIX ?= "$(PREFIX)/man/man1"
else
MANPREFIX ?= "$(PREFIX)/share/man/man1"
endif
SYSCONFDIR ?= $(PREFIX)/etc
BINS = $(wildcard bin/git-*)
MANS = $(wildcard man/git-*.md)