# Last edited on 2009-02-11 22:51:44 by stolfi # Make a Postscript file that prints a gray reflectance scale. # Last edited on 2009-02-11 21:08:22 by stolfi PROG := make-pbm-gray-scale PROGDIR := .. TESTS := \ 1024:1024 \ .PHONY: all single all: for t in ${TESTS}; do \ ${MAKE} TEST="$$t" single ; \ done ######################################################################## # Section for recursive "make single" -- client must define ${TEST} ifneq "/${TEST}" "/" FIELDS := ${subst :, ,${TEST}} NH := ${word 1, ${FIELDS}} NV := ${word 2, ${FIELDS}} OUTFILE := out/${NH}x${NV}.pbm single: ${PROGDIR}/${PROG} ${PROGDIR}/${PROG} \ -size ${NH} ${NV} \ > ${OUTFILE} display -filter box -resize '200%' ${OUTFILE} endif # End ${TEST} section. ########################################################################