> If you need the banner to be printed before anything in the 
> moduleX tree is run then you can just use a pattern rule:
> 
>      .PHONY : all
>      all : module1 module2
> 
>      .PHONY : module1 do_module1
>      module1 : MODULENAME:=module1
>      module1 : [EMAIL PROTECTED] do_module1
> 
>      %.banner:
>          @echo "BANNER --- $(MODULENAME) --- BANNER"

When I tried this I didn't even know about .SECONDEXPANSION. Don't you need
that to run this example? Why did the $$@ expand correctly in this case?
.SECONDEXPAND is not default as far as I could tell, or is it?

--
Joost Leeuwesteijn


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to