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:
Kevin Cantu 2012-01-20 04:17:32 -08:00
parent f6c7cfdc3e
commit c9d53ca8ba

View file

@ -493,6 +493,12 @@ ifneq ($(findstring clean,$(MAKECMDGOALS)),)
endif
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)
include $(CFG_SRC_DIR)/mk/install.mk
endif