a Make question

Jeffrey W Percival jwp at uwmacc.UUCP
Mon Oct 28 11:20:34 AEST 1985


Here's a simple makefile:

	DIRS = d1 d2 d3 d4 d5
	depend: ; (for dir in $(DIRS); do (cd $dir; make depend); done)

The problem with this is that 'make' is interpreting the $d as a null
string, so the 'cd' command sees an argument of "ir".  I tried
escaping the $ preceding dir, to no avail.  Can anybody make the
above loop work, or suggest a better way?  Thanks!

	Jeff
-- 
	Jeff Percival ...!uwvax!uwmacc!jwp



More information about the Comp.unix mailing list