2015-06-22 20:21:57 +00:00
|
|
|
.\" $FreeBSD$
|
2016-04-14 22:00:49 +00:00
|
|
|
Creates
|
|
|
|
.Xr make 1
|
|
|
|
meta files when building, which can provide a reliable incremental build when
|
|
|
|
using
|
|
|
|
.Xr filemon 4 .
|
|
|
|
The meta file is created in the OBJDIR as
|
|
|
|
.Pa target.meta .
|
|
|
|
These meta files track the command ran, its output, and the current directory.
|
2016-06-14 16:20:19 +00:00
|
|
|
The
|
2016-04-12 03:40:13 +00:00
|
|
|
.Xr filemon 4
|
2016-06-14 16:20:19 +00:00
|
|
|
module is required unless
|
|
|
|
.Va NO_FILEMON
|
|
|
|
is defined.
|
|
|
|
When the module is loaded, any files used by the commands executed will be
|
|
|
|
tracked as
|
2016-04-14 22:00:49 +00:00
|
|
|
dependencies for the target in its meta file.
|
|
|
|
The target will be considered out-of-date and rebuilt if any of the following
|
|
|
|
are true compared to the last build:
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
|
|
|
The command to execute changes.
|
|
|
|
.It
|
|
|
|
The current working directory changes.
|
|
|
|
.It
|
2016-06-05 23:04:42 +00:00
|
|
|
The target's meta file is missing.
|
|
|
|
.It
|
|
|
|
The target's meta file is missing filemon data when filemon is loaded
|
|
|
|
and a previous run did not have it loaded.
|
2016-04-14 22:00:49 +00:00
|
|
|
.It
|
|
|
|
[requires
|
|
|
|
.Xr filemon 4 ]
|
|
|
|
Files read, executed or linked to are newer than the target.
|
|
|
|
.It
|
|
|
|
[requires
|
|
|
|
.Xr filemon 4 ]
|
|
|
|
Files read, written, executed or linked are missing.
|
|
|
|
.El
|
2016-04-12 03:40:13 +00:00
|
|
|
The meta files can also be useful for debugging.
|
|
|
|
.Pp
|
|
|
|
The build will hide commands ran unless
|
|
|
|
.Va NO_SILENT
|
|
|
|
is defined.
|
2016-06-14 16:20:25 +00:00
|
|
|
Errors will cause
|
|
|
|
.Xr make 1
|
|
|
|
to show some of its environment for further debugging.
|
2016-04-14 22:00:49 +00:00
|
|
|
.Pp
|
|
|
|
The build operates as it normally would otherwise.
|
|
|
|
This option originally invoked a different build system but that was renamed
|
|
|
|
to
|
|
|
|
.Va WITH_DIRDEPS_BUILD .
|