diff options
author | jlam <jlam> | 2005-04-28 17:40:52 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-04-28 17:40:52 +0000 |
commit | 5872715955c16e50540f41931e6291035c6ffd04 (patch) | |
tree | 678a8b592f4218aa54078379f8ce07fa341fcfba /mk | |
parent | 15aafd2c1612a862cc07d676b2b13f9038f3dcf5 (diff) | |
download | pkgsrc-5872715955c16e50540f41931e6291035c6ffd04.tar.gz |
Only set the "TOOL" variable if one has been associated with the tool.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/tools/replace.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index b7512aed82d..bd09da2f435 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.52 2005/04/28 17:35:48 jlam Exp $ +# $NetBSD: replace.mk,v 1.53 2005/04/28 17:40:52 jlam Exp $ # # This Makefile fragment handles "replacements" of system-supplied # tools with pkgsrc versions. The replacements are placed under @@ -1000,7 +1000,9 @@ TOOLS_REAL_CMD.${_t_}?= \ ${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//} TOOLS_ARGS.${_t_}?= \ ${TOOLS_PLATFORM.${_t_}:C/^/_asdf_/1:N_asdf_*} +. if defined(_TOOLS_VARNAME.${_t_}) ${_TOOLS_VARNAME.${_t_}}= ${TOOLS_PLATFORM.${_t_}} +. endif . if !empty(TOOLS_ARGS.${_t_}) TOOLS_WRAP+= ${_t_} . else |