build: Tolerate building from a git checkout, but with git not installed.
[secnet] / Makefile.in
index 406efde..c9e247a 100644 (file)
@@ -20,7 +20,7 @@
 .PHONY:        all clean realclean distclean dist install
 
 PACKAGE:=secnet
-VERSION:=0.4.0
+VERSION:=0.4.1
 
 @SET_MAKE@
 
@@ -148,7 +148,7 @@ check: eax-aes-test.confirm eax-serpent-test.confirm \
 
 version.c: Makefile
        echo "#include \"secnet.h\"" >$@.new
-       @set -ex; if test -e .git; then \
+       @set -ex; if test -e .git && type -p git >/dev/null; then \
                v=$$(git describe --match 'v*'); v=$${v#v}; \
                if ! git diff --quiet HEAD; then v="$$v+"; fi; \
        else \