Table of Contents Previous topic Next topic
Projects and Workspaces->Build Settings->Custom Build Steps->Adding Removing and Saving Custom Build Steps
Adding a Command
To add a command, click Add.
In the Description field, enter the description that you wish to be displayed when the command is run.
In the Command field, enter the name of the command to be run. If this command is not in a directory pointed to by the PATH setting of your systems environment or is not in the initial directory, then you must include the full path of the command.
In the Arguments field, enter any command line arguments that you wish to pass to the command.
In the Initial Directory field, enter the directory that should be made the current directory before the command is run.
The command, arguments, and initial directory fields can contain the following macros which will be replaced by the appropriate text as follows:
$(TargetDir) | The directory of the current target program or library. |
$(TargetExt) | The filename extension of the current target program or library. |
$(TargetName) | The filename of the current target. |
$(TargetPath) | The filename (without extension) of the current target program or library. |
$(ProjectDir) | The directory of the current project that contains the .XMK file. |
$(ProjectName) | The current project name (without the .XMK extension). |
$(MapPath) | The complete filename of the current map file |
$(VariantPath) | The full path of the directory specified by the VariantPath setting for the family member. |
$(DosTargetDir) | The directory of the current target program or library. |
$(DosTargetExt) | The filename extension of the current target program or library. |
$(DosTargetName) | The filename (without extension) of the current target program or library. |
$(DosTargetPath) | The complete filename of the current target program or library. |
$(DosProjectDir) | The directory of the current project that contains the .XMK file. |
$(DosProjectName) | The current project name (without the .XMK extension). |
$(DosMapPath) | The complete filename of the current map file |
$(DosVariantPath) | The full path of the directory specified by the VariantPath setting for the family member. |