diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1996-09-19 05:21:07 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1996-09-19 05:21:07 +0000 |
| commit | 25c04ed29497376f5285006c16983f1b7f246017 (patch) | |
| tree | 398c4e35f0d128b9eb2298ea0cf1b99a0bc81b40 /usr.bin | |
| parent | 184d3c70b7de5fc22f6d108f5bfe92f7d307c661 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/lex/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/lex/Makefile b/usr.bin/lex/Makefile index 009010e83938c..302eeafe49cc4 100644 --- a/usr.bin/lex/Makefile +++ b/usr.bin/lex/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.5 1996/06/19 20:46:57 nate Exp $ +# $Id: Makefile,v 1.6 1996/08/07 13:25:59 peter Exp $ # # By default, flex will be configured to generate 8-bit scanners only if the # -8 flag is given. If you want it to always generate 8-bit scanners, add @@ -14,9 +14,8 @@ LINKS+= ${BINDIR}/lex ${BINDIR}/lex++ LINKS+= ${BINDIR}/lex ${BINDIR}/flex LINKS+= ${BINDIR}/lex ${BINDIR}/flex++ -SRCS= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y \ +SRCS= scan.c ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y \ skel.c sym.c tblcmp.c yylex.c -OBJS+= scan.o LFLAGS+= -is CFLAGS+= -I. -I${.CURDIR} MAN1= lex.1 @@ -42,9 +41,11 @@ parse.c parse.h: parse.y mv -f y.tab.h parse.h bootstrap: initscan.c - @echo "Bootstrapping flex" - @rm -f scan.c - @cp -f ${.CURDIR}/initscan.c scan.c + @cmp -s ${.CURDIR}/initscan.c scan.c || { \ + echo "Bootstrapping flex" ; \ + rm -f scan.c ; \ + cp -f ${.CURDIR}/initscan.c scan.c ; \ + } scan.o: parse.c |
