"Rahul" wrote in message
<web.47d1f48ba2f2860c59eba08c0@news.povray.org>:
> foreach coordinate_file
> parse coordinate_file into frontview.pov
> povray call to produce frontview.ppm
> parse coordinate_file into topview.pov
> povray call to produce topview.ppm
> montage call to combine frontview.ppm and topview.ppm -> image.jpeg
With GNU-make-isms, you can do that with something like (untested):
%-front.pov: %.coords
coords2front $< > $@
%-top.pov: %.coords
coords2top $< > $@
%.pgm: %.pov:
povray +I$<
%.jpg: %-front.pgm %-top.pgm
montage ... $^ $@
Then "make -j 4 pretty.jpg ugly.jpg" should do the necessary work to build
two images using up to 4 processes in parallel.
Post a reply to this message
|