Skip to content

Commit

Permalink
Use both DESTDIR and prefix
Browse files Browse the repository at this point in the history
The DESTDIR variable is not intended as a prefix substitute, but
as an additonal staging pre-path. Concatenate the two when available.

Signed-off-by: Luca Bruno <lucab@debian.org>
  • Loading branch information
lucab committed Oct 1, 2012
1 parent 2f95f7d commit 27a984e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.in
Expand Up @@ -537,8 +537,8 @@ endif

ifneq ($(findstring install,$(MAKECMDGOALS)),)
ifdef DESTDIR
CFG_INFO := $(info cfg: setting CFG_PREFIX via DESTDIR, $(DESTDIR))
CFG_PREFIX:=$(DESTDIR)
CFG_INFO := $(info cfg: setting CFG_PREFIX via DESTDIR, $(DESTDIR)/$(CFG_PREFIX))
CFG_PREFIX:=$(DESTDIR)/$(CFG_PREFIX)
export CFG_PREFIX
endif

Expand Down

0 comments on commit 27a984e

Please sign in to comment.