Quiet warnings when building in a non-git directory.
authorH. Peter Anvin <hpa@zytor.com>
Mon, 29 Jan 2007 01:48:13 +0000 (17:48 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 29 Jan 2007 01:48:13 +0000 (17:48 -0800)
Makefile.private

index 9f822b2..63a3bbd 100644 (file)
@@ -1,6 +1,6 @@
 ## -*- makefile -*- ------------------------------------------------------
 ##
-##   Copyright 2000-2006 H. Peter Anvin - All Rights Reserved
+##   Copyright 2000-2007 H. Peter Anvin - All Rights Reserved
 ##
 ##   This program is free software; you can redistribute it and/or modify
 ##   it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 PRIVATE = Makefile.private .depend */.depend
 
 GIT_DIR ?= .git
-ABS_GIT_DIR := $(shell cd '$(GIT_DIR)' && pwd)
+ABS_GIT_DIR := $(shell cd '$(GIT_DIR)' 2>/dev/null && pwd)
 
 -include release/Makefile.secret