1 # This Makefile.am is in the public domain
2 docdir = $(datadir)/doc/gnunet/
4 infoimagedir = $(infodir)/images
6 #DOT_FILES = images/$(wildcard *.dot)
8 #DOT_VECTOR_GRAPHICS = \
9 # $(DOT_FILES:%.dot=%.eps) \
10 # $(DOT_FILES:%.dot=%.pdf)
12 AM_MAKEINFOHTMLFLAGS = --no-split --css-ref=docstyle.css
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-download-area.png \
23 images/gnunet-gtk-0-10-search-selected.png \
24 images/gnunet-gtk-0-10-fs-menu.png \
25 images/gnunet-gtk-0-10-traffic.png \
26 images/gnunet-gtk-0-10-fs.png \
27 images/gnunet-namestore-gtk-phone.png \
28 images/gnunet-gtk-0-10-fs-publish-editing.png \
29 images/gnunet-namestore-gtk-vpn.png \
30 images/gnunet-gtk-0-10-fs-published.png \
31 images/gnunet-setup-exit.png \
32 images/gnunet-gtk-0-10-fs-publish.png \
33 images/iceweasel-preferences.png \
34 images/gnunet-gtk-0-10-fs-publish-select.png \
35 images/iceweasel-proxy.png \
36 images/gnunet-gtk-0-10-fs-publish-with-file_0.png \
37 images/service_lego_block.png \
38 images/gnunet-gtk-0-10-fs-publish-with-file.png \
39 images/service_stack.png \
40 images/gnunet-gtk-0-10-fs-search.png \
41 images/gnunet-tutorial-service.png \
42 images/gnunet-tutorial-system.png \
43 images/daemon_lego_block.svg \
44 images/lego_stack.svg \
45 images/service_lego_block.svg \
46 images/structure.dot \
49 # images/$(wildcard *.png) \
50 # images/$(wildcard *.svg)
51 # $(DOT_FILES:%.dot=%.png)
54 # -Gratio=.9 -Gnodesep=.005 -Granksep=.00005 \
55 # -Nfontsite=9 -Nheight=.1 -Nwidth=.1
58 # $(AM_V_DOT)$(DOT) -Tpng $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
59 # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
62 # $(AM_V_DOT)$(DOT) -Tpdf $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
63 # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
66 # $(AM_V_DOT)$(DOT) -Teps $(DOT_OPTIONS) < "$<" > "$(srcdir)/$@.tmp"; \
67 # mv "$(srcdir)/$@.tmp" "$(srcdir)/$@"
70 # $(AM_V_GEN)convert "$<" "$@-tmp.eps"; \
71 # mv "$@-tmp.eps" "$@"
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
84 chapters/developer.texi \
85 chapters/preface.texi \
86 chapters/philosophy.texi \
87 chapters/installation.texi \
89 chapters/vocabulary.texi \
90 chapters/configuration.texi \
91 chapters/contributing.texi \
105 # $(DOT_VECTOR_GRAPHICS)
109 chapters/developer.cps \
110 chapters/installation.cps \
111 chapter/philosophy.cps \
113 chapters/configuration.cps \
114 chapters/terminology.cps \
115 chapters/vocabulary.cps \
120 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING
121 daemon_lego_block.png: images/daemon_lego_block.svg
122 convert images/daemon_lego_block.svg images/daemon_lego_block.png &&
123 pngcrush images/daemon_lego_block.png images/daemon_lego_block.png
125 service_lego_block.png: images/service_lego_block.svg
126 convert images/service_lego_block.svg images/service_lego_block.png &&
127 pngcrush images/service_lego_block.png images/serivce_lego_block.png
129 lego_stack.png: images/lego_stack.svg
130 convert images/lego_stack.svg images/lego_stack.png &&
131 pngcrush images/lego_stack.png images/lego_stack.png
133 # XXX: is this sed invocation portable enough? otherwise try tr(1).
134 version.texi/replacement: version.texi/replacement/revert
135 @sed -i "s/GPACKAGE_VERSION/$(PACKAGE_VERSION)/g" gversion.texi
137 version.texi/replacement/revert:
138 @echo "@set VERSION GPACKAGE_VERSION" > gversion.texi
139 @echo "@set EDITION GPACKAGE_VERSION" >> gversion.texi
141 if TEXI2MDOC_GENERATION
142 gnunet-documentation.7: version.texi/replacement
143 @echo Attempting to output an mdoc formatted section 7 document
144 @texi2mdoc -I$(pwd):$(pwd)/chapters gnunet.texi > ../man/gnunet-documentation.7
146 # TODO: (Maybe) other outputs resulting from this.
149 # FIXME: rm *.html and *.pdf
151 # @rm *.aux *.log *.toc *.cp *.cps
153 all: version.texi/replacement
156 @mkdir -p $(DESTDIR)/$(docdir)
157 @mkdir -p $(DESTDIR)/$(infoimagedir)
158 @mkdir -p $(DESTDIR)/$(infodir)
159 @install -m 0755 gnunet.pdf $(DESTDIR)/$(docdir)
160 @install -m 0755 gnunet.info $(DESTDIR)/$(infodir)
161 @install gnunet.html $(DESTDIR)/$(docdir)
164 @mkdir -p $(DESTDIR)/$(docdir)
165 @cp -r manual $(DESTDIR)/$(docdir)
167 # @cp -r images $(DESTDIR)/$(infoimagedir)
169 dev-build: version.texi/replacement
170 @makeinfo --pdf gnunet.texi
171 @makeinfo --html gnunet.texi
172 @makeinfo --no-split gnunet.texi
174 # TODO: Add more to clean.
175 clean: version.texi/replacement/revert
183 @rm -fr gnunet-c-tutorial.t2p
188 # gnunet-c-tutorial.log \
189 # $(wildcard *.aux) \
190 # $(wildcard *.toc) \
194 #.PHONY: version.texi
195 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_PDF
197 # if HAVE_EXTENDED_DOCUMENTATION_BUILDING_HTML