diff options
author | jlam <jlam@pkgsrc.org> | 2005-04-28 17:40:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-04-28 17:40:52 +0000 |
commit | c76976cd010c6aa3bdf432382240175748a96933 (patch) | |
tree | 678a8b592f4218aa54078379f8ce07fa341fcfba /mk | |
parent | b69b10dd11f443c809f35344fac7892a3dc78c74 (diff) | |
download | pkgsrc-c76976cd010c6aa3bdf432382240175748a96933.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 |