diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-02 23:13:15 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-12-02 23:26:18 -0500 |
commit | ba4ba9711a1356909275196c2abfd33f7d0950a6 (patch) | |
tree | b1250ccd31f8e134ea9bd1b77956c624bf81ec54 /libctf/doc | |
parent | 066624ff52714cb533aace0633a37928b96dcdb9 (diff) | |
download | gdb-ba4ba9711a1356909275196c2abfd33f7d0950a6.zip gdb-ba4ba9711a1356909275196c2abfd33f7d0950a6.tar.gz gdb-ba4ba9711a1356909275196c2abfd33f7d0950a6.tar.bz2 |
libctf: workaround automake bug with conditional info pages
It looks like automake makes assumptions about its ability to build info
pages based on the GNU standard behavior of shipping info pages with the
distributions. So even though the info pages were conditionalized, and
automake disabled some of the targets, it was still creeping in by way
of unconditional INFO_DEPS settings.
We can workaround this by adding a stub target for the info page when
building info pages are disabled. This tricks automake into disabling
its own extended generation target. I'll follow up with the automake
folks to see what they think.
Diffstat (limited to 'libctf/doc')
-rw-r--r-- | libctf/doc/local.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libctf/doc/local.mk b/libctf/doc/local.mk index 7ee2fec..e533d72 100644 --- a/libctf/doc/local.mk +++ b/libctf/doc/local.mk @@ -17,6 +17,8 @@ # <http://www.gnu.org/licenses/>. # +if BUILD_INFO + info_TEXINFOS += %D%/ctf-spec.texi libctf_TEXINFOS = $(info_TEXINFOS) @@ -29,3 +31,11 @@ html-local: %D%/ctf-spec/index.html %D%/ctf-spec/index.html: %D%/ctf-spec.texi %D%/$(am__dirstamp) $(AM_V_GEN)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ --split=node -I$(srcdir) --output %D%/ctf-spec $(srcdir)/%D%/ctf-spec.texi + +else + +# Workaround bug in automake: it can't handle conditionally building info pages +# since GNU projects normally include info pages in the source distributions. +%D%/ctf-spec.info: + +endif |