Commit 14e10636 authored by Francis Dupont's avatar Francis Dupont
Browse files

[4125] Made the parser target dependent on --enable-generate-parser

parent 1e9e05b0
......@@ -1255,6 +1255,8 @@ EOF
$RM -f bisontest.y
AM_CONDITIONAL([GENERATE_PARSER], [test x$enable_generate_parser != xno])
AC_ARG_ENABLE(generate_docs, [AC_HELP_STRING([--enable-generate-docs],
[regenerate documentation using Docbook [default=no]])],
enable_generate_docs=$enableval, enable_generate_docs=no)
......@@ -73,6 +73,8 @@ maintainer-clean-local:
# Make sure you have both flex and bison installed.
parser-clean: maintainer-clean-local
parser: location.hh position.hh stack.hh parser.h
@echo "Flex/bison files regenerated"
......@@ -82,3 +84,10 @@ location.hh position.hh stack.hh parser.h: parser.yy lexer.ll
$(LEX) -o lexer.ll
parser location.hh position.hh stack.hh parser.h
@echo Parser generation disabled. Configure with --enable-generate-parser to enable it.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment