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

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

  • Subject: Re: [OCLUG-Tech] how to display the target with which a makefile was invoked?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Thu, 11 Sep 2014 07:22:13 -0400 (EDT)
On Thu, 11 Sep 2014, Stephen M. Webb wrote:

> 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?

 yes, that's what i was after, thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================