Alcatel-Lucent nmake Product Builder - Eclipse Plugin 0.3.2 Guide Alcatel-Lucent

Custom make targets

In addition to the project level build definitions, CDT allows you to define custom make targets that may appear at any level in the build hierarchy. With one exception, standard CDT procedures for defining custom make targets work for nmake. The exception is the setting for the Build Command field of the Create a new Make target dialog. When CDT runs the specified build command, it does not set environment variable PWD appropriately for targets not at project root. This leads to incorrect values for nmake variables such as VROOT. A workaround is to execute nmake through a simple shell wrapper script. A sample script has been provided in the sample project in toolbin/nmk. To use it, put <proot>/toolbin on your PATH and use ksh nmk instead of nmake in the Build Command field when creating a custom make target:

custom make target creation dialog

Custom make target creation dialog.

Custom make targets display in the Make Targets view:

make targets view

Custom make targets view.

Double click on the target icon to run the target, or select the target and click the target toolbar icon.