microsoft / vscode-makefile-tools

MAKE integration in Visual Studio Code
Other
194 stars 58 forks source link

No option to manually specify build target, eg. for targets defined by pattern rules #535

Open Silicon42 opened 10 months ago

Silicon42 commented 10 months ago

I have a makefile where all the targets except "all" and "clean" are defined by pattern rules. I expected that it wouldn't be able to automatically pick up what the targets were because of this but what I didn't expect was for manually entering the target to be impossible. Attempting to manually enter the target into the text entry it brings up when setting the build target doesn't allow entries other than what is explicitly defined by name.

Makefile.txt

gcampbell-msft commented 10 months ago

@Silicon42 Thank you for this issue! We will investigate this using your makefile at our soonest availability and let you know if we have any questions while trying to reproduce, thanks!

Silicon42 commented 10 months ago

@gcampbell-msft It's not so much a bug as it is a feature request since the makefile in question infers the final executable targets from the directory structure so I didn't expect Makefile tools to be able to pick it up automatically.