@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:
gnunet.conf.5
groff_lint.log
*.html
+gnunet-c-tutorial.7
+gnunet-documentation.7
gnunet.conf.5: gnunet.conf.5.in Makefile
$(do_subst) < $(srcdir)/gnunet.conf.5.in > gnunet.conf.5
+if TEXI2MDOC_GENERATION
+gnunet-c-tutorial.7: Makefile gnunet-tutorial.7
+ @echo generated texi2mdoc output
+
+gnunet-tutorial.7: Makefile
+ $(SH) $(srcdir)/texi2mdoc-generation.sh
+
+endif
+
CLEANFILES = gnunet.conf.5 *.html
+if TEXI2MDOC_GENERATION
+CLEANFILES += gnunet-documentation.7 gnunet-c-tutorial.7
+endif
+
html:
$(SH) $(srcdir)/produce_html.sh
gnunet-vpn.1 \
gnunet-zoneimport.1
+if TEXI2MDOC_GENERATION
+man_MANS += gnunet-c-tutorial.7 gnunet-documentation.7
+endif
+
EXTRA_DIST = ${man_MANS} \
- gnunet.conf.5.in
+ gnunet.conf.5.in \
+ texi2mdoc-generation.sh
if TEXI2MDOC_GENERATION
-EXTRA_DIST += gnunet-documentation.7 \
- gnunet-c-tutorial.7
+EXTRA_DIST += gnunet-documentation.7 gnunet-c-tutorial.7
endif
--- /dev/null
+#!/bin/sh
+# This script is in the public-domain.
+# GNUnet e.V. 2019
+#
+# Commentary: generate texi2mdoc output. This would be easier with
+# bmake / BSDmake, oh well.
+#
+# Excercise for future readers: don't fix this.
+
+# echo $(pwd)
+cd ../tutorial
+texi2mdoc -I$(pwd):$(pwd)/chapters gnunet-tutorial.texi > ../man/gnunet-c-tutorial.7
+# echo $(pwd)
+cd ../handbook
+texi2mdoc -I$(pwd):$(pwd)/chapters gnunet.texi > ../man/gnunet-documentation.7
@echo "@set VERSION GPACKAGE_VERSION" > gversion.texi
@echo "@set EDITION GPACKAGE_VERSION" >> gversion.texi
-if TEXI2MDOC_GENERATION
-gnunet-tutorial.7: version.texi/replacement
- @echo Attempting to output an mdoc formatted section 7 document
- @texi2mdoc -I$(pwd):$(pwd)/chapters gnunet-c-tutorial.texi > ../man/gnunet-c-tutorial.7
-# TODO: (Maybe) other outputs resulting from this.
-endif
+
# FIXME: rm *.html and *.pdf
#doc-clean: