From: Przemyslaw Skibinski Date: Wed, 28 Dec 2016 11:32:41 +0000 (+0100) Subject: changed default PREFIX and MANDIR X-Git-Tag: v1.1.3^2~31^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F503%2Fhead;p=thirdparty%2Fzstd.git changed default PREFIX and MANDIR --- diff --git a/lib/Makefile b/lib/Makefile index cd87e7756..efd3b87fe 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -98,12 +98,7 @@ else INSTALL ?= install endif -ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly SunOS)) -PREFIX ?= /usr -else -PREFIX ?= /usr/local -endif - +PREFIX ?= /usr/local DESTDIR ?= LIBDIR ?= $(PREFIX)/lib INCLUDEDIR ?= $(PREFIX)/include diff --git a/programs/Makefile b/programs/Makefile index 8ec9fc698..15ae01096 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -156,15 +156,15 @@ else INSTALL ?= install endif -ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly SunOS)) -PREFIX ?= /usr -else PREFIX ?= /usr/local -endif - DESTDIR ?= BINDIR ?= $(PREFIX)/bin + +ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly SunOS)) +MANDIR ?= $(PREFIX)/man/man1 +else MANDIR ?= $(PREFIX)/share/man/man1 +endif INSTALL_PROGRAM ?= $(INSTALL) -m 755 INSTALL_SCRIPT ?= $(INSTALL) -m 755