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