From 98374443309b47b6393afcc46ef39e3800064e5e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 5 Mar 2021 21:11:35 -0800 Subject: Makefile: exit smoothly if no prior benchmark files found. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b357463be..420053b74 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ SOURCEFILES?=$(shell git ls-tree -r master --name-only | grep "\.hs$$") BRANCH?=master COMMIT=$(shell git rev-parse --short HEAD) TIMESTAMP=$(shell date "+%Y%m%d_%H%M") -LATESTBENCH=$(word 1,$(shell ls -t bench_*.csv)) +LATESTBENCH=$(word 1,$(shell ls -t bench_*.csv || exit 0)) ifeq ($(LATESTBENCH),) BASELINE= else -- cgit v1.2.3