Skip to content

Commit a7aea22

Browse files
committed
* Makefile: Add additional makeinfo doc generation options
1 parent b305a23 commit a7aea22

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CUT ?= cut
1919
TR ?= tr
2020
TEXI2PDF ?= texi2pdf -q
2121
MAKEINFO ?= makeinfo
22+
MAKEINFO_HTML_OPTIONS := --no-headers --set-customization-variable 'COPIABLE_LINKS 0' --set-customization-variable 'COPIABLE_ANCHORS 0' --no-split
2223

2324
# work out a possible help generator
2425
ifeq ($(strip $(QHELPGENERATOR)),)
@@ -289,12 +290,16 @@ doc/functions.texi: $(release_dir_dep)
289290
cd doc && ./mkfuncdocs.py --allowscan --src-dir=../inst/ --src-dir=../src/ ../INDEX | $(SED) 's/@seealso/@xseealso/g' > functions.texi
290291

291292
doc/$(packageprefix)$(package).html: doc/$(packageprefix)$(package).texi doc/functions.texi doc/version.texi
292-
cd doc && SOURCE_DATE_EPOCH=$(REPO_TIMESTAMP) $(MAKEINFO) --html --css-ref=$(packageprefix)$(package).css --no-split --output=$(packageprefix)${package}.html $(packageprefix)$(package).texi
293+
cd doc && SOURCE_DATE_EPOCH=$(REPO_TIMESTAMP) $(MAKEINFO) --html --css-ref=$(packageprefix)$(package).css $(MAKEINFO_HTML_OPTIONS) --output=$(packageprefix)${package}.html $(packageprefix)$(package).texi
293294

294295
doc/$(packageprefix)$(package).qhc: doc/$(packageprefix)$(package).html
296+
ifeq ($(QHELPGENERATOR),true)
297+
$(warning No QHELPGENERATOR ... skipping QT doc build)
298+
else
295299
# try also create qch file if can
296300
cd doc && ./mkqhcp.py $(packageprefix)$(package) && $(QHELPGENERATOR) $(packageprefix)$(package).qhcp -o $(packageprefix)$(package).qhc
297301
cd doc && $(RM) -f $(packageprefix)$(package).qhcp $(packageprefix)$(package).qhp
302+
endif
298303
##
299304
## CLEAN
300305
##

0 commit comments

Comments
 (0)