2017-09-29 04:53 AM
Using CubeMx with automatic Makefile generation.
I want to alter the build target name.
Example:
CubeMx creates a build target in the Makefile:
TARGET = myfirmware
But I want to append a version:
TARGET = myfirmware_$(FW_VERSION)
However my custom change is overwritten each time CubeMx auto generates a new makefile.
Does anyone know how to work around this?
I have not found documentation on how to protect parts of the Makefile from updating.
#stmcubemx #makefile #cubemx-project2017-09-29 06:10 AM
Don't use the generated makefile directly; rather,
https://www.gnu.org/software/make/manual/make.html#Include
it into your own makefile which contains all the required settings.JW