The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.

--mtime

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

--show

Show each target and the tree of required dependencies.

--version

Displays program version and exits.

DISTRIBUTION

SystemPerl is part of the http://www.veripool.org/ free SystemC software tool suite. The latest version is available from CPAN and from http://www.veripool.org/systemperl.

Copyright 2001-2014 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 Version 3 or the Perl Artistic License Version 2.0.

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

SystemC::Manual

make