mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-07 04:55:46 +00:00
(Automatic Dependencies): Improve recommended sed command.
Mention -MM flag to gcc.
This commit is contained in:
parent
a543a2ae9f
commit
dc576b2051
1 changed files with 8 additions and 2 deletions
10
make.texinfo
10
make.texinfo
|
@ -10,7 +10,7 @@
|
||||||
@set RCSID $Id$
|
@set RCSID $Id$
|
||||||
@set EDITION 0.47 DRAFT
|
@set EDITION 0.47 DRAFT
|
||||||
@set VERSION 3.72 Beta
|
@set VERSION 3.72 Beta
|
||||||
@set UPDATED 16 October 1994
|
@set UPDATED 24 October 1994
|
||||||
@set UPDATE-MONTH October 1994
|
@set UPDATE-MONTH October 1994
|
||||||
@set ISBN 1-882114-50-7
|
@set ISBN 1-882114-50-7
|
||||||
|
|
||||||
|
@ -2583,7 +2583,7 @@ called @file{@var{name}.d} from a C source file called @file{@var{name}.c}:
|
||||||
@group
|
@group
|
||||||
%.d: %.c
|
%.d: %.c
|
||||||
$(SHELL) -ec '$(CC) -M $(CPPFLAGS) $< \
|
$(SHELL) -ec '$(CC) -M $(CPPFLAGS) $< \
|
||||||
| sed '\''s/$*.o/& $@@/g'\'' > $@@'
|
| sed '\''s/$*\\.o[ :]*/& $@@/g'\'' > $@@'
|
||||||
@end group
|
@end group
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
@ -2596,6 +2596,12 @@ shell exits with the status of the last command in the pipeline
|
||||||
status from the compiler.
|
status from the compiler.
|
||||||
@cindex @code{-e} (shell flag)
|
@cindex @code{-e} (shell flag)
|
||||||
|
|
||||||
|
@cindex @code{-MM} (to GNU compiler)
|
||||||
|
With the GNU C compiler, you may wish to use the @samp{-MM} flag instead
|
||||||
|
of @samp{-M}. This omits dependencies on system header files.
|
||||||
|
@xref{Preprocessor Options, , Options Controlling the Preprocessor,
|
||||||
|
gcc.info, Using GNU CC}, for details.
|
||||||
|
|
||||||
@cindex @code{sed} (shell command)
|
@cindex @code{sed} (shell command)
|
||||||
The purpose of the @code{sed} command is to translate (for example):
|
The purpose of the @code{sed} command is to translate (for example):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue