Explicitly add dependencies for foo.cpp from foo.y.

Ensures that foo.d is correctly built from foo.cpp and not foo.y->foo.c.
This commit is contained in:
lukem 2003-08-01 10:36:42 +00:00
parent d4773575b3
commit d913007a1a
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2003/07/01 12:38:09 mrg Exp $
# $NetBSD: Makefile,v 1.6 2003/08/01 10:36:42 lukem Exp $
# $FreeBSD: src/gnu/usr.bin/groff/src/preproc/eqn/Makefile,v 1.4 2003/05/01 13:22:19 ru Exp $
@ -17,6 +17,7 @@ MAN= eqn.1 neqn.1
YFLAGS= -d
CLEANFILES= eqn.cpp eqn_tab.h ${SCRIPTS} ${MAN} y.tab.c y.tab.h
eqn.cpp: eqn.y
eqn_tab.h: eqn.cpp
lex.cpp: eqn_tab.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2003/07/01 12:38:10 mrg Exp $
# $NetBSD: Makefile,v 1.7 2003/08/01 10:36:43 lukem Exp $
# $FreeBSD: src/gnu/usr.bin/groff/src/preproc/pic/Makefile,v 1.4 2003/05/01 13:22:20 ru Exp $
@ -14,6 +14,7 @@ LDADD+= ${LIBGROFF} -lm
YFLAGS= -d
CLEANFILES= ${MAN} pic.cpp pic_tab.h y.tab.c y.tab.h
pic.cpp: pic.y
pic_tab.h: pic.cpp
lex.cpp: pic_tab.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2003/07/01 08:20:37 mrg Exp $
# $NetBSD: Makefile,v 1.7 2003/08/01 10:36:43 lukem Exp $
# $FreeBSD: src/gnu/usr.bin/groff/src/preproc/refer/Makefile,v 1.4 2003/05/01 13:22:20 ru Exp $
@ -13,4 +13,6 @@ LDADD+= ${LIBBIB} ${LIBGROFF} -lm
YFLAGS= -d
CLEANFILES= label.cpp label_tab.h ${MAN} y.tab.c y.tab.h
label.cpp: label.y
.include <bsd.prog.mk>