]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Fix failure to build the doc in a VPATH build.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Oct 2019 12:54:30 +0000 (14:54 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Apr 2020 11:25:27 +0000 (13:25 +0200)
* gettext-tools/doc/Makefile.am ($(srcdir)/stamp-vti): Create version.texi in
the source directory.

gettext-tools/doc/Makefile.am

index 51ea2bc99666726e7d55cc1cd2d1e72feac5943d..05dd9919ec1703bda30d9fb91fde7249ade5f7b0 100644 (file)
@@ -85,11 +85,11 @@ $(srcdir)/stamp-vti: $(info_TEXINFOS) $(gettext_TEXINFOS) $(top_srcdir)/../.vers
        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)
+       cmp -s vti.tmp $(srcdir)/version.texi \
+         || (echo "Updating $(srcdir)/version.texi"; \
+             cp vti.tmp $(srcdir)/version.texi)
        rm -f vti.tmp
-       cp version.texi $@
+       cp $(srcdir)/version.texi $@
 
 # We distribute only the split HTML documentation.
 # The user can generate the others, via