Although the distributed version of amake-collect
can
be used as it is, the script is intended to be customized
for a particular build process.
The script reads dependencies from stdin
(a pipe),
canonicalizes and filters the paths, and writes them to the
target's .dep
and .sib
files. Checksum and
last-modification-time values for dependencies are also
written to the target's .dep
file, as
makefile-variable definitions. If the resulting files are
empty they are removed, as unneeded.
The pipe-arbitrating semaphore is removed upon normal termination or receipt of a signal.