From 73774e5974903a9026a04a2070f6cc7903cb74b9 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 6 Nov 2014 21:01:56 -0500 Subject: [PATCH] Implement workaround for flex --header-file option This is fixed in automake 1.12 and later. The problem is that the ylwrap helper script creates a temporary directory when running flex. Flex then correctly creates the scanner.h file inside this temporary directory, but ylwrap does not copy it back to the build dir. --- src/cli/Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cli/Makefile.am b/src/cli/Makefile.am index 692df69..ff65f54 100644 --- a/src/cli/Makefile.am +++ b/src/cli/Makefile.am @@ -5,8 +5,10 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src/common \ -I$(top_builddir)/src/common -# Option -d: produce header file scanner.h -AM_LFLAGS = --header-file=scanner.h +# Option --header-file: produce header file scanner.h. +# Using abs_builddir as a workaround for automake-1.11 +# broken ylwrap script. +AM_LFLAGS = --header-file=$(abs_builddir)/scanner.h # Option -d: produce header file parser.h AM_YFLAGS = -d -- 2.20.1