diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-02-15 18:29:57 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-02-15 18:29:57 +0100 |
commit | f4d2f3b76702ee43025c809d3588662859146943 (patch) | |
tree | 747e82e7be1ae6b77ecbb6a5443c54e60804bd29 /doc | |
parent | de839e5b0f4a95242f03f731110ac07e72cf146c (diff) | |
parent | b42514b48a5104785737cb4459e177b98d023ed7 (diff) | |
download | automake-f4d2f3b76702ee43025c809d3588662859146943.tar.gz |
Merge branch 'yl-work-for-master'
* yl-work-for-master: (44 commits)
tests: truly use Lex and Yacc selected by configure
news: fix grammaros related to Yacc
yacc/lex tests: avoid spurious skips with non-GNU make
fixup: remove double news entry
tests: workaround for shells with broken 'set -e'
tests: avoid spurious failure with non-bison yacc
tests: fix spurious failures due to missing 'yywrap()' function
fixup: list of yacc/lex tests was botched
tests: work around bug#7884 in many yacc/lex tests
yacc/lex tests: remove an unneeded workaround for bug#8485
yacc/lex tests: avoid too much failures with FreeBSD make
yacc-dist-nobuild.test: add reference to bug#7884
yacc tests: fix bug in 'yacc-cxx.test'
lex tests: fix spurious link errors on Solaris
lex: "make clean" removes .c files from non-distributed .l
lex tests: make test on Lex dependency tracking more "semantic"
lex tests: remove erroneous check about ylwrap distribution
yacc tests: "make clean" removes C++ files from non-distributed .y
tests: add a workaround for automake bug#8485
tests: add a couple of inter-tests reference
...
Diffstat (limited to 'doc')
-rw-r--r-- | doc/automake.texi | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/automake.texi b/doc/automake.texi index d1890a952..0679ee217 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -6173,12 +6173,16 @@ cause the intermediate file to be named @file{foo.c} (as opposed to @file{y.tab.c}, which is more traditional). The extension of a yacc source file is used to determine the extension -of the resulting C or C++ file. Files with the extension @file{.y} -will be turned into @file{.c} files; likewise, @file{.yy} will become -@file{.cc}; @file{.y++}, @file{c++}; @file{.yxx}, @file{.cxx}; and -@file{.ypp}, @file{.cpp}. - -Likewise, lex source files can be used to generate C or C++; the +of the resulting C or C++ source and header files. Note that header +files are generated only when the @option{-d} Yacc option is used; see +below for more information about this flag, and how to specify it. +Files with the extension @file{.y} will thus be turned into @file{.c} +sources and @file{.h} headers; likewise, @file{.yy} will become +@file{.cc} and @file{.hh}, @file{.y++} will become @file{c++} and +@file{h++}, @file{.yxx} will become @file{.cxx} and @file{.hxx}, +and @file{.ypp} will become @file{.cpp} and @file{.hpp}. + +Similarly, lex source files can be used to generate C or C++; the extensions @file{.l}, @file{.ll}, @file{.l++}, @file{.lxx}, and @file{.lpp} are recognized. |