From 7754a9b2bfdea294852b6eb2b40ba0c628083247 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 7 May 2009 18:52:08 +0000 Subject: Makefile: check for .git dir before set version from git describe --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 894a9fa..278ff82 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ CONF_FILES := mkinitfs.conf \ SCRIPTS := $(SBIN_FILES) initramfs-init IN_FILES := $(addsuffix .in,$(SCRIPTS)) -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