|Re: True post-build actions [message #1841794 is a reply to message #1841671]
||Sun, 30 May 2021 07:41
Registered: October 2012
Actually, "post-build" is just another make target.|
It has no prerequisites and is called as the last target of a make run.
When used, the makefile contains (using @echo "post build" as the post-build command):
-$(MAKE) --no-print-directory post-build
-@echo "post build"
-@echo ' '
Note that post-build is run at the end of the link step.
I would expect it should be used to create the bin file.
If you also have a pre-build step, the makefile becomes
Where "main-build" contains the recipe formerly used by "all".
$(MAKE) --no-print-directory pre-build
$(MAKE) --no-print-directory main-build
You could run a batch file in the post-build that generates the bin then whatever else you want.
The makefile generated by CDT is more for run-of-the-mill builds.
You probably should consider writing your own makefile
or turn off makefile generation after the first build and modify the makefile.
This is for plain vanilla CDT.
If you are using a third party plugin then you should direct this question to its developers.
[Updated on: Sun, 30 May 2021 07:49]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02555 seconds