From ba14eaecbb3311511d226ca7b7dc74e664e53dd7 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Wed, 12 Jan 2011 13:23:59 +0100 Subject: [PATCH] docs: clustered '-d' not recognized in YFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This commit fixes automake bug#7828. * doc/automake.texi (Yacc and Lex): Document that automake recognizes '-d' in AM_YFLAGS only if it's not clustered with other options. From a report by Юрий Пухальский. --- ChangeLog | 9 +++++++++ doc/automake.texi | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bf44677..a6be4ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-01-12 Stefano Lattarini + + docs: clustered '-d' not recognized in YFLAGS + This change fixes automake bug#7828. + * doc/automake.texi (Yacc and Lex): Document that automake + recognizes '-d' in AM_YFLAGS only if it's not clustered with + other options. + From a report by Юрий Пухальский. + 2011-01-02 Stefano Lattarini * NEWS: Fix typo (forgotten word). diff --git a/doc/automake.texi b/doc/automake.texi index 43ad581..dfd0019 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -6078,7 +6078,12 @@ intended for the @file{Makefile.am} author. @code{AM_YFLAGS} is usually used to pass the @option{-d} option to @command{yacc}. Automake knows what this means and will automatically adjust its rules to update and distribute the header file built by -@samp{yacc -d}. What Automake cannot guess, though, is where this +@samp{yacc -d}@footnote{Please note that @command{automake} recognizes +@option{-d} in @code{AM_YFLAGS} only if it is not clustered with other +options; for example, it won't be recognized if @code{AM_YFLAGS} is +@option{-dt}, but it will be if @code{AM_YFLAGS} is @option{-d -t} or +@option{-d -t}}. +What Automake cannot guess, though, is where this header will be used: it is up to you to ensure the header gets built before it is first used. Typically this is necessary in order for dependency tracking to work when the header is included by another -- 2.7.4