On Fri, 04 Dec 2009 20:13:11 +0100, Mike Frysinger <[email protected]> wrote:
> On Friday 04 December 2009 12:04:06 Jiri Palecek wrote: >> -.PHONY: $(RECURSIVE_TARGETS) $(addprefix trunk-,$(RECURSIVE_TARGETS)) >> +.PHONY: $(RECURSIVE_TARGETS) $(addprefix trunk-,$(RECURSIVE_TARGETS)) >> $(foreach tgt,$(RECURSIVE_TARGETS),$(addprefix >> trunk-subdir-$(tgt)--,$(SUBDIRS))) > > these foreach look like an overly complicated form of $(patsubst): > $(patsubst %,moo_%,$(DIRS)) It may look like it, but they aren't. What you've written is a simple addprefix, while the foreach does some for of cartesian product ($(TARGETS)x$(DIRS)). Jiri Palecek ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
