summaryrefslogtreecommitdiffstats
path: root/usr.bin/compile_et
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-03-20 16:21:39 +0000
committerbde <bde@FreeBSD.org>1998-03-20 16:21:39 +0000
commite0eeac5f43e36aeff5c3f847f5c901b68a7ca6d9 (patch)
treeb45deec18c90fee85f22bef30ed0ff003cba4e9b /usr.bin/compile_et
parentfc45e7673903c7e9c784d5b4a51426b4e45b82b6 (diff)
downloadFreeBSD-src-e0eeac5f43e36aeff5c3f847f5c901b68a7ca6d9.zip
FreeBSD-src-e0eeac5f43e36aeff5c3f847f5c901b68a7ca6d9.tar.gz
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.
Diffstat (limited to 'usr.bin/compile_et')
-rw-r--r--usr.bin/compile_et/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/usr.bin/compile_et/Makefile b/usr.bin/compile_et/Makefile
index f75572a..3421045 100644
--- a/usr.bin/compile_et/Makefile
+++ b/usr.bin/compile_et/Makefile
@@ -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
OpenPOWER on IntegriCloud