04-30-04 01:34 PM
Olivier Scalbert <olivier.scalbert@algosyn.com> writes:
> Hello,
>
> I need to convert a set of svg files located in the 'svg' directory in
> a set of png files located in the 'png' directory.
> Suppose the conversion tool is called 'conv', I need to do:
> conv svg/image0001.svg png/image0001.png
> conv svg/image0002.svg png/image0002.png
> conv svg/image0003.svg png/image0003.png
> ...
>
> How can I automate this with a makefile, in such way that if a svg is
> changed then only the corresponding png is regenerated ?
> I am using gnu make.
%.png: %.svg
conv $^ $@
That's a tab on the second line.
--
Måns Rullgård
mru@kth.se
[ Post a follow-up to this message ]
|