# Makefile for atomic structure # Last edited on 2023-06-12 20:47:45 by stolfi SHELL := /bin/bash # Runs POV-Ray on file "main.pov" to produce # image "main.png". # Image size: WIDTH := 1000 HEIGHT := 750 # Should images be displayed automatically? SHOW := YES # Should filter error messages (0 or 1): FILTER := 1 # Will cast {NRAYS^2} rays per pixel: NRAYS := 2 # Directories where POV-Ray is installed: POVRAY := /usr/bin/povray POVINC := \ +L/usr/share/povray-3.7/include \ +L../tools/ttf\ +L../tools # ---------------------------------------------------------------------- NAME := main MAIN := main PARMS_FILE := curvsamp_parms.inc all: -/bin/rm -f ${NAME}*.png out/*.png for whole in 0 1; do \ for bis in 0 1 ; do \ echo "=====================================" 1>&2 ; \ /bin/rm -fv ${PARMS_FILE} ${NAME}*.png ; \ echo "#declare whole = $${whole};" >> ${PARMS_FILE} ; \ echo "#declare bis = $${bis};" >> ${PARMS_FILE} ; \ cat ${PARMS_FILE} 1>&2 ; \ ${MAKE} image ; \ mv -vi out/${NAME}.png out/${NAME}-whole$${whole}-bis$${bis}.png ; \ done ; \ done clean:: -/bin/rm -f ${NAME}*.png ${NAME}*.log out/*.png # Input files except "main.pov": OTHERINPUTS := \ Makefile STATIC.make MOVIE.make \ ${wildcard {,../tools/}*.inc ${PARMS_FILE} pic-*.{png,jpg,JPG} } # These are defined with "=" rather than ":=" in order to defer expansion DIRTAIL = ${shell pwd | sed -e 's:^.*/::'} # Full name of POV-ray executable: POVRAY := povray # Command to display resultin image: IMVIEW := display -title '%d/%f' # include MOVIE.make include STATIC.make