develooper Front page | perl.perl5.porters | Postings from February 2023

Re: Makefile syntax portability

Thread Previous | Thread Next
From:
Branislav Zahradník
Date:
February 6, 2023 12:44
Subject:
Re: Makefile syntax portability
Message ID:
CAB=rbOkyM_wL5aB-wNiu4=xA+rg0Tg1vf6JRhi7Qt7RChc3Pdg@mail.gmail.com
On Mon, 6 Feb 2023 at 13:20, James E Keenan <jkeenan@pobox.com> wrote:

> On 2/6/23 05:17, demerphq wrote:
> > I recently discovered that `make` supports a lot of "precanned'
> > recipes, like $(COMPILE.c) and similar. You can find a list if you do
> > `make -p` in  a directory with no makefile. Does anyone know why we
> > don't use these?  Are they not portable?
> >
> > cheers,
> > Yves
> >
>
> Appears to be gmake only. On FreeBSD, 'gmake -p' produces the kind of
> list you were talking about, but 'make -p' just produces a Usage statement.
>

pmake on linux does that as well but when I made simple makefile just
echoing $(COMPILE.c) I've got reasonable value

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About