1 TEX_OBJECTS = gnutls.tex macros.tex macros-epub.tex fdl.tex cover.tex gnutls.bib \
4 GEN_TEX_OBJECTS = cha-preface.tex cha-library.tex cha-intro-tls.tex cha-cert-auth2.tex \
5 cha-cert-auth.tex cha-gtls-app.tex sec-tls-app.tex cha-programs.tex cha-support.tex \
6 cha-functions.tex error_codes.tex cha-ciphersuites.tex algorithms.tex cha-shared-key.tex \
7 cha-errors.tex alerts.tex cha-internals.tex cha-gtls-examples.tex cha-upgrade.tex \
8 invoke-certtool.tex invoke-gnutls-cli.tex invoke-gnutls-serv.tex cha-tokens.tex \
9 invoke-srptool.tex invoke-psktool.tex invoke-gnutls-cli-debug.tex \
10 invoke-p11tool.tex invoke-ocsptool.tex invoke-tpmtool.tex invoke-danetool.tex
12 invoke-certtool.tex: ../invoke-certtool.texi
13 ../scripts/mytexi2latex $< > $@
15 cha-upgrade.tex: ../cha-upgrade.texi
16 ../scripts/mytexi2latex $< > $@
18 cha-tokens.tex: ../cha-tokens.texi
19 ../scripts/mytexi2latex $< > $@
21 invoke-gnutls-cli.tex: ../invoke-gnutls-cli.texi
22 ../scripts/mytexi2latex $< > $@
24 invoke-tpmtool.tex: ../invoke-tpmtool.texi
25 ../scripts/mytexi2latex $< > $@
27 invoke-danetool.tex: ../invoke-danetool.texi
28 ../scripts/mytexi2latex $< > $@
30 invoke-gnutls-serv.tex: ../invoke-gnutls-serv.texi
31 ../scripts/mytexi2latex $< > $@
33 invoke-srptool.tex: ../invoke-srptool.texi
34 ../scripts/mytexi2latex $< > $@
36 invoke-psktool.tex: ../invoke-psktool.texi
37 ../scripts/mytexi2latex $< > $@
39 invoke-gnutls-cli-debug.tex: ../invoke-gnutls-cli-debug.texi
40 ../scripts/mytexi2latex $< > $@
42 invoke-p11tool.tex: ../invoke-p11tool.texi
43 ../scripts/mytexi2latex $< > $@
45 invoke-ocsptool.tex: ../invoke-ocsptool.texi
46 ../scripts/mytexi2latex $< > $@
48 cha-preface.tex: ../cha-preface.texi
49 ../scripts/mytexi2latex $< > $@
51 cha-library.tex: ../cha-library.texi
52 ../scripts/mytexi2latex $< > $@
54 cha-intro-tls.tex: ../cha-intro-tls.texi
55 ../scripts/mytexi2latex $< > $@
57 cha-shared-key.tex: ../cha-shared-key.texi
58 ../scripts/mytexi2latex $< > $@
60 cha-cert-auth.tex: ../cha-cert-auth.texi
61 ../scripts/mytexi2latex $< > $@
63 cha-cert-auth2.tex: ../cha-cert-auth2.texi
64 ../scripts/mytexi2latex $< > $@
66 cha-gtls-app.tex: ../cha-gtls-app.texi
67 ../scripts/mytexi2latex $< > $@
69 cha-gtls-examples.tex: ../cha-gtls-examples.texi
70 ../scripts/mytexi2latex $< > $@
72 sec-tls-app.tex: ../sec-tls-app.texi
73 ../scripts/mytexi2latex $< > $@
75 cha-programs.tex: ../cha-programs.texi
76 ../scripts/mytexi2latex $< > $@
78 cha-support.tex: ../cha-support.texi
79 ../scripts/mytexi2latex $< > $@
81 cha-functions.tex: ../cha-functions.texi
82 ../scripts/mytexi2latex $< > $@
84 cha-internals.tex: ../cha-internals.texi
85 ../scripts/mytexi2latex $< > $@
87 cha-errors.tex: ../cha-errors.texi
88 ../scripts/mytexi2latex $< > $@
90 cha-ciphersuites.tex: ../cha-ciphersuites.texi
91 ../scripts/mytexi2latex $< > $@
93 error_codes.tex: $(top_srcdir)/lib/gnutls_errors.c
94 $(MAKE) -C .. errcodes printlist alert-printlist
95 $(builddir)/../errcodes --latex > $@-tmp
99 $(MAKE) -C .. errcodes printlist alert-printlist
100 $(builddir)/../printlist --latex > $@-tmp
104 $(MAKE) -C .. errcodes printlist alert-printlist
105 $(builddir)/../alert-printlist --latex > $@-tmp
108 gnutls-api.tex: $(srcdir)/../../lib/*.c $(srcdir)/../../lib/ext/*.c $(srcdir)/../../lib/auth/*.c $(srcdir)/../../lib/algorithms/*.c
111 echo -n "Creating documentation for file $$i... " && \
112 $(srcdir)/../scripts/gdoc -tex $$i >> $@-tmp && \
115 $(srcdir)/../scripts/sort1.pl < $@-tmp > $@-tmp2
116 $(srcdir)/../scripts/split.pl functions < $@-tmp
120 gnutls-enums.tex: $(srcdir)/../../lib/includes/gnutls/*.h $(srcdir)/../../libdane/includes/gnutls/*.h
123 echo -n "Creating documentation for file $$i... " && \
124 $(srcdir)/../scripts/gdoc -tex $$i >> $@-tmp && \
127 $(srcdir)/../scripts/split.pl enums enum < $@-tmp
130 x509-api.tex: $(srcdir)/../../lib/x509/*.c
133 echo -n "Creating documentation for file $$i... " && \
134 $(srcdir)/../scripts/gdoc -tex $$i >> $@-tmp && \
137 $(srcdir)/../scripts/sort1.pl < $@-tmp > $@-tmp2
138 $(srcdir)/../scripts/split.pl functions < $@-tmp
142 dane-api.tex: $(srcdir)/../../libdane/*.c
145 echo -n "Creating documentation for file $$i... " && \
146 $(srcdir)/../scripts/gdoc -tex $$i >> $@-tmp && \
149 $(srcdir)/../scripts/sort1.pl < $@-tmp > $@-tmp2 2>/dev/null
150 $(srcdir)/../scripts/split.pl functions < $@-tmp 2>/dev/null
154 pgp-api.tex: $(srcdir)/../../lib/openpgp/*.c
157 echo -n "Creating documentation for file $$i... " && \
158 $(srcdir)/../scripts/gdoc -tex $$i >> $@-tmp && \
161 $(srcdir)/../scripts/sort1.pl < $@-tmp > $@-tmp2
162 $(srcdir)/../scripts/split.pl functions < $@-tmp
166 SOURCE_GEN_FILES = pgp-api.tex x509-api.tex gnutls-api.tex gnutls-enums.tex dane-api.tex
168 PDF_FILES = gnutls-client-server-use-case.pdf gnutls-crypto-layers.pdf \
169 gnutls-handshake-sequence.pdf gnutls-handshake-state.pdf \
170 gnutls-internals.pdf gnutls-layers.pdf gnutls-logo.pdf \
171 gnutls-modauth.pdf gnutls-pgp.pdf gnutls-x509.pdf pkcs11-vision.pdf
173 gnutls.pdf: $(SOURCE_GEN_FILES) $(TEX_OBJECTS) $(GEN_TEX_OBJECTS)
174 $(MAKE) -C .. errcodes printlist alert-printlist
175 sed -i 's/\@VERSION\@/$(VERSION)/g' $^
176 # for i in $(PDF_FILES);do cp ../$$i .;done
180 pdflatex gnutls.tex && pdflatex gnutls.tex
181 # for i in $(PDF_FILES);do rm -f $$i;done
183 PNG_FILES = gnutls-client-server-use-case.png gnutls-crypto-layers.png \
184 gnutls-handshake-sequence.png gnutls-handshake-state.png \
185 gnutls-internals.png gnutls-layers.png gnutls-logo.png \
186 gnutls-modauth.png gnutls-pgp.png gnutls-x509.png pkcs11-vision.png
188 epub.html: $(SOURCE_GEN_FILES) $(TEX_OBJECTS) $(GEN_TEX_OBJECTS)
189 $(MAKE) -C .. errcodes printlist alert-printlist
191 for i in $(PNG_FILES);do cp ../$$i epub;done
192 htlatex epub.tex "xhtml,pmathml" " -cunihtf -utf8 -cvalidate'"
195 htlatex epub.tex "xhtml,pmathml" " -cunihtf -utf8 -cvalidate'"
197 sed -i 's/\.\.\//\.\//g' epub/epub.html
198 cd epub && zip gnutls-epub.zip *
199 # for i in $(PNG_FILES);do rm -f $$i;done
202 rm -f $(GEN_TEX_OBJECTS) $(SOURCE_GEN_FILES) gnutls.aux gnutls.bbl gnutls.blg gnutls.idx \
203 gnutls.ilg gnutls.ind gnutls.log gnutls.out gnutls.toc epub.4ct epub.4tc epub.aux epub.bbl \
204 epub.blg epub.css epub.dvi epub*.html epub.idv epub.idx epub.ilg epub.ind epub.lg epub.lof \
205 epub.log epub.lot epub.out epub.xref epub.toc epub.tmp
206 rm -rf functions enums epub $(PNG_FILES) $(PDF_FILES)