From 7588774efb459532911252f9da553ac1ae36bdbf Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 23 Jun 2019 06:57:40 +0900 Subject: [PATCH] Fix building without git available (#554) The current code requires git even if there is not .git directory. Switch to piping the output of git directly to the version file, which makes sure that it is not called during if evaluation. Report and patch thanks to Sebastian Graf (sgraf812) --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 5c6d3e1c..95cc877d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -141,7 +141,7 @@ endif version: if [ -f .git/HEAD ] ; then \ - echo $(shell git describe --tags) > version ; \ + git describe --tags > version ; \ else \ echo $(version) > version ; \ fi