summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-11-17 14:38:02 +0100
committerTimo Weingärtner <timo@tiwe.de>2013-11-17 14:47:12 +0100
commit3c42fb81eb2cc9e658afc2156afa5d62880f3c7e (patch)
tree1d7eccf9af5d13a59d4de940965899ae17f58685
parent2d2195cf1caaac1c5a3b081fc1a49d1f7c12bc96 (diff)
downloadhadori-3c42fb81eb2cc9e658afc2156afa5d62880f3c7e.tar.gz
Makefile: reset version.h on clean when in git
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e36a97f..e8f40f6 100644
--- a/Makefile
+++ b/Makefile
@@ -33,5 +33,6 @@ version.h:
clean:
rm -f hadori hadori.o hadori.1
+ test ! -d .git || git checkout -f -- version.h
.PHONY: version.h clean