I have a series of these sort of definitions:

dir/file1: $(DIR)/file1
     cmd1
     cmd2

dir/file2: $(DIR)/file2
     cmd1
     cmd2

dir/file3: $(DIR)/file3
     cmd1
     cmd2

...and so on... what I'd REALLY like is something where I could say
something like:

XDEF: dir/$(FILE): $(DIR)/$(FILE)
     cmd1
     cmd2

file1 file2 file3: XDEF

In other words, define the commands to execute ONCE, then use a list
of the files as the target.

Here's what I want to do:

GIVEN:
list of files to copy from source binaries (filename only)
source binary directory
destination binary directory

RESULT:
mkdir -p $(DESTDIR)
cp -af $(SRCDIR)/$(FILE) $(DESTDIR)

Is there a way to do this without repeating EVERY file target +
prerequisite?

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to