Merge branch 'master' of https://gnunet.org/git/gnunet
[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
49 #       images/$(wildcard *.png)                                                \
50 #       images/$(wildcard *.svg)
51 #       $(DOT_FILES:%.dot=%.png)
52
53 #DOT_OPTIONS =                                                                  \
54 #       -Gratio=.9 -Gnodesep=.005 -Granksep=.00005                              \
55 #       -Nfontsite=9 -Nheight=.1 -Nwidth=.1
56
57 # .dot.png:
58 #       $(AM_V_DOT)$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
59 #       mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
60
61 # .dot.pdf:
62 #       $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
63 #       mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
64
65 # .dot.eps:
66 #       $(AM_V_DOT)$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
67 #       mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
68
69 # .png.eps:
70 #       $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
71 #       mv "$@-tmp.eps" "$@"
72
73 # pdf-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.pdf)
74 # info-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.png)
75 # ps-local: $(DOT_FILES=%.dot=$(top_srcdir)/%.eps)                \
76 #       $(top_srcdir)/%D%/images/coreutils-size-map.eps
77 # dvi-local: ps-local
78
79
80 gnunet_tutorial_examples =                                      \
81         tutorial-examples/001.c                                                 \
82         tutorial-examples/002.c                                                 \
83         tutorial-examples/003.c                                                 \
84         tutorial-examples/004.c                                                 \
85         tutorial-examples/005.c                                                 \
86         tutorial-examples/006.c                                                 \
87         tutorial-examples/007.c                                                 \
88         tutorial-examples/008.c                                                 \
89         tutorial-examples/009.c                                                 \
90         tutorial-examples/010.c                                                 \
91         tutorial-examples/011.c                                                 \
92         tutorial-examples/012.c                                                 \
93         tutorial-examples/013.c                                                 \
94         tutorial-examples/013.1.c                                                       \
95         tutorial-examples/014.c                                                 \
96         tutorial-examples/015.c                                                 \
97         tutorial-examples/016.c                                                 \
98         tutorial-examples/017.c                                                 \
99         tutorial-examples/018.c                                                 \
100         tutorial-examples/019.c                                                 \
101         tutorial-examples/020.c                                                 \
102         tutorial-examples/021.c                                                 \
103         tutorial-examples/022.c                                                 \
104         tutorial-examples/023.c                                                 \
105         tutorial-examples/024.c                                                 \
106         tutorial-examples/025.c                                                 \
107         tutorial-examples/026.c
108
109 info_TEXINFOS =                                                 \
110         gnunet.texi                                             \
111         gnunet-c-tutorial.texi
112
113 gnunet_TEXINFOS =                                               \
114         chapters/developer.texi                                 \
115         chapters/installation.texi                              \
116         chapters/philosophy.texi                                \
117         chapters/user.texi                                      \
118         chapters/vocabulary.texi                                \
119         chapters/configuration.texi                             \
120         chapters/contributing.texi                              \
121         fdl-1.3.texi                                            \
122         gpl-3.0.texi
123
124 EXTRA_DIST =                                                    \
125         $(gnunet_TEXINFOS)                                      \
126         $(gnunet_tutorial_examples)                             \
127         htmlxref.cnf                                            \
128         run-gendocs.sh                                          \
129         docstyle.css
130
131
132 #       $(DOT_FILES)                                                            \
133 #       $(DOT_VECTOR_GRAPHICS)
134
135 DISTCLEANFILES =                                                \
136         gnunet.cps                                              \
137         gnunet-c-tutorial.cps                                   \
138         chapters/developer.cps                                  \
139         chapters/installation.cps                               \
140         chapter/philosophy.cps                                  \
141         chapters/user.cps                                       \
142         chapters/configuration.cps                              \
143         chapters/vocabulary.cps                                 \
144         fdl-1.3.cps                                             \
145         gpl-3.0.cps
146
147 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING
148 daemon_lego_block.png: images/daemon_lego_block.svg
149         convert images/daemon_lego_block.svg images/daemon_lego_block.png &&
150         pngcrush images/daemon_lego_block.png images/daemon_lego_block.png
151
152 service_lego_block.png: images/service_lego_block.svg
153         convert images/service_lego_block.svg images/service_lego_block.png &&
154         pngcrush images/service_lego_block.png images/serivce_lego_block.png
155
156 lego_stack.png: images/lego_stack.svg
157         convert images/lego_stack.svg images/lego_stack.png &&
158         pngcrush images/lego_stack.png images/lego_stack.png
159
160 # FIXME: The usage of 'date' strings causes a warning.
161 # version.texi:
162 #       echo "@set UPDATED $(date +'%d %B %Y')" > $@
163 #       echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
164 #       echo "@set EDITION $(PACKAGE_VERSION)" >> $@
165 #       echo "@set VERSION $(PACKAGE_VERSION)" >> $@
166
167 # Workaround for makeinfo error. Whcih in turn introduces more
168 # date-related 'warnings'. Well.
169 version2.texi:
170         echo "@set UPDATED $(date +'%d %B %Y')" > $@
171         echo "@set UPDATED-MONTH $(date +'%B %Y')" >> $@
172         echo "@set EDITION $(PACKAGE_VERSION)" >> $@
173         echo "@set VERSION $(PACKAGE_VERSION)" >> $@
174
175 # FIXME: rm *.html and *.pdf
176 #doc-clean:
177 #       @rm *.aux *.log *.toc *.cp *.cps
178
179 doc-all-install:
180         @mkdir -p $(DESTDIR)/$(docdir)
181         @mkdir -p $(DESTDIR)/$(infoimagedir)
182         @mkdir -p $(DESTDIR)/$(infodir)
183         @install -m 0755 gnunet.pdf $(DESTDIR)/$(docdir)
184         @install -m 0755 gnunet-c-tutorial.pdf $(DESTDIR)/$(docdir)
185         @install -m 0755 gnunet-c-tutorial.info $(DESTDIR)/$(infodir)
186         @install -m 0755 gnunet.info $(DESTDIR)/$(infodir)
187         @install gnunet.html $(DESTDIR)/$(docdir)
188         @install gnunet-c-tutorial.html $(DESTDIR)/$(docdir)
189
190 doc-gendoc-install:
191         @mkdir -p $(DESTDIR)/$(docdir)
192         @cp -r manual $(DESTDIR)/$(docdir)
193
194 #       @cp -r images $(DESTDIR)/$(infoimagedir)
195
196 dev-build: version.texi version2.texi
197         @makeinfo --pdf gnunet.texi
198         @makeinfo --pdf gnunet-c-tutorial.texi
199         @makeinfo --html gnunet.texi
200         @makeinfo --html gnunet-c-tutorial.texi
201         @makeinfo --no-split gnunet.texi
202         @makeinfo --no-split gnunet-c-tutorial.texi
203
204 # TODO: Add more to clean.
205 clean:
206         @rm -f gnunet.pdf
207         @rm -f gnunet.html
208         @rm -f gnunet.info
209         @rm -f gnunet.info-1
210         @rm -f gnunet.info-2
211         @rm -f gnunet.info-3
212         @rm -f gnunet-c-tutorial.pdf
213         @rm -f gnunet-c-tutorial.info
214         @rm -f gnunet-c-tutorial.html
215         @rm -fr gnunet.t2p
216         @rm -fr gnunet-c-tutorial.t2p
217         @rm -fr manual
218
219 # CLEANFILES =                                          \
220 #       gnunet.log                                      \
221 #       gnunet-c-tutorial.log                           \
222 #       $(wildcard *.aux)                               \
223 #       $(wildcard *.toc)                               \
224 #       $(wildcard *.cp)                                \
225 #       $(wildcard *.cps)
226
227 #.PHONY: version.texi
228 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_PDF
229
230 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_HTML
231
232 # endif
233 # endif
234 # endif