# $(DOT_FILES:%.dot=%.eps) \
# $(DOT_FILES:%.dot=%.pdf)
-AM_MAKEINFOHTMLFLAGS = --no-split --css-ref=docstyle.css
+if ACTIVATE_TEXINFO4
+# NOTE: While GNU makeinfo 6.5 supports --css-ref=URL,
+# makeinfo 4.8 (in NetBSD 8.0, macOS, and maybe other
+# base) does only support --css-include=FILE.
+# The only difference is a shorter html output and
+# in 6.5 the ability to use refs instead of include.
+# We prefer not to break builds in this case, so
+# we use the include version which is backwards compatible
+# and upwards compatible, while the ref variant is neither.
+AM_MAKEINFOHTMLFLAGS = --no-split --css-include=style.css --css-include=manual.css
+else
+# In the 5.x version they added `--split=chapters|sections` in
+# addition to `--split=nodes`.
+# Hold on to your hats: In version 6.5 this is already removed, ffs.
+# GNU Texinfo, please be more consistent than 1 version in switches.
+# This however is compatible to version 5.2. Thanks, I hate it.
+# AM_MAKEINFOHTMLFLAGS = --split=sections --css-ref="../style.css" --css-ref="../manual.css"
+AM_MAKEINFOHTMLFLAGS = --split --css-ref="../style.css" --css-ref="../manual.css"
+endif
dist_infoimage_DATA = \
images/gnunet-gtk-0-10-gns-a-done.png \
images/lego_stack.svg \
images/service_lego_block.svg \
images/structure.dot \
- images/gns.dot
+ images/gns.dot \
+ images/gns.jpg
# images/$(wildcard *.png) \
# images/$(wildcard *.svg)
info_TEXINFOS = \
- gnunet.texi
+ gnunet.texi
gnunet_TEXINFOS = \
chapters/developer.texi \
+ chapters/keyconcepts.texi \
chapters/preface.texi \
chapters/philosophy.texi \
chapters/installation.texi \
chapters/contributing.texi \
fdl-1.3.texi \
gpl-3.0.texi \
+ agpl-3.0.texi \
version.texi
EXTRA_DIST = \
$(gnunet_TEXINFOS) \
htmlxref.cnf \
- gversion.texi
+ gversion.texi \
run-gendocs.sh \
- docstyle.css
+ docstyle.css \
+ manual.css \
+ reset.css \
+ style.css
# $(DOT_FILES) \
# XXX: is this sed invocation portable enough? otherwise try tr(1).
version.texi/replacement: version.texi/replacement/revert
- @sed -i "s/GPACKAGE_VERSION/$(PACKAGE_VERSION)/g" gversion.texi
+ @sed "s/GPACKAGE_VERSION/$(PACKAGE_VERSION)/g" gversion.texi > gversion.texi.tmp
+ @mv gversion.texi.tmp gversion.texi
version.texi/replacement/revert:
@echo "@set VERSION GPACKAGE_VERSION" > gversion.texi
@echo "@set EDITION GPACKAGE_VERSION" >> gversion.texi
-if SECTION7
-gnunet-documentation.7: version.texi/replacement
- @echo Attempting to output an mdoc formatted section 7 document
- @texi2mdoc -I$(pwd):$(pwd)/chapters gnunet.texi > ../man/gnunet-documentation.7
-
-# TODO: (Maybe) other outputs resulting from this.
-endif
# FIXME: rm *.html and *.pdf
#doc-clean:
# TODO: Add more to clean.
clean: version.texi/replacement/revert
@rm -f gnunet.pdf
- @rm -f gnunet.html
+ @rm -rf gnunet.html
@rm -f gnunet.info
@rm -f gnunet.info-1
@rm -f gnunet.info-2