Source dependencies declared explicitly

Learn how to declare source dependencies.

The DevOps Code ClearCase® build auditing facility tracks only the MVFS objects used to build a target. Sometimes, you might track other objects. For example:

You can force such objects to be recorded in the CR by declaring them as dependencies of the makefile target:

hello.o: hello.c hello.h /usr/5bin/cc my.flag
      rm -f hello.o
      cc -c hello.c

This example illustrates dependency declarations for these kinds of objects:

As an alternative to declaring your C compiler as a build dependency, you can place it (and other tools) in a tools VOB. The versions of such tools are recorded, eliminating the need for explicit dependency declarations. Additional issues in the auditing of build tools are discussed in the section Explicit dependencies on searched-for sources.