aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-28 11:27:17 +0100
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-28 11:27:17 +0100
commitd57ff6456d2fbf1c644eb07ff0684646bea6808a (patch)
treeb72fef13463938220359c72d80c9492fb0f2c3b0
parenta3d61cf3dff74e286bb731ce6533c9992c49d4d9 (diff)
downloadlz4-d57ff6456d2fbf1c644eb07ff0684646bea6808a.tar.gz
changed default PREFIX and MANDIR
-rw-r--r--lib/Makefile7
-rw-r--r--programs/Makefile10
2 files changed, 6 insertions, 11 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 3e21c1ba..2d9c8f38 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -118,12 +118,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 07bec03d..060ce218 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -126,15 +126,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