9cda25210e2810b1d4af9d58f1f7bd558d5562da
[oweals/gnunet.git] / doc / Makefile.am
1 # This Makefile.am is in the public domain
2 SUBDIRS = man doxygen
3
4 docdir = $(datadir)/doc/gnunet/
5
6 infoimagedir = $(infodir)/images
7
8 dist_infoimage_DATA =                                           \
9         %D%/images/gnunet-gtk-0-10-gns-a-done.png               \
10         %D%/images/gnunet-gtk-0-10-gns-a.png                    \
11         %D%/images/daemon_lego_block.png                        \
12         %D%/images/gnunet-gtk-0-10-gns.png                      \
13         %D%/images/gnunet-0-10-peerinfo.png                     \
14         %D%/images/gnunet-gtk-0-10-identity.png                 \
15         %D%/images/gnunet-fs-gtk-0-10-star-tab.png              \
16         %D%/images/gnunet-gtk-0-10.png                          \
17         %D%/images/gnunet-gtk-0-10-download-area.png            \
18         %D%/images/gnunet-gtk-0-10-search-selected.png          \
19         %D%/images/gnunet-gtk-0-10-fs-menu.png                  \
20         %D%/images/gnunet-gtk-0-10-traffic.png                  \
21         %D%/images/gnunet-gtk-0-10-fs.png                       \
22         %D%/images/gnunet-namestore-gtk-phone.png               \
23         %D%/images/gnunet-gtk-0-10-fs-publish-editing.png       \
24         %D%/images/gnunet-namestore-gtk-vpn.png                 \
25         %D%/images/gnunet-gtk-0-10-fs-published.png             \
26         %D%/images/gnunet-setup-exit.png                        \
27         %D%/images/gnunet-gtk-0-10-fs-publish.png               \
28         %D%/images/iceweasel-preferences.png                    \
29         %D%/images/gnunet-gtk-0-10-fs-publish-select.png        \
30         %D%/images/iceweasel-proxy.png                          \
31         %D%/images/gnunet-gtk-0-10-fs-publish-with-file_0.png   \
32         %D%/images/service_lego_block.png                       \
33         %D%/images/gnunet-gtk-0-10-fs-publish-with-file.png     \
34         %D%/images/service_stack.png                            \
35         %D%/images/gnunet-gtk-0-10-fs-search.png                \
36         %D%/images/gnunet-tutorial-service.png                  \
37         %D%/images/gnunet-tutorial-system.png                   \
38         %D%/images/daemon_lego_block.svg                        \
39         %D%/images/lego_stack.svg                               \
40         %D%/images/service_lego_block.svg
41
42 gnunet_tutorial_examples =                                      \
43         001.c                                                   \
44         002.c                                                   \
45         003.c                                                   \
46         004.c                                                   \
47         005.c                                                   \
48         006.c                                                   \
49         007.c                                                   \
50         008.c                                                   \
51         009.c                                                   \
52         010.c                                                   \
53         011.c                                                   \
54         012.c                                                   \
55         013.c                                                   \
56         014.c                                                   \
57         015.c                                                   \
58         016.c                                                   \
59         017.c                                                   \
60         018.c                                                   \
61         019.c                                                   \
62         020.c                                                   \
63         021.c                                                   \
64         022.c                                                   \
65         023.c                                                   \
66         024.c                                                   \
67         025.c                                                   \
68         026.c
69
70 info_TEXINFOS = \
71         gnunet.texi
72
73 # It seems as if either we still have gnunet-c-tutorial markup issues
74 # or we have issues that can only occur in systems which are not using Guix
75 # or we have version incompabilities.
76 #       gnunet-c-tutorial.texi
77
78 gnunet_TEXINFOS = \
79         chapters/developer.texi \
80         chapters/installation.texi \
81         chapters/philosophy.texi \
82         chapters/user.texi \
83         fdl-1.3.texi \
84         gpl-3.0.texi
85
86 EXTRA_DIST = \
87         $(gnunet_TEXINFOS) \
88         $(gnunet_tutorial_examples) \
89         outdated-and-old-installation-instructions.txt \
90         gnunet-c-tutorial-v1.pdf \
91         README.txt
92
93 daemon_lego_block.png: images/daemon_lego_block.svg
94         convert images/daemon_lego_block.svg images/daemon_lego_block.png &&
95         pngcrush images/daemon_lego_block.png images/daemon_lego_block.png
96
97 service_lego_block.png: images/service_lego_block.svg
98         convert images/service_lego_block.svg images/service_lego_block.png &&
99         pngcrush images/service_lego_block.png images/serivce_lego_block.png
100
101 lego_stack.png: images/lego_stack.svg
102         convert images/lego_stack.svg images/lego_stack.png &&
103         pngcrush images/lego_stack.png images/lego_stack.png
104
105 version.texi:
106         echo "@set UPDATED $(date +'%d %B %Y')" > $@
107         echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
108         echo "@set EDITION $(PACKAGE_VERSION)" >> $@
109         echo "@set VERSION $(PACKAGE_VERSION)" >> $@ 
110
111 doc-pdf: version.texi
112         @makeinfo --pdf --quiet gnunet.texi
113 doc-pdf-tutorial: version.texi
114         @makeinfo --pdf --quiet gnunet-c-tutorial.texi
115
116 doc-html: version.texi
117         @makeinfo --html gnunet.texi
118 doc-html-tutorial: version.texi
119         @makeinfo --html gnunet-c-tutorial.texi
120
121 doc-info: version.texi
122         @makeinfo --no-split gnunet.texi
123 doc-info-tutorial: version.texi
124         @makeinfo --no-split gnunet-c-tutorial.texi
125
126 # FIXME: rm *.html and *.pdf
127 doc-clean:
128         @rm *.aux *.log *.toc *.cp *.cps
129
130 doc-all: doc-pdf doc-html doc-info doc-pdf-tutorial doc-html-tutorial doc-info-tutorial
131
132 doc-pdf-noise: version.texi
133         @makeinfo --pdf gnunet.texi
134 doc-pdf-tutorial-noise: version.texi
135         @makeinfo --pdf gnunet-c-tutorial.texi
136
137 doc-html-noise: version.texi
138         @makeinfo --html gnunet.texi
139 doc-html-tutorial-noise: version.texi
140         @makeinfo --html gnunet-c-tutorial.texi
141
142 doc-info-noise: version.texi
143         @makeinfo --no-split gnunet.texi
144 doc-info-tutorial-noise: version.texi
145         @makeinfo --no-split gnunet-c-tutorial.texi
146
147 doc-all-give-me-the-noise: doc-pdf-noise doc-html-noise doc-info-noise doc-pdf-tutorial-noise doc-html-tutorial-noise doc-info-tutorial-noise
148
149 .PHONY: version.texi