summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-04-21 01:35:11 +0000
committerRoland McGrath <roland@redhat.com>1994-04-21 01:35:11 +0000
commitb86e35d2a61d09c02a0849b9935aefb694139eb0 (patch)
treece89e124ce66abd01d51647800b8ee7fb81a723a
parentf5b14eee671fb5ad144d15997ff334bc2046936a (diff)
downloadgunmake-b86e35d2a61d09c02a0849b9935aefb694139eb0.tar.gz
(Automatic Dependencies): Mention here that deps preclude intermediate files.
-rw-r--r--make.texinfo5
1 files changed, 5 insertions, 0 deletions
diff --git a/make.texinfo b/make.texinfo
index fcbd5c7..bb74eb9 100644
--- a/make.texinfo
+++ b/make.texinfo
@@ -2543,6 +2543,11 @@ main.o : main.c defs.h
Thus you no longer have to write all those rules yourself.
The compiler will do it for you.
+Note that such a dependency constitutes mentioning @file{main.o} in a
+makefile, so it can never be considered an intermediate file by implicit
+rule search. This means that @code{make} won't ever remove the file
+after using it; @pxref{Chained Rules, ,Chains of Implicit Rules}.
+
@cindex @code{make depend}
With old @code{make} programs, it was traditional practice to use this
compiler feature to generate dependencies on demand with a command like