From 268ae2841b4506e81512758177aedea1f9e74fa7 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 13 Jun 2013 11:58:00 +0200 Subject: Makefile: pipe git describe errors to /dev/null --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9e3ebc76..846c5db7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ RELEASEDVERSION = -- will be replaced by "make dist" -- -VERSION = $(shell [ -d .git ] && git describe --abbrev=0 --tags || echo $(RELEASEDVERSION)) -GITVERSION = $(shell [ -d .git ] && { v=$$(git describe --tags); echo -$${v\#*-}; } ) +VERSION = $(shell [ -d .git ] && git describe --abbrev=0 --tags 2>/dev/null || echo $(RELEASEDVERSION)) +GITVERSION = $(shell [ -d .git ] && { v=$$(git describe --tags 2>/dev/null); echo -$${v\#*-}; } ) -include Makefile.inc -- cgit v1.2.3