Don't use beforedepend to break things. The usual fix of putting
generated sources in SRCS breaks because compile_et uses an evil include of one .c file in another. Use a worse fix. Perhaps DPSRCS is useful after all. Don't put *.y in SRCS. Put the generated file in SRCS instead. This fixes incomplete dependencies (mkdep can't work on *.y). Don't override the default .l.c rule. Just use LFLAGS. Fixed some style bugs.
This commit is contained in:
parent
1bcade7428
commit
e1d3476a8e
@ -1,17 +1,15 @@
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.7 1997/02/22 19:54:44 peter Exp $
|
||||
|
||||
PROG= compile_et
|
||||
SRCS= compile_et.c error_table.y
|
||||
CFLAGS+= -I. -I${.CURDIR}/../../lib/libcom_err
|
||||
CLEANFILES+= et_lex.lex.c y.tab.h
|
||||
DPADD+= ${LIBL}
|
||||
LDADD+= -ll
|
||||
SRCS= compile_et.c error_table.c
|
||||
CFLAGS+=-I. -I${.CURDIR}/../../lib/libcom_err
|
||||
LFLAGS+=-l
|
||||
DPADD= ${LIBL}
|
||||
LDADD= -ll
|
||||
CLEANFILES= error_table.c et_lex.lex.c y.tab.h
|
||||
|
||||
beforedepend: et_lex.lex.c
|
||||
error_table.o: et_lex.lex.c
|
||||
|
||||
.l.c:
|
||||
${LEX} -l -t ${.IMPSRC} > ${.TARGET}
|
||||
error_table.o: et_lex.lex.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
${DEPENDFILE}: et_lex.lex.c
|
||||
|
Loading…
Reference in New Issue
Block a user