BSD: improved "make install"
This commit is contained in:
parent
b999170311
commit
63b0014b96
17
lib/Makefile
17
lib/Makefile
@ -87,20 +87,26 @@ clean:
|
|||||||
@$(RM) decompress/*.o
|
@$(RM) decompress/*.o
|
||||||
@echo Cleaning library completed
|
@echo Cleaning library completed
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
|
# make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
|
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
|
||||||
|
|
||||||
ifneq (,$(filter $(shell uname),SunOS))
|
ifneq (,$(filter $(shell uname),SunOS))
|
||||||
PREFIX ?= /usr
|
|
||||||
INSTALL ?= ginstall
|
INSTALL ?= ginstall
|
||||||
else
|
else
|
||||||
PREFIX ?= /usr/local
|
|
||||||
INSTALL ?= install
|
INSTALL ?= install
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly SunOS))
|
||||||
|
PREFIX ?= /usr
|
||||||
|
else
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
endif
|
||||||
|
|
||||||
DESTDIR ?=
|
DESTDIR ?=
|
||||||
LIBDIR ?= $(PREFIX)/lib
|
LIBDIR ?= $(PREFIX)/lib
|
||||||
INCLUDEDIR=$(PREFIX)/include
|
INCLUDEDIR ?= $(PREFIX)/include
|
||||||
|
|
||||||
ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly))
|
ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly))
|
||||||
PKGCONFIGDIR ?= $(PREFIX)/libdata/pkgconfig
|
PKGCONFIGDIR ?= $(PREFIX)/libdata/pkgconfig
|
||||||
@ -111,6 +117,7 @@ endif
|
|||||||
INSTALL_LIB ?= $(INSTALL) -m 755
|
INSTALL_LIB ?= $(INSTALL) -m 755
|
||||||
INSTALL_DATA ?= $(INSTALL) -m 644
|
INSTALL_DATA ?= $(INSTALL) -m 644
|
||||||
|
|
||||||
|
|
||||||
libzstd.pc:
|
libzstd.pc:
|
||||||
libzstd.pc: libzstd.pc.in
|
libzstd.pc: libzstd.pc.in
|
||||||
@echo creating pkgconfig
|
@echo creating pkgconfig
|
||||||
|
@ -145,21 +145,26 @@ clean_decomp_o:
|
|||||||
@$(RM) $(ZSTDDECOMP_O)
|
@$(RM) $(ZSTDDECOMP_O)
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
|
# make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets
|
||||||
#----------------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
|
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
|
||||||
|
|
||||||
ifneq (,$(filter $(shell uname),SunOS))
|
ifneq (,$(filter $(shell uname),SunOS))
|
||||||
PREFIX ?= /usr
|
|
||||||
INSTALL ?= ginstall
|
INSTALL ?= ginstall
|
||||||
else
|
else
|
||||||
PREFIX ?= /usr/local
|
|
||||||
INSTALL ?= install
|
INSTALL ?= install
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly SunOS))
|
||||||
|
PREFIX ?= /usr
|
||||||
|
else
|
||||||
|
PREFIX ?= /usr/local
|
||||||
|
endif
|
||||||
|
|
||||||
DESTDIR ?=
|
DESTDIR ?=
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR ?= $(PREFIX)/bin
|
||||||
MANDIR = $(PREFIX)/share/man/man1
|
MANDIR ?= $(PREFIX)/share/man/man1
|
||||||
|
|
||||||
INSTALL_PROGRAM ?= $(INSTALL) -m 755
|
INSTALL_PROGRAM ?= $(INSTALL) -m 755
|
||||||
INSTALL_SCRIPT ?= $(INSTALL) -m 755
|
INSTALL_SCRIPT ?= $(INSTALL) -m 755
|
||||||
|
Loading…
Reference in New Issue
Block a user