Joerg Schilling wrote:
> 2) POSIX defines a way to forward command line macro=name
> macro definitions to sub-make programs (make programs
> called by the current make program) since at least 10
> years.
>
> GNU Make implements this feature since about 15 years and
> smake implements this feature since 10 years.
>
> When whill Sun make implement this feature?
>
> Most reasons to patch makefiles from OSS packages will go
> away in case that command line macro=name definitions
> are forwarded to sub-makes. You just need to overwrite the
> values from the top level ake command line.
>
> J?rg
>
I'm not familiar with this feature. I'm also not familiar with
feature of GNU make. I use a mechanism like this
to achieve the same result in Sun make Makefiles.
In my Makefiles I do this:
ENVPARMS=\
CC=$(CC) \
LINT=$(LINT) \
...
targ:
$(MAKE) $(ENVPARMS) ...
Of course, you still need to get the ENVPARMS setting into
all the Makefiles without using ENVPARMS...
Is there a POSIX mechanism that's more "automatic" than this?