Re: Recommended Method for adding recursive targets

2011-08-19 Thread Stefano Lattarini
Hi Daniel. Just a quick answer, as I'm in a hurry ... On Friday 19 August 2011, Daniel Neuberger wrote: > I'm seen a couple of recommendations on this, but no consensus. > Currently to make sometarget recursive, I add the following above the > target: > > sometarget-%: > $(MAKE) -C $* so

Recommended Method for adding recursive targets

2011-08-19 Thread Daniel Neuberger
I'm seen a couple of recommendations on this, but no consensus. Currently to make sometarget recursive, I add the following above the target: sometarget-%: $(MAKE) -C $* sometarget sometarget: $(foreach dir, $(SUBDIRS), sometarget-$(dir)) Suggestions for improvement? Thanks! - Daniel