| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: create.mk,v 1.4 2009/03/17 22:13:36 rillig Exp $ | | 1 | # $NetBSD: create.mk,v 1.5 2013/02/27 12:09:39 obache Exp $ |
2 | # | | 2 | # |
3 | # Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. | | 3 | # Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. |
4 | # All rights reserved. | | 4 | # All rights reserved. |
5 | # | | 5 | # |
6 | # This code is derived from software contributed to The NetBSD Foundation | | 6 | # This code is derived from software contributed to The NetBSD Foundation |
7 | # by Johnny C. Lam. | | 7 | # by Johnny C. Lam. |
8 | # | | 8 | # |
9 | # Redistribution and use in source and binary forms, with or without | | 9 | # Redistribution and use in source and binary forms, with or without |
10 | # modification, are permitted provided that the following conditions | | 10 | # modification, are permitted provided that the following conditions |
11 | # are met: | | 11 | # are met: |
12 | # 1. Redistributions of source code must retain the above copyright | | 12 | # 1. Redistributions of source code must retain the above copyright |
13 | # notice, this list of conditions and the following disclaimer. | | 13 | # notice, this list of conditions and the following disclaimer. |
14 | # 2. Redistributions in binary form must reproduce the above copyright | | 14 | # 2. Redistributions in binary form must reproduce the above copyright |
| @@ -176,14 +176,19 @@ ${TOOLS_CMD.${_t_}}: | | | @@ -176,14 +176,19 @@ ${TOOLS_CMD.${_t_}}: |
176 | ${ECHO} "$$script"; \ | | 176 | ${ECHO} "$$script"; \ |
177 | } > ${.TARGET:Q}; \ | | 177 | } > ${.TARGET:Q}; \ |
178 | ${CHMOD} +x ${.TARGET:Q}; \ | | 178 | ${CHMOD} +x ${.TARGET:Q}; \ |
179 | ;; \ | | 179 | ;; \ |
180 | *) \ | | 180 | *) \ |
181 | ${LN} -fs ${TOOLS_PATH.${_t_}:Q} ${.TARGET:Q}; \ | | 181 | ${LN} -fs ${TOOLS_PATH.${_t_}:Q} ${.TARGET:Q}; \ |
182 | ;; \ | | 182 | ;; \ |
183 | esac | | 183 | esac |
184 | . for _a_ in ${TOOLS_ALIASES.${_t_}} | | 184 | . for _a_ in ${TOOLS_ALIASES.${_t_}} |
185 | ${RUN} \ | | 185 | ${RUN} \ |
186 | ${TEST} ${.TARGET:Q} = ${.TARGET:H:Q}/${_a_} || \ | | 186 | ${TEST} ${.TARGET:Q} = ${.TARGET:H:Q}/${_a_} || \ |
187 | ${LN} -fs ${.TARGET:T:Q} ${.TARGET:H:Q}/${_a_} | | 187 | ${LN} -fs ${.TARGET:T:Q} ${.TARGET:H:Q}/${_a_} |
188 | . endfor | | 188 | . endfor |
| | | 189 | . if defined(_OPSYS_EXE_SUFFIX) && !empty(_OPSYS_EXE_SUFFIX) |
| | | 190 | ${RUN} \ |
| | | 191 | ${TEST} ${.TARGET:E:Q} = ${_OPSYS_EXE_SUFFIX:E:Q} || \ |
| | | 192 | ${LN} -fs ${.TARGET:T:Q} ${.TARGET:Q}${_OPSYS_EXE_SUFFIX} |
| | | 193 | . endif |
189 | .endfor | | 194 | .endfor |