# Makefile para processar as entregas do exercício tp02 de POV-Ray # Last edited on 2008-02-04 13:10:39 by stolfi WIDTH = 480 HEIGHT = 640 NRAYS = 2 OTHERINPUTS = # No need to change below here NAME = main ICONNAME = icon POVRAY = ${STOLFIHOME}/pkg/povray-3.1a-1/PUB/intel-Linux/bin/x-povray POVINC = ${STOLFIHOME}/pkg/povray-3.1a-1/PUB/intel-Linux/povinc POVTTF = ${STOLFIHOME}/PUB/povray/tt-fonts IMVIEW = /usr/X11R6/bin/display CONVERT = /usr/X11R6/bin/convert .PHONY: all cleanup image showimage all: image showimage cleanup: -/bin/rm -f ${NAME}.png ${NAME}.gif # Used both by recursive "make movie" and "make still": image: ${NAME}.gif showimage: ${NAME}.gif -${IMVIEW} ${NAME}.gif ${NAME}.gif: ${NAME}.png -/bin/rm -f ${NAME}.gif ${CONVERT} ${NAME}.png ${NAME}.gif ${NAME}.png: ${NAME}.pov ${OTHERINPUTS} -/bin/rm -f ${NAME}.png nice ${POVRAY} +A0 +FN +Q9 +R${NRAYS} \ +W${WIDTH} +H${HEIGHT} \ +D +SP32 +EP4 \ +L$${HOME}/lib/povray +L${POVINC} +L${POVTTF} \ +I${NAME}.pov \ +O${NAME}.png \ 3>&2 > ${NAME}.log ${ICONNAME}.gif: ${NAME}.gif cat ${NAME}.gif \ | giftopnm \ | pnmscale -ysize 60 \ | pnmdepth 255 \ | ppmquant 254 \ | ppmtogif > ${ICONNAME}.gif