diff options
author | fjoe <fjoe@FreeBSD.org> | 2007-03-08 09:16:11 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2007-03-08 09:16:11 +0000 |
commit | 19d858e266534f79d31f05bb4f1b0810dae9b0e4 (patch) | |
tree | 4df26b7f4601246e5adacdf07dd59f9d468d6c03 /usr.bin/make/globals.h | |
parent | f6d48b2630c435828501c18fc4f28e9a6df9adfd (diff) | |
download | FreeBSD-src-19d858e266534f79d31f05bb4f1b0810dae9b0e4.zip FreeBSD-src-19d858e266534f79d31f05bb4f1b0810dae9b0e4.tar.gz |
Implement "Remaking Makefiles" feature:
After reading Makefile and all the files that are included using .include
or .sinclude directives (source Makefiles) make considers each source
Makefile as a target and tries to rebuild it. Both explicit and implicit
rules are checked and all source Makefiles are updated if necessary. If
any of the source Makefiles were rebuilt, make restarts from clean state.
To prevent infinite loops the following source Makefile targets are
ignored:
- :: targets that have no prerequisites but have commands
- ! targets
- targets that have .PHONY or .EXEC attributes
- targets without prerequisites and without commands
When remaking a source Makefile options -t (touch target), -q (query
mode), and -n (no exec) do not take effect, unless source Makefile is
specified explicitly as a target in make command line.
Additionally, system makefiles and .depend are not considered as a
Makefiles that can be rebuilt.
Reviewed by: harti
Diffstat (limited to 'usr.bin/make/globals.h')
-rw-r--r-- | usr.bin/make/globals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/make/globals.h b/usr.bin/make/globals.h index 4982a9f..465c4f3 100644 --- a/usr.bin/make/globals.h +++ b/usr.bin/make/globals.h @@ -77,6 +77,7 @@ extern Boolean beSilent; /* True if should print no commands */ extern Boolean beVerbose; /* True if should print extra cruft */ extern Boolean noExecute; /* True if should execute nothing */ extern Boolean allPrecious; /* True if every target is precious */ +extern Boolean is_posix; /* .POSIX target seen */ /* True if should continue on unaffected portions of the graph * when have an error in one portion */ |