--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,6 +1,8 @@
 #
 # nothing yet
 #
+
+include $(top_srcdir)/misc/Makefile.quiet
 
 BUILT_SOURCES = version.h
 
@@ -9,7 +11,7 @@
 HG_ID:=$(shell "$(srcdir)/cset_id.sh" "$(top_srcdir)")
 
 version.h:
-	expr "$(HG_ID)" = "`test -f "$(srcdir)/version.h" && cat "$(srcdir)/version.h"`" >/dev/null || { chmod u+w "$(srcdir)" && echo "$(HG_ID)" >"$(srcdir)/version.h"; }
+	$(AM_V_GEN)expr "$(HG_ID)" = "`test -f "$(srcdir)/version.h" && cat "$(srcdir)/version.h"`" >/dev/null || { chmod u+w "$(srcdir)" && echo "$(HG_ID)" >"$(srcdir)/version.h"; }
 
 debug: CFLAGS=$(DEBUG_CFLAGS)
 debug: all