aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-09-13 01:13:42 -0400
committerMike Frysinger <vapier@gentoo.org>2012-09-13 01:13:42 -0400
commit949926e94f9752823800457dc43bd7f7d114b13e (patch)
tree8190c124a32a955f2cb08fdd3b473880ee415759 /Makefile
parentcrossdev: handle aarch64 (diff)
downloadcrossdev-949926e94f9752823800457dc43bd7f7d114b13e.tar.gz
crossdev-949926e94f9752823800457dc43bd7f7d114b13e.tar.bz2
crossdev-949926e94f9752823800457dc43bd7f7d114b13e.zip
check for .git before setting up $PV
This avoids ugly warnings during `make install`. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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: