summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex/Makefile
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-06-19 20:48:06 +0000
committernate <nate@FreeBSD.org>1996-06-19 20:48:06 +0000
commitd4f014461bc07fca54b2cd433609b621fc41de13 (patch)
treeae643c558fdb5902ac3cf1acf047d18715e1846d /usr.bin/lex/Makefile
parent5ef1dc8eacedf7cc26d0872db31307f1bcc25fae (diff)
downloadFreeBSD-src-d4f014461bc07fca54b2cd433609b621fc41de13.zip
FreeBSD-src-d4f014461bc07fca54b2cd433609b621fc41de13.tar.gz
Finish the import and merge in FreeBSD specific changes.
Add a 'bootstrap' target which *must* be run before building the new version, since the new scanner relies on the current version of flex to build itself otherwise.
Diffstat (limited to 'usr.bin/lex/Makefile')
-rw-r--r--usr.bin/lex/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/usr.bin/lex/Makefile b/usr.bin/lex/Makefile
index f0d3883..ddc8096 100644
--- a/usr.bin/lex/Makefile
+++ b/usr.bin/lex/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.3 1996/01/08 09:17:39 peter Exp $
+# $Id: Makefile,v 1.4 1996/05/07 23:19:47 wosch 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
@@ -19,7 +19,7 @@ SRCS= ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y \
OBJS+= scan.o
LFLAGS+= -is
CFLAGS+= -I. -I${.CURDIR}
-MAN1= lex.1 lexdoc.1
+MAN1= lex.1
MLINKS+= lex.1 flex.1
MLINKS+= lex.1 flex++.1
MLINKS+= lex.1 lex++.1
@@ -40,17 +40,12 @@ parse.c parse.h: parse.y
mv -f y.tab.c parse.c
mv -f y.tab.h parse.h
-.if exists(/usr/bin/lex)
-scan.o: parse.c
-.else
-# We must bootstrap
-scan.o: scan.c parse.h
-
-scan.c:
+bootstrap: initscan.c
@echo "Bootstrapping flex"
@rm -f scan.c
- @cp -pf ${.CURDIR}/initscan.c scan.c
-.endif
+ @cp -f ${.CURDIR}/initscan.c scan.c
+
+scan.o: parse.c
test: check
check: $(PROG)
OpenPOWER on IntegriCloud