diff options
author | Nils Gillmann <ng0@n0.is> | 2018-09-07 15:41:06 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-09-07 15:41:06 +0000 |
commit | 15a3a09d508eed0f6d2612dd42d1b8ea720eb036 (patch) | |
tree | 6027869fe8feefc6c3f82b9204fc8ec3b4870d23 /doc | |
parent | e7583540d0ec62c21fbf098dd757be5505a8a71d (diff) |
doc: start work on mdoc generation support
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/documentation/Makefile.am | 12 | ||||
-rw-r--r-- | doc/man/Makefile.am | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/doc/documentation/Makefile.am b/doc/documentation/Makefile.am index b6c666c4d..0032b22e9 100644 --- a/doc/documentation/Makefile.am +++ b/doc/documentation/Makefile.am @@ -175,6 +175,18 @@ version2.texi: echo "@set EDITION $(PACKAGE_VERSION)" >> $@ echo "@set VERSION $(PACKAGE_VERSION)" >> $@ +if SECTION7 +gnunet-c-tutorial.7: version2.texi + @echo Attempting to output an mdoc formatted section 7 document + @texi2mdoc -I$(pwd):$(pwd)/chapters gnunet-c-tutorial.texi > ../man/gnunet-c-tutorial.7 + +gnunet-documentation.7: version2.texi + @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: # @rm *.aux *.log *.toc *.cp *.cps diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am index 37f881d60..d0871571d 100644 --- a/doc/man/Makefile.am +++ b/doc/man/Makefile.am @@ -46,3 +46,8 @@ man_MANS = \ gnunet-zoneimport.1 EXTRA_DIST = ${man_MANS} + +if SECTION7 +EXTRA_DIST += gnunet-documentation.7 \ + gnunet-c-tutorial.7 +endif |