bug-make
[Top][All Lists]
Advanced

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

Match-Anything rule


From: Michal Svec
Subject: Match-Anything rule
Date: Mon, 18 Dec 2000 13:43:16 +0100 (MET)

Hello!

I want to ask about match-anything rule.

If some file doesn't exist, I want to copy it from some location,
something like this:

file: /some/path/file
        cp $< $@

If I use the maching-any rule:

% : /some/path/%
        cp $< $@

It is OK, but if I want to expand a file with a dir, it is not correctly
expanded, instead of: 
  foo/file: /some/path/foo/file
It expands to
  foo/file: /foo/some/path/file

Any comments? Is this a bug or a feature?

Regards
Michal Svec




reply via email to

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