diff options
author | peter <peter@FreeBSD.org> | 1996-09-19 05:21:07 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-19 05:21:07 +0000 |
commit | 89bb2f09ad44cec25131ac8cb8ef582be4638092 (patch) | |
tree | 398c4e35f0d128b9eb2298ea0cf1b99a0bc81b40 /usr.bin | |
parent | 4ef573301c407ea37f4732a100cbcf33112498db (diff) | |
download | FreeBSD-src-89bb2f09ad44cec25131ac8cb8ef582be4638092.zip FreeBSD-src-89bb2f09ad44cec25131ac8cb8ef582be4638092.tar.gz |
Clean up dependencies a bit (we were not doing a depend on scan.c)
Make the 'bootstrap' target work a little better.
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 009010e..302eeaf 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 |