config-dir:
test -d config || mkdir config
+ touch config-dir
config/config.guess: $(srcdir)/../config/config.guess config-dir
cp $(srcdir)/../config/config.guess config/config.guess
DISTCLEANFILES += config/config.guess config/config.sub config/install-sh config/ltmain.sh config/mkinstalldirs config/missing config/config.rpath
distclean-am:
- rm -rf config
+ rm -rf config config-dir
# Documentation tag not known to automake.
mv iso-3166.tmp $(srcdir)/iso-3166.texi
# The dependencies of stamp-vti generated by automake are incomplete.
-stamp-vti: $(info_TEXINFOS) $(top_srcdir)/../version.sh
-
+# So we have to duplicate the entire rule which would otherwise be generated
+# by automake.
+stamp-vti: $(info_TEXINFOS) $(gettext_TEXINFOS) $(top_srcdir)/../version.sh
+ (dir=.; test -f ./gettext.texi || dir=$(srcdir); \
+ set `$(SHELL) $(top_srcdir)/../config/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)") > vti.tmp
+ cmp -s vti.tmp version.texi \
+ || (echo "Updating version.texi"; \
+ cp vti.tmp version.texi)
+ rm -f vti.tmp
+ cp version.texi $@
# We distribute only the split HTML documentation.
# The user can generate the others, via