freebsd-dev/usr.bin/make
Max Khon 9a81351403 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
2007-03-08 09:16:11 +00:00
..
PSD.doc
arch.c
arch.h
buf.c
buf.h
cond.c
cond.h
config.h
dir.c
dir.h
for.c
for.h
globals.h Implement "Remaking Makefiles" feature: 2007-03-08 09:16:11 +00:00
GNode.h
hash_tables.c
hash_tables.h
hash.c
hash.h
job.c Implement "Remaking Makefiles" feature: 2007-03-08 09:16:11 +00:00
job.h Implement "Remaking Makefiles" feature: 2007-03-08 09:16:11 +00:00
lst.c
lst.h
main.c Implement "Remaking Makefiles" feature: 2007-03-08 09:16:11 +00:00
make.1 Implement "Remaking Makefiles" feature: 2007-03-08 09:16:11 +00:00
make.c
make.h Implement "Remaking Makefiles" feature: 2007-03-08 09:16:11 +00:00
Makefile
Makefile.dist
parse.c Implement "Remaking Makefiles" feature: 2007-03-08 09:16:11 +00:00
parse.h
pathnames.h
proc.c
proc.h
shell.c
shell.h
str.c Don't go beyond the provided string when parsing the `\' character. 2006-10-09 19:37:26 +00:00
str.h
suff.c
suff.h
targ.c
targ.h
util.c
util.h
var.c
var.h