|
Re: True post-build actions [message #1841794 is a reply to message #1841671] |
Sun, 30 May 2021 07:41 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
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):
all: target-exe
target-exe:
<link recipe>
-$(MAKE) --no-print-directory post-build
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
all:
$(MAKE) --no-print-directory pre-build
$(MAKE) --no-print-directory main-build Where "main-build" contains the recipe formerly used by "all".
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.03022 seconds