1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
4 # Author: Nikos Mavrogiannopoulos
6 # This file is part of GNUTLS.
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # This file is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this file; if not, write to the Free Software Foundation,
20 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 EXTRA_DIST = TODO README.GIT README.autoconf certtool.cfg \
23 gnutls.ps gnutls.pdf gnutls.html \
24 extract-guile-c-doc.scm
25 SUBDIRS = examples scripts manpages credentials
30 info_TEXINFOS = gnutls.texi
31 gnutls_TEXINFOS = gnutls.texi signatures.texi fdl.texi lgpl-2.1.texi \
32 gpl-3.0.texi error_codes.texi gnutls-api.texi \
33 gnutls-extra-api.texi ia-api.texi x509-api.texi pgp-api.texi \
34 examples/ex-client1.c examples/ex-client2.c \
35 examples/ex-session-info.c examples/ex-verify.c \
36 examples/ex-cert-select.c examples/ex-client-resume.c \
37 examples/ex-client-srp.c examples/ex-client-tlsia.c \
38 examples/ex-rfc2818.c examples/ex-serv1.c \
39 examples/ex-serv-export.c examples/ex-serv-anon.c \
40 examples/ex-serv-pgp.c examples/ex-serv-srp.c \
41 examples/ex-alert.c examples/ex-x509-info.c examples/ex-crq.c \
42 examples/ex-pkcs12.c guile.texi $(guile_texi)
44 # Images. Make sure there are eps + png + pdf of each, plus the source dia.
45 gnutls_TEXINFOS += gnutls-internals.dia gnutls-internals.eps \
46 gnutls-internals.png gnutls-internals.pdf
47 gnutls_TEXINFOS += gnutls-layers.dia gnutls-layers.eps \
48 gnutls-layers.png gnutls-layers.pdf
49 gnutls_TEXINFOS += gnutls-pgp.dia gnutls-pgp.eps gnutls-pgp.png \
51 gnutls_TEXINFOS += gnutls-x509.dia gnutls-x509.eps gnutls-x509.png \
53 gnutls_TEXINFOS += gnutls-logo.eps gnutls-logo.png gnutls-logo.pdf
55 # Images. Make sure there are eps + png + pdf of each, plus the source dia.
56 gnutls_TEXINFOS += gnutls-certificate-user-use-case.dia \
57 gnutls-certificate-user-use-case.eps \
58 gnutls-certificate-user-use-case.pdf \
59 gnutls-certificate-user-use-case.png
60 gnutls_TEXINFOS += gnutls-client-server-use-case.dia \
61 gnutls-client-server-use-case.eps \
62 gnutls-client-server-use-case.pdf \
63 gnutls-client-server-use-case.png
64 gnutls_TEXINFOS += gnutls-extensions_st.dia gnutls-extensions_st.eps \
65 gnutls-extensions_st.pdf gnutls-extensions_st.png
66 gnutls_TEXINFOS += gnutls-handshake-sequence.dia \
67 gnutls-handshake-sequence.eps gnutls-handshake-sequence.pdf \
68 gnutls-handshake-sequence.png
69 gnutls_TEXINFOS += gnutls-handshake-state.dia \
70 gnutls-handshake-state.eps gnutls-handshake-state.pdf \
71 gnutls-handshake-state.png
72 gnutls_TEXINFOS += gnutls-mod_auth_st.dia gnutls-mod_auth_st.eps \
73 gnutls-mod_auth_st.pdf gnutls-mod_auth_st.png
74 gnutls_TEXINFOS += gnutls-objects.dia gnutls-objects.eps \
75 gnutls-objects.pdf gnutls-objects.png
77 imagesdir = $(infodir)
78 images_DATA = gnutls-certificate-user-use-case.png \
79 gnutls-extensions_st.png gnutls-handshake-state.png \
80 gnutls-layers.png gnutls-mod_auth_st.png gnutls-pgp.png \
81 gnutls-client-server-use-case.png \
82 gnutls-handshake-sequence.png gnutls-internals.png \
83 gnutls-logo.png gnutls-objects.png gnutls-x509.png
85 AM_MAKEINFOFLAGS = -I $(top_srcdir)/doc
86 TEXI2DVI = texi2dvi $(AM_MAKEINFOFLAGS)
87 AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) \
90 ../lib/gnutls-api.texi:
91 cd ../lib && make gnutls-api.texi
93 ../libextra/gnutls-extra-api.texi:
94 cd ../libextra && make gnutls-extra-api.texi
96 ../lib/x509/x509-api.texi:
97 cd ../lib/x509 && make x509-api.texi
99 ../lib/openpgp/pgp-api.texi:
100 cd ../lib/openpgp && make pgp-api.texi
102 ../libextra/ia-api.texi:
103 cd ../libextra && make ia-api.texi
105 gnutls-api.texi: ../lib/gnutls-api.texi
106 -$(srcdir)/scripts/sort2.pl < ../lib/gnutls-api.texi > gnutls-api.texi
108 gnutls-extra-api.texi: ../libextra/gnutls-extra-api.texi
109 -$(srcdir)/scripts/sort2.pl < ../libextra/gnutls-extra-api.texi > gnutls-extra-api.texi
111 x509-api.texi: ../lib/x509/x509-api.texi
112 -$(srcdir)/scripts/sort2.pl < ../lib/x509/x509-api.texi > x509-api.texi
114 pgp-api.texi: ../lib/openpgp/pgp-api.texi
115 -$(srcdir)/scripts/sort2.pl < ../lib/openpgp/pgp-api.texi > pgp-api.texi
117 ia-api.texi: ../libextra/ia-api.texi
118 -$(srcdir)/scripts/sort2.pl < ../libextra/ia-api.texi > ia-api.texi
120 error_codes.texi: ../lib/gnutls_errors.c ../src/errcodes.c
121 -../src/errcodes > error_codes.texi
124 guile_texi = core.c.texi extra.c.texi
125 BUILT_SOURCES = $(guile_texi)
126 MAINTAINERCLEANFILES = $(guile_texi)
127 EXTRA_DIST += $(guile_texi)
132 # Guile documentation extraction from C code.
135 GUILE_FOR_BUILD = $(GUILE) -L $(top_srcdir)/guile/modules
137 SNARF_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir) \
138 -I$(top_srcdir)/includes -I$(top_builddir)/includes \
139 -I$(top_srcdir)/guile/src -I$(top_builddir)/guile/src
141 core.c.texi: $(top_srcdir)/guile/src/core.c
142 $(MAKE) -C ../guile/src built-sources && \
143 $(GUILE_FOR_BUILD) -l "$(srcdir)/extract-guile-c-doc.scm" \
144 -e '(apply main (cdr (command-line)))' \
145 -- "$^" "$(CPP)" "$(SNARF_CPPFLAGS) $(CPPFLAGS)" \
148 extra.c.texi: $(top_srcdir)/guile/src/extra.c
149 $(MAKE) -C ../guile/src built-sources && \
150 $(GUILE_FOR_BUILD) -l "$(srcdir)/extract-guile-c-doc.scm" \
151 -e '(apply main (cdr (command-line)))' \
152 -- "$^" "$(CPP)" "$(SNARF_CPPFLAGS) $(CPPFLAGS)" \
159 echo "(Guile not available, documentation not generated.)" > $@
162 echo "(Guile not available, documentation not generated.)" > $@