have BSD make pass all arguments to GNU make?

Sergei G sergeig.public at gmail.com
Wed Mar 2 19:02:27 UTC 2016


gmake ${.TARGETS} ${MAKEFLAGS}


On Wed, Mar 2, 2016 at 10:50 AM, Tobias Kortkamp <t at 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 at 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 at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list