aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-07-19 21:29:25 +0200
committerTimo Weingärtner <timo@tiwe.de>2013-07-19 21:37:44 +0200
commit6bc571e8e273f2c1efd12f83f43bb56f07242d32 (patch)
tree6548749fa887663070d53729af201d29b33d04af /Makefile
parent1b8707339da5b8d7fb976b49488b2752415850ae (diff)
downloadssh-agent-filter-6bc571e8e273f2c1efd12f83f43bb56f07242d32.tar.gz
Makefile: reset version.h on clean when in git
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7e82b15..72c08fe 100644
--- a/Makefile
+++ b/Makefile
@@ -38,5 +38,6 @@ version.h:
clean:
$(RM) *.1 ssh-agent-filter *.o
+ test ! -d .git || git checkout -f -- version.h
.PHONY: version.h