[Build-common-hackers] CFLAGS and implicit rules
W. Borgert
debacle@debian.org
Sat, 10 Apr 2004 10:17:33 +0000
On Fri, Apr 09, 2004 at 11:46:04PM -0400, Colin Walters wrote:
> On Fri, 2004-04-09 at 19:08, W. Borgert wrote:
> > Too bad. Unfortunately, this approach fits even worse with
> > the make system I have to use ("Continuus").
>
> Sounds scary :) By the way, the GNU make manual has a section
> "Features" that talks about the extensions supported in GNU Make. So
> take away all of those and what's left is a make subset that's likely to
> work everywhere. Just to highlight some things CDBS uses heavily that
> would have to be removed in a version that targets pmake:
>
> * Including other makefiles (we use this a little ;))
Might not be POSIX, but a lot of make variants to support
it. '-include' (include, if file is present, otherwise
ignore) is only in GNU make, AFAIK.
> * Pattern rules with % (i.e. basically all of buildcore.mk)
This seems to be very GNUish.
> * Conditional execution
That's really difficult, because nearly every make variant
has it - but always with a slightly different syntax.
> * Computed variable references
OK, GNU make wins 4:0.
Cheers,
--
W. Borgert <debacle@debian.org>, http://people.debian.org/~debacle/