Hi,
I have a list of files in directory A
A/foo.c A/bar.c
I need a role that make a link (cp -l) in directory B
-------------------------
src-files := A/foo.c A/bar.c
dst-files := B/foo.c B/bar.c
all: $(dst-files)
$(dst-files) : $(src-files)
mkdir -p $(dir $@)
cp -l $< $@
-------------------------
The result is
cp -l A/foo.c B/foo.c
cp -l A/foo.c B/bar.c <-- Wrong!!!
I would hope to get this result
cp -l A/foo.c B/foo.c
cp -l A/bar.c B/bar.c
/Thanks
Pelle
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make