ID photo of Ciro Santilli taken in 2013 right eyeCiro Santilli OurBigBook logoOurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
freefem/Makefile
.POSIX:

CCC ?= gnuplot -e 'set terminal gif animate delay 10' \
  -e 'set output "$@"' \
  -e 'f = "$(patsubst %$(OUT_EXT),%$(DATA_EXT),$@)"'
DATA_EXT ?= $(IN_EXT).dat
IN_EXT ?= .freefem
OUT_EXT ?= .gif
PLOT_EXT ?= .gnuplot

BASENAMES_NOEXT = $(patsubst %$(IN_EXT), %, $(wildcard *$(IN_EXT)))
OUTS := $(addsuffix $(OUT_EXT), $(BASENAMES_NOEXT))
DATAS := $(addsuffix $(DATA_EXT), $(BASENAMES_NOEXT))

.PRECIOUS: $(DATAS)

.PHONY: all clean

all: $(OUTS)

%.1d$(OUT_EXT): 1d$(PLOT_EXT) %.1d$(DATA_EXT)
	$(CCC) '$<'

%.2d$(OUT_EXT): 2d$(PLOT_EXT) %.2d$(DATA_EXT)
	$(CCC) '$<'

%$(DATA_EXT): %$(IN_EXT)
	PATH="$${PATH}:$${CIROSANTILLI_FREEFEM_BIN_DIR}" FreeFem++ '$<'

clean:
	rm -f *'$(DATA_EXT)' *'$(OUT_EXT)'