From 032c425898676e71f2a928cbda48d35d1cdc2900 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 30 Nov 2015 12:10:11 +0100 Subject: [PATCH] Enable flex verbose output only in verbose build mode. --- src/Makefile.am | 5 +++++ src/parser/scanner.l | 1 - src/tools/sysdb/scanner.l | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.30.2