aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-03-05 21:11:35 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-03-05 21:11:35 -0800
commit98374443309b47b6393afcc46ef39e3800064e5e (patch)
tree4a2a8a10b157d8bc5a6b9f49e16ee53000bd723e
parent5c4eb7246b068deac1a9eac397094098f68ab048 (diff)
downloadpandoc-98374443309b47b6393afcc46ef39e3800064e5e.tar.gz
Makefile: exit smoothly if no prior benchmark files found.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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