[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Tue, 6 Aug 2024 08:38:31 -0400 (EDT) |
branch: master
commit c10d261058df2c72c399ac9a2b1609387e4dca77
Author: Bruno Haible <bruno@clisp.org>
AuthorDate: Tue Aug 6 13:13:45 2024 +0100
Generate doc/tp_api/texi2any_internals.texi in the source directory.
* doc/tp_api/Makefile.am (texi2any_internals.texi): Move the
generated texi2any_internals.texi from the build dir to the
source dir.
---
ChangeLog | 8 ++++++++
doc/tp_api/Makefile.am | 12 ++++++++++--
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fdc6c6009f..003ff7eb85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-08-06 Bruno Haible <bruno@clisp.org>
+
+ Generate doc/tp_api/texi2any_internals.texi in the source directory.
+
+ * doc/tp_api/Makefile.am (texi2any_internals.texi): Move the
+ generated texi2any_internals.texi from the build dir to the
+ source dir.
+
2024-08-06 Bruno Haible <bruno@clisp.org>
* texindex/Makefile.am (texindex.awk): Move the generated
diff --git a/doc/tp_api/Makefile.am b/doc/tp_api/Makefile.am
index ab02609bc5..0bba24acd3 100644
--- a/doc/tp_api/Makefile.am
+++ b/doc/tp_api/Makefile.am
@@ -84,8 +84,16 @@ $(top_builddir)/tp/Texinfo/ModulePath.pm:
texi2any_internals.texi: $(texi2any_internals_dependencies)
texi2any_internals_indices.texi texi2any_internals_preamble.texi
$(top_builddir)/tp/Texinfo/ModulePath.pm
if $(MAKEINFO_ENVIRONMENT) $(PERL) -I
$(top_srcdir)/Pod-Simple-Texinfo/lib/
$(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl --base-level=section --preamble -
--subdir=$(srcdir)/api_includes $(texi2any_internals_dependencies) <
$(srcdir)/texi2any_internals_preamble.texi >$@.tmp ; then \
- cat $@.tmp | sed -e 's/^@bye/@__bye/' | sed -e '/^@__bye/r
$(srcdir)/texi2any_internals_indices.texi' | sed -e 's/^@__bye//' >
$(srcdir)/$@ ; \
- fi ; rm -f $@.tmp
+ cat $@.tmp | sed -e 's/^@bye/@__bye/' | sed -e '/^@__bye/r
$(srcdir)/texi2any_internals_indices.texi' | sed -e 's/^@__bye//' >
texi2any_internals.texi ; \
+ if test '$(srcdir)' != '.' ; then \
+ if cmp texi2any_internals.texi $(srcdir)/texi2any_internals.texi
>/dev/null 2>&1 ; then \
+ rm -f texi2any_internals.texi ; \
+ else \
+ mv texi2any_internals.texi $(srcdir)/texi2any_internals.texi ; \
+ fi ; \
+ fi ; \
+ fi ; \
+ rm -f $@.tmp
endif