Simplify setting default installation prefix
Just setting a default value for PREFIX should have the same result as an explicit check for an empty INSTALLROOT variable.
This commit is contained in:
parent
eb0ded8d55
commit
da95bca5c5
|
@ -3,10 +3,8 @@ PKG_CONFIG ?= pkg-config
|
|||
BINMODE ?= 755
|
||||
BINEXT ?=
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
INSTALLROOT ?= $(DESTDIR)$(PREFIX)
|
||||
ifeq ($(INSTALLROOT),)
|
||||
INSTALLROOT = /usr/local
|
||||
endif
|
||||
|
||||
SINSTALLDIR ?= $(INSTALLROOT)/bin
|
||||
INSTALLDIRMODE ?= 755
|
||||
|
|
|
@ -3,10 +3,8 @@ PKG_CONFIG ?= pkg-config
|
|||
BINMODE ?= 755
|
||||
BINEXT ?=
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
INSTALLROOT ?= $(DESTDIR)$(PREFIX)
|
||||
ifeq ($(INSTALLROOT),)
|
||||
INSTALLROOT = /usr/local
|
||||
endif
|
||||
|
||||
INSTALLDIR ?= $(INSTALLROOT)/bin
|
||||
INSTALLDIRMODE ?= 755
|
||||
|
|
Loading…
Reference in New Issue