aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am.inc
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-08-04 02:13:52 +0000
committerGuy Harris <guy@alum.mit.edu>2007-08-04 02:13:52 +0000
commit5be4499ad19b66e1626f6c6eb1849803e08126d6 (patch)
tree5f15006cef3d366c1ffb3840f5fda428c28ed2ab /Makefile.am.inc
parent2d11b0813e23d01c27975755f39f2457e4da5c90 (diff)
Add a script as a front-end for Flex, to work around various problems,
such as the fact that Flex strips all but the last component of the "-o" argument, and that it doesn't generate a header file to declare routines the generated lexical analyzer defines. Use that script when building lexical analyzers, and, for each lexical analyzer, include the generated header file in the generated analyzer. svn path=/trunk/; revision=22446
Diffstat (limited to 'Makefile.am.inc')
-rw-r--r--Makefile.am.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/Makefile.am.inc b/Makefile.am.inc
index 00fd7d23f1..3c77dba0d8 100644
--- a/Makefile.am.inc
+++ b/Makefile.am.inc
@@ -22,8 +22,4 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
.l.c:
- @if [ ! -x "$(LEX)" ]; then \
- echo "Neither lex nor flex was found"; \
- exit 1; \
- fi
- $(LEX) -o$@ $<
+ $(RUNLEX) "$(LEX)" -o$@ $<