[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help needed writing a rules.
From: |
Pelle Svensson |
Subject: |
Help needed writing a rules. |
Date: |
Mon, 8 Jan 2007 14:37:11 +0100 |
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 needed writing a rules.,
Pelle Svensson <=