---
 doc/automake.texi |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/doc/automake.texi b/doc/automake.texi
index c46d08f..aa92729 100644
--- a/doc/automake.texi
+++ b/doc/automake.texi
@@ -6730,9 +6730,18 @@ class InCodeClass : public QObject @{
 #include <incodeclass.moc>
 @end example
 
-C++ source files like this has to be added to @co...@var{prog}_qtsources} too.
-The generated @file{foo.moc} won't be compiled and linked of course,
-since its code will be generated together with the @file{foo.cpp}.
+C++ source files like this has to be added to
+...@code{@var{prog}_QTSOURCES} too.  The generated @file{foo.moc} won't be
+compiled and linked of course, since its code will be generated together
+with the @file{foo.cpp}.  An explicit dependency for @file{foo.o} to
+...@file{foo.moc} is recorded, so @command{make} will first create the moc
+file and only after that will try to compile the whole @file{foo.cpp}
+with the C++ compiler.
+
+Please note that in the example we included
+...@code{@var{cutegammon}_QTSOURCES} to @co...@var{cutegammon}_sources},
+this way it can be avoided to repeat the same source file names again,
+which would be quite error prone.
 
 @node Support for Other Languages
 @comment  node-name,  next,  previous,  up
-- 
1.6.3.3



Reply via email to