summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2012-02-26 16:03:06 +0100
committerTimo Weingärtner <timo@tiwe.de>2012-02-26 16:03:06 +0100
commit8079e98267742de01442f0294d41085e6af2353a (patch)
treeb3e7c71394621dc0e7f29e2044eab1b0e0a2ba18 /Makefile
parent27b8fc1395bece0dc309512a3790a4892e0d29b1 (diff)
downloadhadori-8079e98267742de01442f0294d41085e6af2353a.tar.gz
Fix version.h generation for non-git
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 546e266..a55a9dd 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ hadori: hadori.o
hadori.o: hadori.C inode.h version.h
version.h:
- test -d .git && git describe | sed 's/^\(.*\)$$/#define HADORI_VERSION "hadori \1"/' > $@
+ test ! -d .git || git describe | sed 's/^\(.*\)$$/#define HADORI_VERSION "hadori \1"/' > $@
clean:
rm -f hadori hadori.o hadori.1