help-make
[Top][All Lists]
Advanced

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

Re: Pattern rules with directories


From: Christophe LYON
Subject: Re: Pattern rules with directories
Date: Thu, 23 Apr 2009 10:26:18 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090302)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]