1## Process this file with automake to produce Makefile.in.
2#
3#   Copyright (C) 2019-2024 Free Software Foundation, Inc.
4#
5# This file is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; see the file COPYING.  If not see
17# <http://www.gnu.org/licenses/>.
18#
19
20if BUILD_INFO
21
22info_TEXINFOS += %D%/ctf-spec.texi
23
24AM_MAKEINFOFLAGS = --no-split
25
26DISTCLEANFILES += texput.log
27MAINTAINERCLEANFILES += %D%/ctf-spec.info
28
29html-local: %D%/ctf-spec/index.html
30%D%/ctf-spec/index.html: %D%/ctf-spec.texi %D%/$(am__dirstamp)
31	$(AM_V_GEN)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
32	  --split=node -I$(srcdir) --output %D%/ctf-spec $(srcdir)/%D%/ctf-spec.texi
33
34else
35
36# Workaround bug in automake: it can't handle conditionally building info pages
37# since GNU projects normally include info pages in the source distributions.
38%D%/ctf-spec.info:
39
40endif
41