Document another make bug.

* doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
make, GNU make <= 3.80.

Signed-off-by: Eric Blake <ebb9@byu.net>
This commit is contained in:
Eric Blake 2008-08-21 09:32:21 -06:00
parent e3dce090c8
commit 75388b165e
2 changed files with 21 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2008-08-21 Eric Blake <ebb9@byu.net>
Document another make bug.
* doc/autoconf.texi (The Make Macro SHELL): Mention bug in BSD
make, GNU make <= 3.80.
Tweak wording about SHELL in Makefile.
* doc/autoconf.texi (The Make Macro SHELL): Stronger wording on
the importance of proper SHELL settings.

View File

@ -16368,6 +16368,23 @@ $ @kbd{env SHELL=/bin/tcsh FOO=bar gmake -e} # GNU make
bar
@end example
Conversely, @command{make} is not supposed to export any changes to the
macro @code{SHELL} to child processes. Again, many implementations
break this rule:
@example
$ @kbd{cat Makefile}
all:
@@echo $(SHELL)
@@printenv SHELL
$ @kbd{env SHELL=sh make -e SHELL=/bin/ksh} # BSD Make, GNU make 3.80
/bin/ksh
/bin/ksh
$ @kbd{env SHELL=sh gmake -e SHELL=/bin/ksh} # GNU make 3.81
/bin/ksh
sh
@end example
@node Comments in Make Rules
@section Comments in Make Rules
@cindex Comments in @file{Makefile} rules