This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
2005-10-24 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
* gcc/Makefile.in: Documented the use of stamps Index: gcc/Makefile.in =================================================================== RCS file: /cvsroot/gcc/gcc/gcc/Makefile.in,v retrieving revision 1.1547 diff -u -3 -p -u -r1.1547 Makefile.in --- gcc/Makefile.in 12 Oct 2005 12:38:00 -0000 1.1547 +++ gcc/Makefile.in 24 Oct 2005 16:32:47 -0000 @@ -1088,6 +1088,39 @@ endif # Rebuilding this configuration # -----------------------------
+# On the use of stamps:
+# if a target "a" depends on "b", one usually writes
+# a: b
+# command b -o a
+#
+# but if "a" doesn't change every time "b" changes, it would the nice if targets that
+# depend on "a" wouldn't be rebuild unnecessarily. To make this, "a" must not be
+# overwritten with a identical copy. One solution is to use a temporary file
+# a:b
+# command b -o a.temp
+# move-if-change a.temp a
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |