[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: target variable ($@) as prerequisite
From: |
ulugutz |
Subject: |
Re: target variable ($@) as prerequisite |
Date: |
Wed, 26 Jan 2011 01:46:36 -0800 (PST) |
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
> address@hidden
> 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.
- target variable ($@) as prerequisite, ulugutz, 2011/01/26
- Re: target variable ($@) as prerequisite, Oleksandr Gavenko, 2011/01/26
- Re: target variable ($@) as prerequisite,
ulugutz <=
- Re: target variable ($@) as prerequisite, Oleksandr Gavenko, 2011/01/26
- Re: target variable ($@) as prerequisite, ulugutz, 2011/01/27
- Re: target variable ($@) as prerequisite, Oleksandr Gavenko, 2011/01/27
- Re: target variable ($@) as prerequisite, ulugutz, 2011/01/27
- Re: target variable ($@) as prerequisite, Oleksandr Gavenko, 2011/01/27
- Re: target variable ($@) as prerequisite, ulugutz, 2011/01/29
- [fixed] Re: target variable ($@) as prerequisite, ulugutz, 2011/01/30