From: Sebastian Harl Date: Mon, 30 Nov 2015 11:10:11 +0000 (+0100) Subject: Enable flex verbose output only in verbose build mode. X-Git-Tag: sysdb-0.8.0~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=032c425898676e71f2a928cbda48d35d1cdc2900;p=sysdb.git Enable flex verbose output only in verbose build mode. --- diff --git a/src/Makefile.am b/src/Makefile.am index 177ee6f..9edaf4b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,6 +9,11 @@ AM_CPPFLAGS += -DSYSCONFDIR='"${sysconfdir}"' AM_CPPFLAGS += -DLOCALSTATEDIR='"${localstatedir}"' AM_CPPFLAGS += -DPKGLIBDIR='"${pkglibdir}"' +V_LFLAGS = $(v_lflags_@AM_V@) +v_lflags_ = $(v_lflags_@AM_DEFAULT_V@) +v_lflags_1 = -v + +AM_LFLAGS = $(V_LFLAGS) AM_YFLAGS = -d BUILT_SOURCES = include/client/sysdb.h include/sysdb.h \ diff --git a/src/parser/scanner.l b/src/parser/scanner.l index 8fce7d9..a4e8610 100644 --- a/src/parser/scanner.l +++ b/src/parser/scanner.l @@ -107,7 +107,6 @@ sdb_parser_yyerror(YYLTYPE *lval, sdb_parser_yyscan_t scanner, const char *msg); %option noinput %option nounput %option noyywrap -%option verbose %option warn %option prefix="sdb_parser_yy" outfile="lex.yy.c" diff --git a/src/tools/sysdb/scanner.l b/src/tools/sysdb/scanner.l index eb1ec18..fb7b9d5 100644 --- a/src/tools/sysdb/scanner.l +++ b/src/tools/sysdb/scanner.l @@ -61,7 +61,6 @@ %option yylineno %option nodefault %option noyywrap -%option verbose %option warn %x CSC