[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
multiple wildcards in a static pattern rule
From: |
Ram Bhamidipaty |
Subject: |
multiple wildcards in a static pattern rule |
Date: |
Thu, 30 Oct 2003 11:56:47 -0800 |
I have a series of rules like this in my Makefile:
$(ROOT)etc/dir1/%: $(ROOT)etc/dir1/%: %
cp $< $@
chmod 644 $@
$(ROOT)etc/dir2/%: $(ROOT)etc/dir2/%: %
cp $< $@
chmod 644 $@
...
$(ROOT)etc/dirN/%: $(ROOT)etc/dirN/%: %
cp $< $@
chmod 644 $@
Is there a way to write all of these static pattern rules with one rule?
When I did a google search on this I saw that there was a patch submitted
for that back in 1997, but there is no documentation in the make manuals
that suggests that this feature has been incorporated into gnu make.
Thanks for any info?
-Ram
- multiple wildcards in a static pattern rule,
Ram Bhamidipaty <=