Adding to a standard make command [message #88450] |
Tue, 02 December 2003 17:58  |
Eclipse User |
|
|
|
Originally posted by: Brad.Jarvinen.palmsource.com
Hi,
I'd like to add a parameter to the make command so that the make command invoked looks like:
make LOCATION=C:/toolsdir all
then in my makefile I can reference that directory and do something like the following:
$(LOCATION)/SomeToolInvocation
I realize I can change the make build command through the C Project properties make builder settings (unchecking the default and
hardcoding in LOCATION), but I want this value to not be hardcoded; i.e. I want to retrieve the value for LOCATION right from a
plugin right before building. This value I want to pass in can vary from machine to machine, so hardcoding it in the properties
would prevent this project from working on other machines.
I looked at deriving my own builder from MakeBuilder and modifying the Map argument before MakeBuilder processes it, but then I'd
have to forego using the MakeProjectNature since it is associated with MakeBuilder.
It'd be nice if there was some extension point I can use, but I'm failing to identify one. Any ideas?
Thanks,
Brad
|
|
|
Re: Adding to a standard make command [message #88496 is a reply to message #88450] |
Wed, 03 December 2003 12:52  |
Eclipse User |
|
|
|
Current there is no support for such thing, though was something I was
planning for CDT2.0, so I have just created a entry in bugzilla for
this, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=48009.
I have captured what I had in mind there, if you would like to comment
further please feel free to add to the bugzilla entry.
Thanks
Dave.
Brad Jarvinen wrote:
> Hi,
>
> I'd like to add a parameter to the make command so that the make command invoked looks like:
> make LOCATION=C:/toolsdir all
>
> then in my makefile I can reference that directory and do something like the following:
> $(LOCATION)/SomeToolInvocation
>
> I realize I can change the make build command through the C Project properties make builder settings (unchecking the default and
> hardcoding in LOCATION), but I want this value to not be hardcoded; i.e. I want to retrieve the value for LOCATION right from a
> plugin right before building. This value I want to pass in can vary from machine to machine, so hardcoding it in the properties
> would prevent this project from working on other machines.
>
> I looked at deriving my own builder from MakeBuilder and modifying the Map argument before MakeBuilder processes it, but then I'd
> have to forego using the MakeProjectNature since it is associated with MakeBuilder.
>
> It'd be nice if there was some extension point I can use, but I'm failing to identify one. Any ideas?
>
> Thanks,
> Brad
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 3.80849 seconds