diff --git a/gettext-tools/doc/Makefile.am b/gettext-tools/doc/Makefile.am
index 3768dbe..a3e1e72 100644
--- a/gettext-tools/doc/Makefile.am
+++ b/gettext-tools/doc/Makefile.am
@@ -69,21 +69,7 @@ iso-3166.texi: ISO_3166 iso-3166.sed
 	mv iso-3166.tmp $(srcdir)/iso-3166.texi
 
 # The dependencies of stamp-vti generated by automake are incomplete.
-# So we have to duplicate the entire rule which would otherwise be generated
-# by automake.
-$(srcdir)/stamp-vti: $(info_TEXINFOS) $(gettext_TEXINFOS) $(top_srcdir)/../.version
-	(dir=.; test -f ./gettext.texi || dir=$(srcdir); \
-	set `$(SHELL) $(top_srcdir)/../build-aux/mdate-sh $$dir/gettext.texi`; \
-	echo "@set UPDATED $$1 $$2 $$3"; \
-	echo "@set UPDATED-MONTH $$2 $$3"; \
-	echo "@set EDITION $(VERSION)"; \
-	echo "@set VERSION $(VERSION)"; \
-	echo "@set ARCHIVE-VERSION $(ARCHIVE_VERSION)") > vti.tmp
-	cmp -s vti.tmp version.texi \
-	  || (echo "Updating version.texi"; \
-	      cp vti.tmp version.texi)
-	rm -f vti.tmp
-	cp version.texi $@
+$(info_TEXINFOS): $(gettext_TEXINFOS)
 
 # We distribute only the split HTML documentation.
 # The user can generate the others, via
diff --git a/gettext-tools/src/Makefile.am b/gettext-tools/src/Makefile.am
index 0538d1e..0f9f525 100644
--- a/gettext-tools/src/Makefile.am
+++ b/gettext-tools/src/Makefile.am
@@ -461,6 +461,7 @@ endif
 BUILT_SOURCES = \
   po-gram-gen.c po-gram-gen.h po-gram-gen2.h cldr-plural.c cldr-plural.h
 
+po-gram-gen.h: po-gram-gen.c
 po-lex.o po-lex.lo: po-gram-gen2.h
 po-gram-gen2.h: po-gram-gen.h
 	srcdir=''; \
