diff --git a/Makefile.am b/Makefile.am
index 9ff2d3a0..1f89ba85 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -15,6 +15,6 @@ EXTRA_DIST = \
# Run scripts to maintain autogenerated documentation
# in the version control.
-docs:
+docs: all ./tools/genmanpage.sh ./tools/update_readme.sh
./tools/genmanpage.sh
./tools/update_readme.sh
diff --git a/README.md b/README.md
index d22f7833..5c59ff86 100644
--- a/README.md
+++ b/README.md
@@ -19,156 +19,164 @@ Usage:
kvazaar -i --input-res x -o