diff options
author | rillig <rillig> | 2006-10-26 20:05:03 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-10-26 20:05:03 +0000 |
commit | 0347633cb24cddb2f9952bd395953612f2da9f7e (patch) | |
tree | ec2bf88e429b3ac582fc9d7e12ce72db11989745 /mk/install | |
parent | 3564b783359feb4dfd909d2c3f4585118dd4430f (diff) | |
download | pkgsrc-0347633cb24cddb2f9952bd395953612f2da9f7e.tar.gz |
Change INSTALL_MAKE_FLAGS to be _appended_ to MAKE_FLAGS when running
"make install". That way, packages don't have to say:
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} foo=bar,
instead it suffices to say
INSTALL_MAKE_FLAGS+= foo=bar,
which is also more appropriate since multiple files (Makefile,
Makefile.common, options.mk, *.mk) don't need to care about whether
INSTALL_MAKE_FLAGS already includes MAKE_FLAGS or not.
Note: It is no longer possible to override MAKE_FLAGS completely. But
except for some exotic platforms, the default value is empty anyway.
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/install.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/install/install.mk b/mk/install/install.mk index 8fdd976df0e..1bfb9635bbd 100644 --- a/mk/install/install.mk +++ b/mk/install/install.mk @@ -1,4 +1,4 @@ -# $NetBSD: install.mk,v 1.23 2006/10/13 06:32:15 rillig Exp $ +# $NetBSD: install.mk,v 1.24 2006/10/26 20:05:03 rillig Exp $ ###################################################################### ### install (PUBLIC) @@ -274,7 +274,7 @@ install-makedirs: .PHONY: pre-install do-install post-install INSTALL_DIRS?= ${BUILD_DIRS} -INSTALL_MAKE_FLAGS?= ${MAKE_FLAGS} +INSTALL_MAKE_FLAGS?= # none INSTALL_TARGET?= install ${USE_IMAKE:D${NO_INSTALL_MANPAGES:D:Uinstall.man}} .if ${_USE_DESTDIR} != "no" INSTALL_ENV+= DESTDIR=${DESTDIR:Q} @@ -287,7 +287,7 @@ do-install: ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \ cd ${WRKSRC} && cd ${_dir_} && \ ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \ - ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} \ + ${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_MAKE_FLAGS} \ -f ${MAKE_FILE} ${INSTALL_TARGET} . endfor .endif |