doc/man: Make html generation experimental, fix mdocml build.
[oweals/gnunet.git] / doc / man / Makefile.am
1 # This Makefile.am is in the public domain
2
3 do_subst = $(SED) -e 's,[@]SYSCONFDIR[@],$(sysconfdir),g'
4
5 gnunet.conf.5: gnunet.conf.5.in Makefile
6         $(do_subst) < $(srcdir)/gnunet.conf.5.in > gnunet.conf.5
7
8 CLEANFILES = gnunet.conf.5
9
10 if TEXI2MDOC_GENERATION
11 gnunet-tutorial.7: Makefile
12         @texi2mdoc -I../tutorial:../tutorial/chapters ../tutorial/tutorial.texi > gnunet-tutorial.7
13
14 gnunet-documentation.7: Makefile
15         @texi2mdoc -I../handbook:../handbook/chapters ../handbook/gnunet.texi > gnunet-documentation.7
16
17 CLEANFILES += gnunet-documentation.7 gnunet-tutorial.7
18 endif
19
20 if HAVE_EXPERIMENTAL
21 if HAVE_MANDOC
22 # After I went through the alternatives with the focus
23 # on staying as portable as possible to other make
24 # implementations, I have to face the fact after hours
25 # that this is the most portable way to achieve what
26 # I want and that the alternatives are depressing and
27 # nonfunctional.
28 .PHONY: man-html
29 man-html:
30         $(SH) $(srcdir)/produce_html.sh
31
32 htmldocdir = $(datadir)/doc/gnunet/manhtml/
33 .PHONY: man-html-install
34 man-html-install:
35         @mkdir -p $(htmldocdir)
36         @mv $(srcdir)/*.html $(htmldocdir)
37 man-html-uninstall:
38         @rm $(htmldocdir)/*.html
39
40 CLEANFILES += *.html
41 endif
42 endif
43
44 man_MANS = \
45   gnunet.conf.5 \
46   gnunet-arm.1 \
47   gnunet-ats.1 \
48   gnunet-auto-share.1 \
49   gnunet-bcd.1 \
50   gnunet-config.1 \
51   gnunet-core.1 \
52   gnunet-conversation.1 \
53   gnunet-conversation-test.1 \
54   gnunet-directory.1 \
55   gnunet-dns2gns.1 \
56   gnunet-datastore.1 \
57   gnunet-download.1 \
58   gnunet-ecc.1 \
59   gnunet-fs.1 \
60   gnunet-gns.1 \
61   gnunet-gns-proxy.1 \
62   gnunet-gns-proxy-setup-ca.1 \
63   gnunet-identity.1 \
64   gnunet-cadet.1 \
65   gnunet-namecache.1 \
66   gnunet-namestore.1 \
67   gnunet-namestore-fcfsd.1 \
68   gnunet-nat.1 \
69   gnunet-nat-auto.1 \
70   gnunet-nat-server.1 \
71   gnunet-nse.1 \
72   gnunet-peerinfo.1 \
73   gnunet-publish.1 \
74   gnunet-qr.1 \
75   gnunet-reclaim.1 \
76   gnunet-resolver.1 \
77   gnunet-revocation.1 \
78   gnunet-scalarproduct.1 \
79   gnunet-scrypt.1 \
80   gnunet-search.1 \
81   gnunet-statistics.1 \
82   gnunet-testbed-profiler.1 \
83   gnunet-testing-run-service.1 \
84   gnunet-timeout.1 \
85   gnunet-transport.1 \
86   gnunet-transport-certificate-creation.1 \
87   gnunet-unindex.1 \
88   gnunet-uri.1 \
89   gnunet-vpn.1 \
90   gnunet-zoneimport.1
91
92 if TEXI2MDOC_GENERATION
93 man_MANS += gnunet-tutorial.7 gnunet-documentation.7
94 endif
95
96 EXTRA_DIST = ${man_MANS} \
97  gnunet.conf.5.in \
98  README