who makes these decisions at gnu texinfo... argh!
[oweals/gnunet.git] / doc / handbook / Makefile.am
index 8be033f23961294ae63d807512e27ed663423bc5..4b32225efb04c1c3178437e501ac8f626543c27c 100644 (file)
@@ -9,7 +9,25 @@ infoimagedir = $(infodir)/images
 #      $(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                   \
@@ -44,7 +62,8 @@ dist_infoimage_DATA =                                         \
        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)
@@ -78,10 +97,11 @@ dist_infoimage_DATA =                                       \
 
 
 info_TEXINFOS =                                                \
-       gnunet.texi     
+       gnunet.texi
 
 gnunet_TEXINFOS =                                              \
        chapters/developer.texi                                 \
+       chapters/keyconcepts.texi                               \
        chapters/preface.texi                           \
        chapters/philosophy.texi                                \
        chapters/installation.texi                              \
@@ -91,14 +111,18 @@ gnunet_TEXINFOS =                                          \
        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)                                                            \
@@ -132,19 +156,13 @@ lego_stack.png: images/lego_stack.svg
 
 # 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 TEXI2MDOC_GENERATION
-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:
@@ -174,7 +192,7 @@ dev-build: version.texi/replacement
 # 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