For the record, here is what I managed to do: vpath %.suf3 $(SUF3PATH)
define generate
$(1)/%.suf1: $(1)/%.suf2 %.suf3
DIR=$(1) cmd $(SUF3PATH)/$$*.suf3 $$< > $$@
endef
$(foreach VAR,$(DIRS),$(eval $(call generate,$(VAR))))
Where DIRS is defined as the list of target dirs
Thanks for your idea.
Christophe.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
