diff options
author | Timo Weingärtner <timo@tiwe.de> | 2012-02-26 16:03:06 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2012-02-26 16:03:06 +0100 |
commit | 8079e98267742de01442f0294d41085e6af2353a (patch) | |
tree | b3e7c71394621dc0e7f29e2044eab1b0e0a2ba18 | |
parent | 27b8fc1395bece0dc309512a3790a4892e0d29b1 (diff) | |
download | hadori-8079e98267742de01442f0294d41085e6af2353a.tar.gz |
Fix version.h generation for non-git
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |