diff options
author | Roland McGrath <roland@redhat.com> | 1996-03-20 00:56:52 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1996-03-20 00:56:52 +0000 |
commit | 8b2aca5930b9c761cfcd843411c2935bb0e8bf32 (patch) | |
tree | 7a7af6de15cea0b7b585d45569ca804d0051dfd9 /file.h | |
parent | b8ea37e31cc6b81a77743383641b48c1158cc94a (diff) | |
download | gunmake-8b2aca5930b9c761cfcd843411c2935bb0e8bf32.tar.gz |
Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
* file.h (struct file): New field `secondary'.
* file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
(remove_intermediates): Don't delete .SECONDARY files.
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -72,6 +72,9 @@ struct file unsigned int phony:1; /* Nonzero if this is a phony file i.e., a dependency of .PHONY. */ unsigned int intermediate:1;/* Nonzero if this is an intermediate file. */ + /* Nonzero, for an intermediate file, + means remove_intermediates should not delete it. */ + unsigned int secondary:1; unsigned int dontcare:1; /* Nonzero if no complaint is to be made if this target cannot be remade. */ }; @@ -89,11 +92,17 @@ extern void rename_file (), file_hash_enter (); extern void set_command_state (); +/* Return the mtime of file F (a struct file *), caching it. + The value is -1 if the file does not exist. */ +#define file_mtime(f) file_mtime_1 ((f), 1) +/* Return the mtime of file F (a struct file *), caching it. + Don't search using vpath for the file--if it doesn't actually exist, + we don't find it. + The value is -1 if the file does not exist. */ +#define file_mtime_no_search(f) file_mtime_1 ((f), 0) extern time_t f_mtime (); #define file_mtime_1(f, v) \ ((f)->last_mtime != (time_t) 0 ? (f)->last_mtime : f_mtime ((f), v)) -#define file_mtime(f) file_mtime_1 ((f), 1) -#define file_mtime_no_search(f) file_mtime_1 ((f), 0) /* Modtime value to use for `infinitely new'. We used to get the current time from the system and use that whenever we wanted `new'. But that causes |