From 55dbfb5af4965fbb7570228fb3e70cae69169599 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 7 May 2009 18:44:36 +0000 Subject: check for .git dir before set version from git describe --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c4ec277..b4bbc73 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ ETC_LBU_FILES := lbu.conf EXTRA_DIST := Makefile README DIST_FILES := $(SCRIPT_SOURCES) $(ETC_LBU_FILES) $(EXTRA_DIST) -GIT_REV := $(shell git describe || echo exported) +GIT_REV := $(shell test -d .git && git describe || echo exported) ifneq ($(GIT_REV), exported) FULL_VERSION := $(patsubst $(PACKAGE)-%,%,$(GIT_REV)) FULL_VERSION := $(patsubst v%,%,$(FULL_VERSION)) -- cgit v1.2.3