3.2 A Simple clearmake Build Scenario

clearmake is designed to let developers in makefile-based build environments continue working in their accustomed manner. The following simple build scenario demonstrates how little adjustment is required to begin building with clearmake.

  1. Go to a development directory within any VOB.

  2. Edit some source files. Typically, you need to edit some sources before performing a build; accordingly, you check out some file elements and revise the checked-out versions.

  3. Start a build. You can use your existing makefiles, but invoke clearmake instead of your standard make program. For example:

  4. clearmake

    (build the default target)

    clearmake cwd.obj libproj.lib

    (build one or more particular targets)

    clearmake -k monet CFLAGS=-g

    (use standard options and make-macro overrides)

    (We recommend that you avoid specifying make-macro overrides on the command line. See Specifying Build Options)

clearmake builds targets (or avoids building them) in a manner similar to, but more sophisticated than, other make variants.

Figure 6 illustrates some typical build scenarios in which derived objects are rebuilt, reused, or winked in.

Figure 6 clearmake Build Scenario

clearmake builds new derived objects for checked-out source files, reuses derived objects for checked-in source files that have previously build the object, and winks in derived objects from other views as appropriate for checked-in source files that have not previously built the object.

Note that clearmake does not attempt to verify that you have actually edited the file; the checkout makes a rebuild necessary. As you work, saving a file or invoking clearmake causes a rebuild of the updated file's dependents, in the standard make manner.

For source files that you have not checked out, clearmake may or may not build a new derived object: