aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lex/Makefile
diff options
context:
space:
mode:
authorDmitrij Tejblum <dt@FreeBSD.org>1999-11-20 15:41:43 +0000
committerDmitrij Tejblum <dt@FreeBSD.org>1999-11-20 15:41:43 +0000
commitd5a53b4fe61b9c87bf58dfed9e1542e165ceceea (patch)
tree05961dcfdda481a0377ff7f92516163d3f49540c /usr.bin/lex/Makefile
parent5ab05143219089c8a35caa12eab1ca5ed1de46e7 (diff)
downloadsrc-d5a53b4fe61b9c87bf58dfed9e1542e165ceceea.tar.gz
src-d5a53b4fe61b9c87bf58dfed9e1542e165ceceea.zip
Generate skel.c at build time.
Notes
Notes: svn path=/head/; revision=53462
Diffstat (limited to 'usr.bin/lex/Makefile')
-rw-r--r--usr.bin/lex/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/lex/Makefile b/usr.bin/lex/Makefile
index 855da64da498..ec6a61e3252d 100644
--- a/usr.bin/lex/Makefile
+++ b/usr.bin/lex/Makefile
@@ -23,12 +23,15 @@ MLINKS+= lex.1 flex.1
MLINKS+= lex.1 flex++.1
MLINKS+= lex.1 lex++.1
-CLEANFILES= scan.c
+CLEANFILES= scan.c skel.c
.if !defined(NOLIB)
SUBDIR= lib
.endif
+skel.c: mkskel.sh flex.skl
+ sh ${.CURDIR}/mkskel.sh ${.CURDIR}/flex.skl > skel.c
+
beforeinstall:
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 644 \
${.CURDIR}/FlexLexer.h ${DESTDIR}/usr/include/g++