From 2713ece13fb4a064c8fad4dabcdf23e28b308754 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 14 Dec 2009 05:25:21 +0000 Subject: [PATCH] don't need GENCMD anymore. --- share/mk/bsd.own.mk | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index b1fb0ad46352..27da8300a89c 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.613 2009/12/14 01:00:46 matt Exp $ +# $NetBSD: bsd.own.mk,v 1.614 2009/12/14 05:25:21 christos Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -993,28 +993,6 @@ MAKEDIRTARGET=\ }; \ _makedirtarget -# -# ${GENCMD} -# Extract only one output from generation command so that make rule is -# written straight and avoid race (duplicate generation). is usually ${.TARGET}; if you want foo.c from foo.y, yacc -# generates y.tab.c, so is y.tab.c. See bin/sh/Makefile -# for examples. -# -GENCMD=\ - @_gencmd() { \ - local _dst="$$1"; shift; local _src="$$1"; shift; local _gen="$$1"; shift; \ - local _tmp=$$( ${TOOL_MKTEMP} -d /tmp/_gencmd.XXXXXX ); \ - local _opwd=$$PWD; \ - local _exit; \ - cp $$_src $$_tmp; \ - { cd $$_tmp && eval "$$@"; _exit=$$?; cd $$_opwd; }; \ - [ $$_exit = 0 ] && cp $${_tmp}/$${_gen} $$_dst; \ - rm -fr $$_tmp; \ - return $$_exit; \ - }; \ - _gencmd "${.TARGET}" "${.ALLSRC}" - # # MAKEVERBOSE support. Levels are: # 0 Minimal output ("quiet")