Prefix binary path correctly on MacOS

This commit is contained in:
Stanko K.R
2019-05-04 22:47:01 +02:00
parent c991d44878
commit 2b2f17f310
2 changed files with 14 additions and 3 deletions

View File

@ -1,6 +1,11 @@
.POSIX:
PREFIX = /usr
OS = $(shell uname -s)
ifeq ($(OS), Darwin)
PREFIX = /usr/local
else
PREFIX = /usr
endif
MANPREFIX = $(PREFIX)/share/man
install: