Sun WorkShop TeamWare 2.1 User's Guide

Building With Default Values

You can begin a build without having to specify a build command, makefile, or target. TeamWare provides a default makefile name (makefile), a default make target, and a default make command, dmake (see "Running a Distributed Build"). All you need to supply is the path name for the build directory.

Default Makefile and Make Target

The Define New Target dialog box contains the value Default in the Makefile and Target text boxes. If you do not specify a particular makefile or make target, TeamWare looks for a file named makefile in the build directory and uses the first make target in that makefile. However, if make finds an SCCS history file (s.makefile) that is newer than the file named makefile, TeamWare uses the most recent version of s.makefile. If makefile does not exist, TeamWare searches for a file named Makefile. Again, if an SCCS history file (s.Makefile) exists that is newer than Makefile, TeamWare uses the most recent version of s.Makefile.

Using Default Values

To build a program using default build values:

  1. Look in the Directory status field in the Building window to be sure you have the correct build directory set.

  2. If the current build directory is correct, click the Build button, choose Build > Build in the Building window, or select a TeamWare target from the list at the bottom of the Build menu.

  3. If no build directory is displayed in the Directory status field or you want to change build directories, choose Build > New Target to open the Define New Target dialog box. Type the build path in the Directory text box.

    You can also click the browse button to open a directory chooser. Choose a directory in the list and click OK to load it into the Directory text box. Then click Build at the bottom of the dialog box.

The build output is displayed in the Build Output display pane in the Building window. Click the Stop Build button in the Building window or choose Build Stop Build to stop the build process.


Note -

The next time you open the Building window, the build directory is set to the last directory in which you ran a build job. You can see the path name in the Directory status field.