diff options
author | jlam <jlam> | 2005-04-22 02:29:28 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-04-22 02:29:28 +0000 |
commit | 249081e5329e25318f2defde20fcd556de1b8ace (patch) | |
tree | 0d075cd0929bd0f6eb43b33fb697bdf69a5b0159 /mk | |
parent | ea860b1e85efbaa69030fb6e437092c890c83a21 (diff) | |
download | pkgsrc-249081e5329e25318f2defde20fcd556de1b8ace.tar.gz |
Avoid using a for loop (optimization) which also broke when using the
bootstrap bmake.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/tools/replace.mk | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index 432906b6ec3..8b99f544686 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.5 2005/04/16 05:16:29 jlam Exp $ +# $NetBSD: replace.mk,v 1.6 2005/04/22 02:29:28 jlam Exp $ # # This Makefile fragment handles "replacements" of system-supplied tools # with pkgsrc versions. The replacements are placed under ${TOOLS_DIR} @@ -30,13 +30,9 @@ # Continue to allow USE_GNU_TOOLS and USE_TBL until packages have been # taught to use the new syntax. # -.for _t_ in ${USE_GNU_TOOLS} -. if "${_t_}" == "make" -USE_TOOLS+= gmake -. else -USE_TOOLS+= ${_t_} -. endif -.endfor +.if defined(USE_GNU_TOOLS) && !empty(USE_GNU_TOOLS) +USE_TOOLS+= ${USE_GNU_TOOLS:S/make/gmake/} +.endif .if defined(USE_TBL) && !empty(USE_TBL:M[yY][eE][sS]) USE_TOOLS+= tbl .endif |