# Last edited on 2020-11-08 18:46:10 by jstolfi SHELL := /bin/bash MAIN := main SHOW := "YES" all: clean poster-plain a4-tiny: ; ${MAKE} WIDTH=048 HEIGHT=068 NRAYS=1 IMGNAME=a4 image a4-small: ; ${MAKE} WIDTH=096 HEIGHT=136 NRAYS=1 IMGNAME=a4 image a4-plain: ; ${MAKE} WIDTH=192 HEIGHT=272 NRAYS=1 IMGNAME=a4 image a4-big: ; ${MAKE} WIDTH=384 HEIGHT=544 NRAYS=1 IMGNAME=a4 image poster-tiny: ; ${MAKE} WIDTH=050 HEIGHT=075 NRAYS=1 IMGNAME=poster image poster-small: ; ${MAKE} WIDTH=100 HEIGHT=150 NRAYS=1 IMGNAME=poster image poster-plain: ; ${MAKE} WIDTH=400 HEIGHT=600 NRAYS=1 IMGNAME=poster image poster-big: ; ${MAKE} WIDTH=800 HEIGHT=1200 NRAYS=1 IMGNAME=poster image square-tiny: ; ${MAKE} WIDTH=075 HEIGHT=075 NRAYS=1 IMGNAME=square image square-small: ; ${MAKE} WIDTH=150 HEIGHT=150 NRAYS=1 IMGNAME=square image square-plain: ; ${MAKE} WIDTH=300 HEIGHT=300 NRAYS=1 IMGNAME=square image square-big: ; ${MAKE} WIDTH=600 HEIGHT=600 NRAYS=1 IMGNAME=square image wide-tiny: ; ${MAKE} WIDTH=100 HEIGHT=050 NRAYS=1 IMGNAME=wide image wide-small: ; ${MAKE} WIDTH=200 HEIGHT=100 NRAYS=1 IMGNAME=wide image wide-plain: ; ${MAKE} WIDTH=400 HEIGHT=200 NRAYS=1 IMGNAME=wide image wide-big: ; ${MAKE} WIDTH=800 HEIGHT=400 NRAYS=1 IMGNAME=wide image xwide-tiny: ; ${MAKE} WIDTH=100 HEIGHT=025 NRAYS=1 IMGNAME=xwide image xwide-small: ; ${MAKE} WIDTH=200 HEIGHT=050 NRAYS=1 IMGNAME=xwide image xwide-plain: ; ${MAKE} WIDTH=400 HEIGHT=100 NRAYS=1 IMGNAME=xwide image xwide-big: ; ${MAKE} WIDTH=800 HEIGHT=200 NRAYS=1 IMGNAME=xwide image zoom-tiny: ; ${MAKE} WIDTH=075 HEIGHT=050 NRAYS=1 IMGNAME=zoom image zoom-small: ; ${MAKE} WIDTH=150 HEIGHT=100 NRAYS=1 IMGNAME=zoom image zoom-plain: ; ${MAKE} WIDTH=300 HEIGHT=200 NRAYS=1 IMGNAME=zoom image zoom-big: ; ${MAKE} WIDTH=600 HEIGHT=400 NRAYS=1 IMGNAME=zoom image #======================================================================= # Recursive Make section: ifneq "/${MAIN}" "/" ifneq "/${IMGNAME}" "/" ifneq "/${NRAYS}" "/" ifneq "/${WIDTH}" "/" ifneq "/${HEIGHT}" "/" # POV-Ray installation directories: POVRAY := /usr/bin/povray POVINC := /usr/share/povray-3.7/include/ POVTTF := ../tools/tt-fonts PNGFILE := out/${IMGNAME}.png IMGVIEW := display -title '%f' -resize '>700x1200' image: clean-image ${PNGFILE} ${PNGFILE}: ${MAIN}.pov ${wildcard *.inc img-*.png} -/bin/rm -f scene-placement.inc; ln -s ${IMGNAME}-placement.inc scene-placement.inc export PATH="../tools:$${PATH}" ; \ ${POVRAY} +K0.5000 \ +FN +Q9 \ +W${WIDTH} +H${HEIGHT} \ +AM1 +A0.0 +R${NRAYS} \ +D \ +L${POVINC} \ +L${POVTTF} \ +I${MAIN}.pov \ +O${PNGFILE} \ 2>&1 | povray-output-filter.gawk if [[ "/${SHOW}" == "/YES" ]]; then \ if [[ -s ${PNGFILE} ]]; then \ ${IMGVIEW} ${PNGFILE} ; \ fi \ fi clean-image: rm -f ${PNGFILE} endif endif endif endif endif #=======================================================================