summaryrefslogtreecommitdiffstats
path: root/programs/Makefile
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-12-23 09:05:41 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-12-23 09:05:41 (GMT)
commitb22e2bed5e44f2cdacb11cf01d4a15a00bcb76ca (patch)
treee8940c67cc0990d5c443eb7f683cf259fa98ba3d /programs/Makefile
parentea51ad0ceefd0a47df706a9301a8baf9b2629cc0 (diff)
downloadlz4-b22e2bed5e44f2cdacb11cf01d4a15a00bcb76ca.zip
lz4-b22e2bed5e44f2cdacb11cf01d4a15a00bcb76ca.tar.gz
lz4-b22e2bed5e44f2cdacb11cf01d4a15a00bcb76ca.tar.bz2
BSD: improved "make install"
Diffstat (limited to 'programs/Makefile')
-rw-r--r--programs/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/programs/Makefile b/programs/Makefile
index f91a326..14b042a 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -116,19 +116,24 @@ lz4cat: lz4
ifneq (,$(filter $(shell uname),SunOS))
-PREFIX ?= /usr
INSTALL ?= ginstall
else
-PREFIX ?= /usr/local
INSTALL ?= install
endif
+
+ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly SunOS))
+PREFIX ?= /usr
+else
+PREFIX ?= /usr/local
+endif
+
DESTDIR ?=
-BINDIR = $(PREFIX)/bin
-MANDIR = $(PREFIX)/share/man/man1
+BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/share/man/man1
INSTALL_PROGRAM ?= $(INSTALL) -m 755
-INSTALL_SCRIPT ?= $(INSTALL) -m 755
-INSTALL_MAN ?= $(INSTALL) -m 644
+INSTALL_SCRIPT ?= $(INSTALL) -m 755
+INSTALL_MAN ?= $(INSTALL) -m 644
install: lz4$(EXT) lz4c$(EXT)