diff options
| author | uebayasi <uebayasi@NetBSD.org> | 2009-12-11 08:39:42 +0000 |
|---|---|---|
| committer | uebayasi <uebayasi@NetBSD.org> | 2009-12-11 08:39:42 +0000 |
| commit | b79e178285962268d44bbef35e5e34f028c4b28a (patch) | |
| tree | 39b4d3487e549997eb59a29ee362ee98561ef2fa /bin | |
| parent | bf4c37b84ccaeb3d356d9c402aaba542739bf9db (diff) | |
Rewrite file generation rules using ${GENCMD}. No functional changes intended.
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/sh/Makefile | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile index 7ea194aa54d..5b6a3c9b485 100644 --- a/bin/sh/Makefile +++ b/bin/sh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.87 2009/12/07 16:22:41 uebayasi Exp $ +# $NetBSD: Makefile,v 1.88 2009/12/11 08:39:42 uebayasi Exp $ # @(#)Makefile 8.4 (Berkeley) 5/5/95 .include <bsd.own.mk> @@ -55,29 +55,28 @@ CLEANFILES+= trace token.h: mktokens ${_MKTARGET_CREATE} + ${GENCMD} ${.TARGET} \ ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} -builtins.h: builtins.c +builtins.c builtins.h: mkbuiltins shell.h builtins.def ${_MKTARGET_CREATE} - -builtins.c: mkbuiltins shell.h builtins.def - ${_MKTARGET_CREATE} - ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} ${.OBJDIR} - [ -f builtins.h ] + ${GENCMD} ${.TARGET} \ + ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} . init.c: mkinit.sh ${SHSRCS} ${_MKTARGET_CREATE} + ${GENCMD} ${.TARGET} \ ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} -nodes.h: nodes.c - -nodes.c: mknodes.sh nodetypes nodes.c.pat +nodes.c nodes.h: mknodes.sh nodetypes nodes.c.pat ${_MKTARGET_CREATE} - ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} ${.OBJDIR} - [ -f nodes.h ] + ${GENCMD} ${.TARGET} \ + ${SCRIPT_ENV} ${HOST_SH} ${.ALLSRC} . -arith.h: arith.c -arith.c: arith.y +arith.c arith.h: arith.y + ${_MKTARGET_CREATE} + ${GENCMD} y.tab.${.TARGET:T:E} \ + ${YACC.y} ${.ALLSRC} .if ${USETOOLS} == "yes" COMPATOBJDIR!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR} @@ -85,3 +84,7 @@ NBCOMPATLIB= -L${COMPATOBJDIR} -lnbcompat .endif .include <bsd.prog.mk> + +# override +.y.c: +.y.h: |
