From 754202daeab6bd22116aa3a430ba0c3477c4146d Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Wed, 9 Mar 2016 18:01:05 +0100 Subject: [PATCH] Makefile: fall-back to 'unknown-version' when 'git describe' fails --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d55c3fc..7563982 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,8 @@ ifndef BASH_PATH endif BASH_PATH_SQ = $(subst ','\'',$(BASH_PATH)) -GIT_LATEXDIFF_VERSION=${shell git describe --tags HEAD} +GIT_LATEXDIFF_VERSION=${shell git describe --tags HEAD 2>/dev/null || \ + echo unknown-version} gitexecdir_SQ = $(subst ','\'',$(gitexecdir)) gitmanpath_SQ = $(subst ','\'',$(gitmanpath))