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
|
BINMODE ?= 755
|
||||||
BINEXT ?=
|
BINEXT ?=
|
||||||
|
|
||||||
|
PREFIX ?= /usr/local
|
||||||
INSTALLROOT ?= $(DESTDIR)$(PREFIX)
|
INSTALLROOT ?= $(DESTDIR)$(PREFIX)
|
||||||
ifeq ($(INSTALLROOT),)
|
|
||||||
INSTALLROOT = /usr/local
|
|
||||||
endif
|
|
||||||
|
|
||||||
SINSTALLDIR ?= $(INSTALLROOT)/bin
|
SINSTALLDIR ?= $(INSTALLROOT)/bin
|
||||||
INSTALLDIRMODE ?= 755
|
INSTALLDIRMODE ?= 755
|
||||||
|
|
|
@ -3,10 +3,8 @@ PKG_CONFIG ?= pkg-config
|
||||||
BINMODE ?= 755
|
BINMODE ?= 755
|
||||||
BINEXT ?=
|
BINEXT ?=
|
||||||
|
|
||||||
|
PREFIX ?= /usr/local
|
||||||
INSTALLROOT ?= $(DESTDIR)$(PREFIX)
|
INSTALLROOT ?= $(DESTDIR)$(PREFIX)
|
||||||
ifeq ($(INSTALLROOT),)
|
|
||||||
INSTALLROOT = /usr/local
|
|
||||||
endif
|
|
||||||
|
|
||||||
INSTALLDIR ?= $(INSTALLROOT)/bin
|
INSTALLDIR ?= $(INSTALLROOT)/bin
|
||||||
INSTALLDIRMODE ?= 755
|
INSTALLDIRMODE ?= 755
|
||||||
|
|
Loading…
Reference in New Issue