Is it possible build with a custom make target in Eclipse? [message #1798470] |
Mon, 19 November 2018 15:33 |
Kenny McCartney Messages: 2 Registered: August 2018 |
Junior Member |
|
|
Hi,
I'm trying to extend our Eclipse implementation so that I can have a button that will download an executable to an evaluation board.
I started by adding a "download" target to the generated makefiles so that the makefile can be used to download the executable after building. So an example makefile now looks something like this:
download: $(LDR_FILE)
@echo 'Invoking: Downloader'
// Downloader command goes here
@echo 'Finished building: $@'
@echo ' '
(I need to do it in the makefile as other people may be invoking the makefile directly from the command line - they won't have Eclipse.) I'm kinda happy with this at the moment as it works on the command line.
The normal build button will just do "make all" as usual - it won't perform "make download". Instead I want my new button to perform "make download".
Does that make sense?
My approach at the moment has been to create a customer builder, and somehow use this to invoke "make download". I've got the custom builder up and running (doesn't currently do anything), but I'm not sure how I'd go about invoking "make download" from it. Any suggestions? I looked at the various IProject.build() methods, but none of them seem to allow for custom targets.
Aaargh.
Thanks!
Kenny
|
|
|
Powered by
FUDForum. Page generated in 0.03295 seconds