chapter: user: atchar is LaTeX, @@ is Texinfo.
[oweals/gnunet.git] / doc / documentation / Makefile.am
1 # This Makefile.am is in the public domain
2 docdir = $(datadir)/doc/gnunet/
3
4 infoimagedir = $(infodir)/images
5
6 #DOT_FILES = images/$(wildcard *.dot)
7
8 #DOT_VECTOR_GRAPHICS =                                                          \
9 #       $(DOT_FILES:%.dot=%.eps)                                                \
10 #       $(DOT_FILES:%.dot=%.pdf)
11
12 AM_MAKEINFOHTMLFLAGS = --no-split --css-ref=docstyle.css
13
14 dist_infoimage_DATA =                                           \
15         images/gnunet-gtk-0-10-gns-a-done.png                   \
16         images/gnunet-gtk-0-10-gns-a.png                        \
17         images/daemon_lego_block.png                            \
18         images/gnunet-gtk-0-10-gns.png                          \
19         images/gnunet-0-10-peerinfo.png                         \
20         images/gnunet-gtk-0-10-identity.png                     \
21         images/gnunet-fs-gtk-0-10-star-tab.png                  \
22         images/gnunet-gtk-0-10.png                              \
23         images/gnunet-gtk-0-10-download-area.png                \
24         images/gnunet-gtk-0-10-search-selected.png              \
25         images/gnunet-gtk-0-10-fs-menu.png                      \
26         images/gnunet-gtk-0-10-traffic.png                      \
27         images/gnunet-gtk-0-10-fs.png                           \
28         images/gnunet-namestore-gtk-phone.png                   \
29         images/gnunet-gtk-0-10-fs-publish-editing.png           \
30         images/gnunet-namestore-gtk-vpn.png                     \
31         images/gnunet-gtk-0-10-fs-published.png                 \
32         images/gnunet-setup-exit.png                            \
33         images/gnunet-gtk-0-10-fs-publish.png                   \
34         images/iceweasel-preferences.png                        \
35         images/gnunet-gtk-0-10-fs-publish-select.png            \
36         images/iceweasel-proxy.png                              \
37         images/gnunet-gtk-0-10-fs-publish-with-file_0.png       \
38         images/service_lego_block.png                           \
39         images/gnunet-gtk-0-10-fs-publish-with-file.png         \
40         images/service_stack.png                                \
41         images/gnunet-gtk-0-10-fs-search.png                    \
42         images/gnunet-tutorial-service.png                      \
43         images/gnunet-tutorial-system.png                       \
44         images/daemon_lego_block.svg                            \
45         images/lego_stack.svg                                   \
46         images/service_lego_block.svg                           \
47         images/structure.dot                                    \
48         images/gns.dot
49
50 #       images/$(wildcard *.png)                                                \
51 #       images/$(wildcard *.svg)
52 #       $(DOT_FILES:%.dot=%.png)
53
54 #DOT_OPTIONS =                                                                  \
55 #       -Gratio=.9 -Gnodesep=.005 -Granksep=.00005                              \
56 #       -Nfontsite=9 -Nheight=.1 -Nwidth=.1
57
58 # .dot.png:
59 #       $(AM_V_DOT)$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
60 #       mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
61
62 # .dot.pdf:
63 #       $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
64 #       mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
65
66 # .dot.eps:
67 #       $(AM_V_DOT)$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
68 #       mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
69
70 # .png.eps:
71 #       $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
72 #       mv "$@-tmp.eps" "$@"
73
74 # pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf)
75 # info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png)
76 # ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps)                \
77 #       $(top_srcdir)/%D%/images/coreutils-size-map.eps
78 # dvi-local: ps-local
79
80
81 gnunet_tutorial_examples =                                      \
82         tutorial-examples/001.c                                                 \
83         tutorial-examples/002.c                                                 \
84         tutorial-examples/003.c                                                 \
85         tutorial-examples/004.c                                                 \
86         tutorial-examples/005.c                                                 \
87         tutorial-examples/006.c                                                 \
88         tutorial-examples/007.c                                                 \
89         tutorial-examples/008.c                                                 \
90         tutorial-examples/009.c                                                 \
91         tutorial-examples/010.c                                                 \
92         tutorial-examples/011.c                                                 \
93         tutorial-examples/012.c                                                 \
94         tutorial-examples/013.c                                                 \
95         tutorial-examples/013.1.c                                                       \
96         tutorial-examples/014.c                                                 \
97         tutorial-examples/015.c                                                 \
98         tutorial-examples/016.c                                                 \
99         tutorial-examples/017.c                                                 \
100         tutorial-examples/018.c                                                 \
101         tutorial-examples/019.c                                                 \
102         tutorial-examples/020.c                                                 \
103         tutorial-examples/021.c                                                 \
104         tutorial-examples/022.c                                                 \
105         tutorial-examples/023.c                                                 \
106         tutorial-examples/024.c                                                 \
107         tutorial-examples/025.c                                                 \
108         tutorial-examples/026.c
109
110 info_TEXINFOS =                                                 \
111         gnunet.texi                                             \
112         gnunet-c-tutorial.texi
113
114 gnunet_TEXINFOS =                                               \
115         chapters/developer.texi                                 \
116         chapters/terminology.texi                               \
117         chapters/installation.texi                              \
118         chapters/philosophy.texi                                \
119         chapters/user.texi                                      \
120         chapters/vocabulary.texi                                \
121         chapters/configuration.texi                             \
122         chapters/contributing.texi                              \
123         fdl-1.3.texi                                            \
124         gpl-3.0.texi
125
126 EXTRA_DIST =                                                    \
127         $(gnunet_TEXINFOS)                                      \
128         $(gnunet_tutorial_examples)                             \
129         htmlxref.cnf                                            \
130         run-gendocs.sh                                          \
131         docstyle.css
132
133
134 #       $(DOT_FILES)                                                            \
135 #       $(DOT_VECTOR_GRAPHICS)
136
137 DISTCLEANFILES =                                                \
138         gnunet.cps                                              \
139         gnunet-c-tutorial.cps                                   \
140         chapters/developer.cps                                  \
141         chapters/installation.cps                               \
142         chapter/philosophy.cps                                  \
143         chapters/user.cps                                       \
144         chapters/configuration.cps                              \
145         chapters/terminology.cps                                \
146         chapters/vocabulary.cps                                 \
147         fdl-1.3.cps                                             \
148         gpl-3.0.cps
149
150 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING
151 daemon_lego_block.png: images/daemon_lego_block.svg
152         convert images/daemon_lego_block.svg images/daemon_lego_block.png &&
153         pngcrush images/daemon_lego_block.png images/daemon_lego_block.png
154
155 service_lego_block.png: images/service_lego_block.svg
156         convert images/service_lego_block.svg images/service_lego_block.png &&
157         pngcrush images/service_lego_block.png images/serivce_lego_block.png
158
159 lego_stack.png: images/lego_stack.svg
160         convert images/lego_stack.svg images/lego_stack.png &&
161         pngcrush images/lego_stack.png images/lego_stack.png
162
163 # FIXME: The usage of 'date' strings causes a warning.
164 # version.texi:
165 #       echo "@set UPDATED $(date +'%d %B %Y')" > $@
166 #       echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
167 #       echo "@set EDITION $(PACKAGE_VERSION)" >> $@
168 #       echo "@set VERSION $(PACKAGE_VERSION)" >> $@
169
170 # Workaround for makeinfo error. Whcih in turn introduces more
171 # date-related 'warnings'. Well.
172 version2.texi:
173         echo "@set UPDATED $(date +'%d %B %Y')" > $@
174         echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
175         echo "@set EDITION $(PACKAGE_VERSION)" >> $@
176         echo "@set VERSION $(PACKAGE_VERSION)" >> $@
177
178 # FIXME: rm *.html and *.pdf
179 #doc-clean:
180 #       @rm *.aux *.log *.toc *.cp *.cps
181
182 doc-all-install:
183         @mkdir -p $(DESTDIR)/$(docdir)
184         @mkdir -p $(DESTDIR)/$(infoimagedir)
185         @mkdir -p $(DESTDIR)/$(infodir)
186         @install -m 0755 gnunet.pdf $(DESTDIR)/$(docdir)
187         @install -m 0755 gnunet-c-tutorial.pdf $(DESTDIR)/$(docdir)
188         @install -m 0755 gnunet-c-tutorial.info $(DESTDIR)/$(infodir)
189         @install -m 0755 gnunet.info $(DESTDIR)/$(infodir)
190         @install gnunet.html $(DESTDIR)/$(docdir)
191         @install gnunet-c-tutorial.html $(DESTDIR)/$(docdir)
192
193 doc-gendoc-install:
194         @mkdir -p $(DESTDIR)/$(docdir)
195         @cp -r manual $(DESTDIR)/$(docdir)
196
197 #       @cp -r images $(DESTDIR)/$(infoimagedir)
198
199 dev-build: version.texi version2.texi
200         @makeinfo --pdf gnunet.texi
201         @makeinfo --pdf gnunet-c-tutorial.texi
202         @makeinfo --html gnunet.texi
203         @makeinfo --html gnunet-c-tutorial.texi
204         @makeinfo --no-split gnunet.texi
205         @makeinfo --no-split gnunet-c-tutorial.texi
206
207 # TODO: Add more to clean.
208 clean:
209         @rm -f gnunet.pdf
210         @rm -f gnunet.html
211         @rm -f gnunet.info
212         @rm -f gnunet.info-1
213         @rm -f gnunet.info-2
214         @rm -f gnunet.info-3
215         @rm -f gnunet-c-tutorial.pdf
216         @rm -f gnunet-c-tutorial.info
217         @rm -f gnunet-c-tutorial.html
218         @rm -fr gnunet.t2p
219         @rm -fr gnunet-c-tutorial.t2p
220         @rm -fr manual
221
222 # CLEANFILES =                                          \
223 #       gnunet.log                                      \
224 #       gnunet-c-tutorial.log                           \
225 #       $(wildcard *.aux)                               \
226 #       $(wildcard *.toc)                               \
227 #       $(wildcard *.cp)                                \
228 #       $(wildcard *.cps)
229
230 #.PHONY: version.texi
231 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_PDF
232
233 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_HTML
234
235 # endif
236 # endif
237 # endif