that's more or less what I am currently using. but in this case he rebuilds
ALL pdf files if only one png changes


Oleksandr Gavenko-2 wrote:
> 
> On 26.01.2011 9:20, ulugutz wrote:
>>
>> Hi,
>>
>> how can you for example do this
>> ------------------------------------
>> PICS=%.pdf
>>
>> all: PICS
>> PICS: $(@:pdf=.png)
>>          do something
>> ------------------------------------
>> i would really appreciate your help and sorry if it has been posted
>> already
>> but I only checked the newest pages of the forum
>>
> Why not use:
> 
> PNG_FILES := $(wildcard *.png)
> PDF_FILES := $(PNG_FILES:.png=.pdf)
> 
> all: $(PDF_FILES)
> 
> %.pdf: %.png
>       png2pdf -o $@ $*.png
> 
> or last rule can be rewritten as:
> 
> $(PDF_FILES): %.pdf: %.png
>       png2pdf -o $@ $*.png
> 
> -- 
> С уважением, Александр Гавенко.
> 
> _______________________________________________
> Help-make mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-make
> 
> 

-- 
View this message in context: 
http://old.nabble.com/target-variable-%28%24%40%29-as-prerequisite-tp30764986p30765647.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to