Skip to content

Commit

Permalink
Fix #81: check for gnuplot
Browse files Browse the repository at this point in the history
  • Loading branch information
gvallee committed Feb 5, 2021
1 parent fa87d2f commit d8c6bb5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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

0 comments on commit d8c6bb5

Please sign in to comment.