Paul Smith schrieb:
On Sun, 2009-01-18 at 13:20 +0100, Georg-Johann Lay wrote:
In a make process I have to get verbatim copies (VPATH and vpath will
not work) from files in, say, $(FILES), which are located in $(DIR).
DIR is one directory and FILES is a list of plain file names with no
path prefixes.
So the rules to get the files should look like this:
foo1.a: $(DIR)/foo1.a
cp $^ .
foo2.b: $(DIR)/foo2.b
cp $^ .
Can you just use static pattern rules?
$(FILES): % : $(DIR)/%
cp $< $@
Ah, yes. That works fine as far as I can see.
Thank you!
Regards,
Georg-Johann
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make