Skip to main content
DK.7
Associate III
Apr 22, 2024 9:38 AM UTC
Question

Ho to add own piece of code in to the make file?

It's possible to add my own piece of code to the make file? I'm asking because I've already tried to add it, but after clicking the "Build" button, my code disappears!

PS - I want to add "Generate packed filesystem for serving Web UI".

This topic has been closed for replies.

1 reply

Pavel A.
Apr 23, 2024 4:57 PM UTC

If you generate a project in CubeIDE  as a makefile, or CMake, or have your own makefile - of course you can modify the makefile and add anything.

If you're using so called managed *external* builder - it is possible to add some "hooks" into automatically generated makefiles. Please refer to general Eclipse CDT documentation. Of course if you just edit the generated makefiles your changes will be lost. Much easier option - use pre- and post- build actions where you can run any commands, including scripts and makefies.