1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

speedo: Add INSTALL_PREFIX feature.

--

With this it is now possible build and install gnupg 2.1 properly
below /usr/local:

  make -f TOPSRC/build-aux/speed.ml native INSTALL_PREFIX=/usr/local

Of course you need installation priviliges for the /usr/local tree.
This commit is contained in:
Werner Koch 2014-10-03 15:30:38 +02:00
parent bc8583f247
commit 841a797f6d

View File

@ -58,8 +58,10 @@ help:
@echo ' w32-installer Build a Windows installer' @echo ' w32-installer Build a Windows installer'
@echo ' w32-source Pack a source archive' @echo ' w32-source Pack a source archive'
@echo @echo
@echo 'Prepend TARGET with "git-" to build from GIT repos' @echo 'You may append INSTALL_REFIX=<dir> for native builds.'
@echo 'Prepend TARGET with "this-" to build from the source tarball' @echo 'Prepend TARGET with "git-" to build from GIT repos.'
@echo 'Prepend TARGET with "this-" to build from the source tarball.'
SPEEDOMAKE := $(MAKE) -f $(SPEEDO_MK) UPD_SWDB=1 SPEEDOMAKE := $(MAKE) -f $(SPEEDO_MK) UPD_SWDB=1
@ -124,6 +126,9 @@ MAKE_J=3
# Name to use for the w32 installer and sources # Name to use for the w32 installer and sources
INST_NAME=gnupg-w32 INST_NAME=gnupg-w32
# Use this to override the installaion directory for native builds.
INSTALL_PREFIX=none
# Directory names. # Directory names.
# They must be absolute, as we switch directories pretty often. # They must be absolute, as we switch directories pretty often.
@ -131,7 +136,11 @@ root := $(shell pwd)/PLAY
sdir := $(root)/src sdir := $(root)/src
bdir := $(root)/build bdir := $(root)/build
bdir6:= $(root)/build-w64 bdir6:= $(root)/build-w64
ifeq ($(INSTALL_PREFIX),none)
idir := $(root)/inst idir := $(root)/inst
else
idir := $(abspath $(INSTALL_PREFIX))
endif
idir6:= $(root)/inst-w64 idir6:= $(root)/inst-w64
stampdir := $(root)/stamps stampdir := $(root)/stamps
topsrc := $(shell cd $(dir $(SPEEDO_MK)).. && pwd) topsrc := $(shell cd $(dir $(SPEEDO_MK)).. && pwd)