|
From: | Leeuwesteijn,Joost |
Subject: | RE: .PHONY, FORCE, target execution |
Date: | Wed, 3 May 2006 15:50:38 +0200 |
> 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 : address@hidden 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
[Prev in Thread] | Current Thread | [Next in Thread] |