Add support for DESTDIR to "make install"
per the Debian New Maintainers' Guide: http://www.debian.org/doc/manuals/maint-guide/modify.en.html#id459110
This commit is contained in:
parent
f6c7cfdc3e
commit
c9d53ca8ba
1 changed files with 6 additions and 0 deletions
|
@ -493,6 +493,12 @@ ifneq ($(findstring clean,$(MAKECMDGOALS)),)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring install,$(MAKECMDGOALS)),)
|
ifneq ($(findstring install,$(MAKECMDGOALS)),)
|
||||||
|
ifdef DESTDIR
|
||||||
|
CFG_INFO := $(info cfg: setting CFG_PREFIX via DESTDIR, $(DESTDIR))
|
||||||
|
CFG_PREFIX:=$(DESTDIR)
|
||||||
|
export CFG_PREFIX
|
||||||
|
endif
|
||||||
|
|
||||||
CFG_INFO := $(info cfg: including install rules)
|
CFG_INFO := $(info cfg: including install rules)
|
||||||
include $(CFG_SRC_DIR)/mk/install.mk
|
include $(CFG_SRC_DIR)/mk/install.mk
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue