[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'Generic' pattern rules
From: |
marc |
Subject: |
'Generic' pattern rules |
Date: |
Thu, 25 Aug 2011 10:30:14 +0200 |
User-agent: |
Roundcube Webmail/0.5.1 |
Hello,
Is it possible to write 'generic' pattern rules? For instance:
----BEGIN----
%.bar: %.foo
cat $< >$@
file.bar: file.foo
file2.bar:
anotherfile.bar: file.foo
----END----
'file.bar' will be built thanks to the pattern rule.
'anotherfile.bar' will not be built because the pattern rule does not
match (i.e. anotherfile.foo is expected as prerequisite for the pattern
rule to be matched).
Is there a way to specify pattern rules that tell "here is how to build
a *.bar file given any *.foo file"?
Regards,
--
Marc
- 'Generic' pattern rules,
marc <=