From ec9d2a38d7fca467d7affe275716a672ee03f4bb Mon Sep 17 00:00:00 2001 From: Filippo Giunchedi Date: Thu, 16 Feb 2017 09:20:20 +0100 Subject: [PATCH] Introduce Makefile to update examples Repetition is used because a pattern matching rule won't work. The gnuplot scripts in examples/ depend on palettes in each of sequential/diverging/qualitative directories, this dependency can't be expressed as a single pattern-matching rule e.g. like examples/%.png : examples/%.plt $(wildcard %/*.plt) --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a4ea55a --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +all: examples/sequential.png examples/diverging.png examples/qualitative.png + +examples/sequential.png: examples/sequential.plt $(wildcard sequential/*.plt) + (cd examples && gnuplot $(notdir $<)) + +examples/diverging.png: examples/diverging.plt $(wildcard diverging/*.plt) + (cd examples && gnuplot $(notdir $<)) + +examples/qualitative.png: examples/qualitative.plt $(wildcard qualitative/*.plt) + (cd examples && gnuplot $(notdir $<))