Ho to add own piece of code in to the make file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-04-22 2:38 AM
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".
- Labels:
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-04-23 9:57 AM - edited 2024-04-23 9:59 AM
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.
