Skip to content

Commit c9d53ca

Browse files
committed
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
1 parent f6c7cfd commit c9d53ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,12 @@ ifneq ($(findstring clean,$(MAKECMDGOALS)),)
493493
endif
494494

495495
ifneq ($(findstring install,$(MAKECMDGOALS)),)
496+
ifdef DESTDIR
497+
CFG_INFO := $(info cfg: setting CFG_PREFIX via DESTDIR, $(DESTDIR))
498+
CFG_PREFIX:=$(DESTDIR)
499+
export CFG_PREFIX
500+
endif
501+
496502
CFG_INFO := $(info cfg: including install rules)
497503
include $(CFG_SRC_DIR)/mk/install.mk
498504
endif

0 commit comments

Comments
 (0)