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