The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

sp_makecheck - Read dependency files and check for missing dependencies

SYNOPSIS

  sp_makecheck *.d

DESCRIPTION

A common technique with make is to use GCC to generate .d dependency files using the -MMD switch. This creates a files similar to foo.d:

    foo.o foo.d: foo.cc foo.h

The problem is if a header file is removed, then make will complain that there is no rule to build foo.h. Adding a fake target is one way around this, but that requires additional .d's, and leaves old objects around.

sp_makecheck reads the specified dependency files, and checks for the existence of all dependencies in the file. If a file does not exist, it simply removes all of the targets.

ARGUMENTS

--help

Displays this message and program version and exits.

--show

Show each target and the tree of required dependencies.

--mtime

Consider the modification time, removing any out of date files.

DISTRIBUTION

The latest version is available from CPAN and from http://www.veripool.com/.

Copyright 2001-2005 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License or the Perl Artistic License.

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

make