# Last edited on 2008-02-04 13:01:58 by stolfi # Creates "eps" drawings of all filtered versions of an outline, # to illustrate the multiscale filtering process. DATASET = ceramic-3 FRAG = 0089 BANDS = 000 001 002 004 008 016 032 064 .PHONY: all clean single clean: /bin/rm -f ${FRAG}-f*.eps # The /l/sdb version only works on "amelia". The /home/amelia version # has been giving bogus "no such file" errors to FileRd.Open(). DATADIR = /l/sdb/staff/stolfi/hcgl/tests-for-export/${DATASET} # DATADIR = /home/amelia/stolfi/hcgl/tests-for-export/${DATASET} PROGDIR = ${STOLFIHOME}/programs/pm3-1.1.15/THESES/hcgl/1/bin/${PLATFORM} SETPATH = PATH=".:${PROGDIR}:$$PATH"; export PATH all: for band in ${BANDS}; do \ ${MAKE} BAND=$$band single; \ done # ====================================================================== # For recursive "make" only -- caller must define ${BAND} BAND := BAND.IS.UNDEFINED ifneq "${BAND}" "BAND.IS.UNDEFINED" EPSNAME = ${FRAG}-f${BAND} FLCNAME = ${DATADIR}/data/multiscale/${FRAG}/f${BAND} single: ${EPSNAME}.eps OPTS := OPTS := ${OPTS} -plotStep 0 OPTS := ${OPTS} -window -178 178 -238 297 -actualSize 48 72 # OPTS := ${OPTS} -grid 59.05 # OPTS := ${OPTS} -scaleBar 1 -scaleBarStep 59.05 OPTS := ${OPTS} -scaleBar 5 -scaleBarStep 11.81 # OPTS := ${OPTS} -label 0 0 14 ${shell echo ${FRAG} | sed -e 's/^0*//g'} DOTOPTS := ${shell if [ ${BAND} -ge 064 ]; then echo '-sampleDots'; fi} ${EPSNAME}.eps: ${FLCNAME}.flc @echo "${FLCNAME}.flc -> ${EPSNAME}.eps" ${SETPATH}; nice PZDraw \ -output ${EPSNAME} \ ${OPTS} ${DOTOPTS} \ -epsFormat \ < ${FLCNAME}.flc ghostview ${EPSNAME}.eps endif # End of "single" part. # ======================================================================