summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-01-08 09:17:39 +0000
committerpeter <peter@FreeBSD.org>1996-01-08 09:17:39 +0000
commit7bb490a7771422fe0a4fdb1ec05660af36df5559 (patch)
tree7a02e5ece85ac5fc9fedaa80cd215dff45d1a7fc /usr.bin/lex
parent3355d831f56f8569867e70690afff8f72a15d68f (diff)
downloadFreeBSD-src-7bb490a7771422fe0a4fdb1ec05660af36df5559.zip
FreeBSD-src-7bb490a7771422fe0a4fdb1ec05660af36df5559.tar.gz
Add some links to lex (flex, flex++ etc) that some of the gnu autoconf
scripts check for. (when looking explicitly for flex..) Also, do some man links for the commands under their alternate names. Install the c++ FlexLexer.h file as per the "XXX TODO" comment.
Diffstat (limited to 'usr.bin/lex')
-rw-r--r--usr.bin/lex/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/usr.bin/lex/Makefile b/usr.bin/lex/Makefile
index 41d4afd..57e653b 100644
--- a/usr.bin/lex/Makefile
+++ b/usr.bin/lex/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1.1.1 1994/08/24 13:10:33 csgr Exp $
+# $Id: Makefile,v 1.2 1994/08/27 09:52:30 csgr 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
@@ -8,11 +8,11 @@
# Bootstrapping of lex is handled automatically.
# Also note that flex.skel no longer gets installed.
#
-# XXX Todo:
-# Install as lex++, and install FlexLexer.h
PROG= lex
-#LINKS+= ${BINDIR}/lex ${BINDIR}/lex++ ${BINDIR}/flex ${BINDIR}/flex++
+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 \
skel.c sym.c tblcmp.c yylex.c
@@ -20,12 +20,19 @@ OBJS+= scan.o
LFLAGS+= -is
CFLAGS+= -I. -I${.CURDIR}
MAN1= lex.1 lexdoc.1
+MLINKS+= lex.1 flex.1
+MLINKS+= lex.1 flex++.1
+MLINKS+= lex.1 lex++.1
CLEANFILES+= parse.c parse.h scan.c y.tab.h y.tab.c
SUBDIR= lib
+beforeinstall:
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 \
+ ${.CURDIR}/FlexLexer.h ${DESTDIR}/usr/include/g++
+
.depend: parse.h
parse.c parse.h: parse.y
OpenPOWER on IntegriCloud