From: Hugo Villeneuve Date: Fri, 7 Nov 2014 02:01:56 +0000 (-0500) Subject: Implement workaround for flex --header-file option X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=73774e5974903a9026a04a2070f6cc7903cb74b9;p=emu8051.git 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. --- 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