# Last edited on 2011-03-23 03:03:39 by stolfi

UPLOTS := un1 un2 un3

DATA_FILE := data.txt
BOOM_FILE := boom.txt
HEAT_FILE := heat.txt

FULL_UPLOT_FILES := ${addprefix plot-,${addsuffix -full.png,${UPLOTS}}}
ICON_UPLOT_FILES := ${addprefix plot-,${addsuffix -icon.png,${UPLOTS}}}

all: \
  ${FULL_UPLOT_FILES} ${ICON_UPLOT_FILES}

# ----------------------------------------------------------------------
# Reactor plots:

plot-un%-full.png: ${DATA_FILE} ${BOOM_FILE} ${HEAT_FILE} plot-reactor.sh 
	plot-reactor.sh $*

# ----------------------------------------------------------------------
# Icons:
        
plot-%-icon.png: plot-%-full.png
	convert plot-$*-full.png -resize 'x200' plot-$*-icon.png
	-display plot-$*-icon.png