Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2016 11:02:25 -0800
From:      Sergei G <sergeig.public@gmail.com>
To:        Tobias Kortkamp <t@tobik.me>
Cc:        Aleksandr Miroslav <alexmiroslav@gmail.com>,  FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: have BSD make pass all arguments to GNU make?
Message-ID:  <CAFLLzCN0BJzmRAFOqXMK4AZhoTUAGBi5vDfLP8DSYFFjS-9Ldg@mail.gmail.com>
In-Reply-To: <1456944632.297035.537676842.2E7D0C93@webmail.messagingengine.com>
References:  <CACcSE1z2Jt_LRkFV59NttPAey_aB6Kmn3cogmmTn4W9FacS03g@mail.gmail.com> <CACcSE1z44oLYaRf3x26MJvyhjtknZgAzGrJuU4djttn7c7-q1w@mail.gmail.com> <1456944632.297035.537676842.2E7D0C93@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
gmake ${.TARGETS} ${MAKEFLAGS}


On Wed, Mar 2, 2016 at 10:50 AM, Tobias Kortkamp <t@tobik.me> wrote:

> How about:
>
> ${.TARGETS}:
>         @gmake ${.TARGETS}
>
>
> On Wed, Mar 2, 2016, at 07:45 PM, Aleksandr Miroslav wrote:
> > GMail munged my highlighting . I meant bar $* and gmake $* in those two
> > examples.
> >
> >
> >
> > On Wed, Mar 2, 2016 at 10:42 AM, Aleksandr Miroslav
> > <alexmiroslav@gmail.com>
> > wrote:
> >
> > > In shell, if I call a script "foo", i can pass all the arguments to a
> > > script "bar" like this:
> > >
> > >
> > > *bar $**
> > >
> > > I would like to do something similar with make.
> > >
> > > If I call BSD make with some target, I'd like to rerun it on a
> > > GnuMakefile, something like this:
> > >
> > >
> > > *gmake $**
> > >
> > > Obviously this doesn't work because (I think) make doesn't have the
> notion
> > > of $*.
> > >
> > > But is something like this possible?
> > >
> > > (I'd rather not alias make to gmake, in case you were wondering, my
> system
> > > uses  both makes in various places.)
> > >
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe@freebsd.org"
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFLLzCN0BJzmRAFOqXMK4AZhoTUAGBi5vDfLP8DSYFFjS-9Ldg>