From 949926e94f9752823800457dc43bd7f7d114b13e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 13 Sep 2012 01:13:42 -0400 Subject: check for .git before setting up $PV This avoids ugly warnings during `make install`. Signed-off-by: Mike Frysinger --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 15e6e74..a36fa1f 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ install: $(INSTALL_EXEC) crossdev $(DESTDIR)/$(PREFIX)/bin/ $(MAKE) -C wrappers install -PV = $(shell date --date="`git log -1 --format=%ci`" +%Y%m%d) +PV = $(shell test -e .git && date --date="`git log -1 --format=%ci`" +%Y%m%d) P = crossdev-$(PV) COMP = xz dist: -- cgit v1.2.3-65-gdbad