home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] how to display the target with which a makefile was invoked?

On 09/11/2014 04:53 AM, Robert P. J. Day wrote:
> 
>   i'm having a brain cramp right now ... i have a Makefile that is
> invoked recursively with different targets, and all i want to do is
> use $(info ...) (or something similar) to display the target with
> which it was invoked. and for the life of me, i'm drawing a blank.
> help?


Maybe $(info "command goals: $(MAKECMDGOALS)) is what you want?

-- 
Stephen M. Webb  <stephen [ dot ] webb [ at ] bregmasoft [ dot ] ca>

Attachment: signature.asc
Description: OpenPGP digital signature