[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need Help Writing a Rule
From: |
Stepan Kasal |
Subject: |
Re: Need Help Writing a Rule |
Date: |
Wed, 28 May 2008 14:56:11 +0200 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
Hello,
On Sun, May 25, 2008 at 07:49:51PM -0700, Bobby Dill wrote:
> %.cpp: %.png
> uic -embed colortool $? -o $@
>
> image_collection.cpp: images/designer_widgetstack.png \
> images/designer_d_table.png \
> images/designer_d_iconview.png
well, this is more aquestion about make itself, not automake.
The second rule is a rule without any command and it's presence means
the pattern rule is not used.
The pattern rule expresses that the cpp file is to be created from
.png file with the same base file name. This does not seem to be
what you meant.
The following might be a solution:
image_collection.cpp: images/designer_widgetstack.png \
images/designer_d_table.png \
images/designer_d_iconview.png
uic -embed colortool $? -o $@
(The last line has to start with <TAB>.)
HTH,
Stepan