beautypg.com

Creating custom build targets for managed projects, Create make target dialog, Make target view – HP Integrity NonStop H-Series User Manual

Page 112

background image

Figure 76 Create Make Target dialog

4.

Select OK to add the target and dismiss the dialog.

Figure 77 (page 112)

shows a target named

my_target added to the project Car in the Make Target view.

Figure 77 Make Target View

5.

Double-click the new target to launch a build with that target. For example, if you were to
double-click the my_target target shown in the above figure, NSDEE would invoke make
my_target

.

Creating custom build targets for managed projects

You can create custom build targets to replace the standard all, clean, and deploy targets
that are generated automatically for managed builds. To do this, you first need to change the name
of the target of interest in project properties so that the corresponding menu item (Build Project,
Clean Project, or Deploy Project) invokes make using your custom target name instead of the default
target name of all, clean, or deploy. Then you need to define your custom build target in a
makefile.targets

file.

For example, say you want to create your own clean target that also cleans COBOL list (.L) files,
which NSDEE does not do (and assume that you don't want to turn off generation of list files using
the -Wnolist option). First you need to change the clean target to clean-all, the clean
target you will define in makefile.targets. Second, you need to create a makefile.targets
file with your clean-all target.

To change the clean target to clean-all, perform the following steps from the NonStop
Development perspective:

112

Tasks

This manual is related to the following products: