$OpenBSD: patch-libclamav_Makefile_in,v 1.22 2014/05/08 08:18:51 sthen Exp $
--- libclamav/Makefile.in.orig	Tue May  6 19:59:44 2014
+++ libclamav/Makefile.in	Thu May  8 00:45:57 2014
@@ -3339,6 +3339,9 @@ version.h: version.h.tmp
 	fi
 
 version.h.tmp:
+	touch version.h.tmp
+
+NOT-version.h.tmp:
 	$(AM_V_GEN) test -f version.h || touch version.h;\
 	rm -f $@;\
 	REVISION="$$(LANG=C cd "$(top_srcdir)"; git describe --always 2>/dev/null || echo "exported")";\
