mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
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:
parent
e3dce090c8
commit
75388b165e
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user