Bug 393308 - Add ability to pass target name to make target defined in Make Target view
Summary: Add ability to pass target name to make target defined in Make Target view
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: Next   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-01 05:09 EDT by andrei@lenkei.com Andrei Lenkei CLA
Modified: 2020-09-04 15:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrei@lenkei.com Andrei Lenkei CLA 2012-11-01 05:09:46 EDT
Currently you can not dynamically pass the target name to a make target defined in the Make Target View.

I have a project where in a subdirectory (where I build a particular executable) I need to make a clean, a debug version and a release version. 

Currently I need 3 different make targets in that directory. One each for clean, debug and release. The make command is (almost) the same in all three cases. What differs is the target name.

It would make sense to have the option that when you execute a make target it pops a window asking you for the target name (possibly with a dropdown of available targets either extracted from the makefile(more difficult) or that the user can provide when defining the target). This way, one make target can sevice all the scenarios.

I wrote almost the same because there is one parameter that is different betwen a debug and a release build and that is BUILD=[debug|release] (I'm building a wxWidgets based app with bakefile generated makefiles and the debug vs. release decides if the .o:s end up in gcc_mswd/ or gcc_msw/). So each make target name would ideally have a set of variables that are then passed to the make command associated with it.

While this is not a big deal it does lead to needing to have  a potentially large number of make targets defined (I have 7 defined in one directory) where 1 would suffice.

Best regards,
Andrei Lenkei