]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Document some formatting restrictions for Makefile.am files.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 11 May 2009 22:15:43 +0000 (00:15 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 12 May 2009 06:00:45 +0000 (08:00 +0200)
For PR automake/540:
* doc/automake.texi (General Operation, Usage of Conditionals):
Variable assignments should not be indented by TABs, rule commands
should.  Conditional keyword statements should not be indented.
Report by luoyi.ly@gmail.com.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
doc/automake.texi

index 722ac98951196a3272063f5c122635cb964bfb26..329879c2691791f7485c3950fd10a1851e770c8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-05-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       For PR automake/540:
+       Document some formatting restrictions for Makefile.am files.
+       * doc/automake.texi (General Operation, Usage of Conditionals):
+       Variable assignments should not be indented by TABs, rule commands
+       should.  Conditional keyword statements should not be indented.
+       * THANKS: Update.
+       Report by Luo Yi.
+
 2009-05-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Fix copyright years in *.am files.
diff --git a/THANKS b/THANKS
index 2017bcb107d28efaca45567b3757ac2fbe6550b8..bf2be2df0b8d36b8ac5b471543174d783d90d690 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -187,6 +187,7 @@ Laurent Morichetti  laurentm@cup.hp.com
 Leo Davis              ldavis@fonix.com
 Leonardo Boiko         leoboiko@conectiva.com.br
 Loulou Pouchet         loulou@lrde.epita.fr
+Luo Yi                 luoyi.ly@gmail.com
 Maciej Stachowiak      mstachow@mit.edu
 Maciej W. Rozycki      macro@ds2.pg.gda.pl
 Manu Rouat             emmanuel.rouat@wanadoo.fr
index 09a5dd27048e49463fef472afb72c03255ad73a7..e8779422aaad29a1c7ce7adc8c1696824dd36819 100644 (file)
@@ -1775,6 +1775,11 @@ supported.  This operator appends its right hand argument to the variable
 specified on the left.  Automake will translate the operator into
 an ordinary @samp{=} operator; @samp{+=} will thus work with any make program.
 
+@cindex indentation
+Further note that variable assignments should not be indented with
+@key{TAB} characters, use spaces if necessary.  On the other hand,
+rule commands should be indented with a leading @key{TAB} character.
+
 Automake tries to keep comments grouped with any adjoining rules or
 variable definitions.
 
@@ -9565,7 +9570,9 @@ endif !DEBUG
 @end example
 
 @noindent
-Unbalanced conditions are errors.
+Unbalanced conditions are errors.  The @code{if}, @code{else}, and
+@code{endif} statements should not be indented, i.e., start on column
+one.
 
 The @code{else} branch of the above two examples could be omitted,
 since assigning the empty string to an otherwise undefined variable