Add explicit y.tab.h rule so that 'make depend clean all' does

not fail with an "don't know how to make y.tab.h" error.
This commit is contained in:
Steve Price 1997-05-19 00:29:29 +00:00
parent e7a0b0244d
commit b7059dd6df

View File

@ -1,5 +1,5 @@
# @(#)Makefile 8.4 (Berkeley) 5/5/95
# $Id: Makefile,v 1.18 1997/04/28 03:03:23 steve Exp $
# $Id: Makefile,v 1.19 1997/05/19 00:16:27 steve Exp $
PROG= sh
SHSRCS= alias.c cd.c echo.c error.c eval.c exec.c expand.c \
@ -24,7 +24,7 @@ CLEANFILES+= builtins.h mkinit mkinit.o mknodes mknodes.o \
nodes.h syntax.h token.h y.tab.h
CLEANFILES+= ${GENSRCS}
beforedepend: builtins.h nodes.h syntax.h token.h
beforedepend: builtins.h nodes.h syntax.h token.h y.tab.h
builtins.c builtins.h: mkbuiltins builtins.def
cd ${.CURDIR}; sh mkbuiltins ${.OBJDIR}
@ -42,6 +42,8 @@ syntax.c syntax.h: mksyntax
token.h: mktokens
sh ${.CURDIR}/mktokens
y.tab.h: arith.c
# Rules for object files that rely on generated headers.
cd.o: nodes.h
eval.o: builtins.h nodes.h syntax.h