18.3.5 Makefile Interface

To remove all target files for a given configuration:

  1. Change directory to $PROJECT_DIR.
  2. make -f nbproject/Makefile-debugOption.mk SUBPROJECTS= .clean-conf

This will clean the target files for the debugOption configuration.

To remove all target files for all configurations:

  1. Change directory to $PROJECT_DIR.
  2. make clobber

To run the Makefile for a given configuration:

  1. Change directory to $PROJECT_DIR.
  2. Set environment variables to override values in the Make process.
  3. make -f nbproject/Makefile-$CONFIGURATION_NAME.mk SUBPROJECTS= .build-conf where $CONFIGURATION_NAME is the name of the configuration Makefile to be run.

For a configuration called default:

make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf

The output for a configuration is one of the debug .elf files. The production image will be a .hex file. $PROJECT_NAME is the name of the project.

dist/$CONFIGURATION_NAME/debug/$PROJECT_NAME.debug.elf
dist/$CONFIGURATION_NAME/production/$PROJECT_NAME.production.hex