diff --git a/Makefile.am b/Makefile.am index 9ec8c67c8ddcabfe6064f21cf000c45a2981081e..719c14fe4dc79be64bb2aba3bab2f31a0f1242f8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1041,11 +1041,13 @@ check-local: check-dirs echo "Incorrect version in README, expected $$expver"; \ exit 1; \ fi; \ - if test "`sed -ne '4 p' $(top_srcdir)/doc/iallocator.rst`" != \ - "Documents Ganeti version $$expver"; then \ - echo "Incorrect version in iallocator.rst, expected $$expver"; \ - exit 1; \ - fi + for file in doc/iallocator.rst doc/hooks.rst; do \ + if test "`sed -ne '4 p' $(top_srcdir)/$$file`" != \ + "Documents Ganeti version $$expver"; then \ + echo "Incorrect version in $$file, expected $$expver"; \ + exit 1; \ + fi; \ + done .PHONY: hs-check hs-check: htools/test