summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/lex/Makefile')
-rw-r--r--usr.bin/lex/Makefile13
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
OpenPOWER on IntegriCloud