From d8c6bb56afa0048c38eb225ad0bf92cc7103afd3 Mon Sep 17 00:00:00 2001 From: Geoffroy Vallee Date: Fri, 5 Feb 2021 16:47:41 -0500 Subject: [PATCH] Fix #81: check for gnuplot --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 512d2266..c1e1f056 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ all: libraries examples tools tests doc -.PHONY: libraries alltoallv alltoall examples tools check tests +.PHONY: libraries alltoallv alltoall examples tools check tests check_gnuplot alltoallv: cd src && make alltoallv @@ -20,6 +20,16 @@ libraries: examples: libraries cd examples && make +GNUPLOTCMD := $(shell command -v gnuplot 2>/dev/null) +ifndef GNUPLOTCMD +check_gnuplot: + @echo "gnuplot is not installed; please install" + @exit 1 +else +check_gnuplot: + @echo "gnuplot available: ${GNUPLOTCMD}" +endif + GOCMD := $(shell command -v go 2>/dev/null) ifndef GOCMD tools: @@ -46,6 +56,6 @@ clean: cd tests && make clean cd doc && make clean -validate: clean all +validate: clean check_gnuplot all # postmortem validates both the profiler's capabilities and postmortem analysis cd tools/cmd/validate; ./validate -postmortem