tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make: wilcard targets and .PHONY



On Thu, May 16, 2013 at 11:40:25AM -0700, Simon Gerraty wrote:
 > Back in 2000, the callpath through Suff_FindDeps was skipped for .PHONY
 > targets.
 > It turns out though that that is the only place where wildcard targets
 > are expanded.
 > Assuming there is something in ./sub/ the makefile:
 > 
 > .MAIN: all
 > all: subs
 > 
 > SUBS= sub/*
 > subs:        ${SUBS}
 >      @echo yay ${SUBS}
 > 
 > .ifdef PHONY
 > .PHONY: subs
 > .endif
 > 
 > works so long as PHONY isn't defined.

Do you have a model in mind for wildcard expansion in make? (Not just
here, but elsewhere in the language...)

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index