~ubuntu-branches/ubuntu/oneiric/gnutls26/oneiric

« back to all changes in this revision

Viewing changes to doc/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
## Process this file with automake to produce Makefile.in
2
 
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
 
2
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
 
3
# 2009, 2010 Free Software Foundation, Inc.
3
4
#
4
5
# Author: Nikos Mavrogiannopoulos
5
6
#
6
 
# This file is part of GNUTLS.
 
7
# This file is part of GnuTLS.
7
8
#
8
9
# This file is free software; you can redistribute it and/or modify it
9
10
# under the terms of the GNU General Public License as published by
20
21
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22
 
22
23
EXTRA_DIST = TODO README.gaa certtool.cfg gnutls.ps gnutls.pdf  \
23
 
        gnutls.html extract-guile-c-doc.scm doxygen/Doxyfile.in \
24
 
        doxygen/Doxyfile.orig texinfo.css
 
24
        gnutls.html doxygen/Doxyfile.in doxygen/Doxyfile.orig   \
 
25
        texinfo.css
25
26
 
26
27
SUBDIRS = examples cyclo scripts manpages credentials
27
28
if ENABLE_GTK_DOC
29
30
endif
30
31
 
31
32
info_TEXINFOS = gnutls.texi
32
 
gnutls_TEXINFOS = gnutls.texi                                           \
33
 
        fdl-1.3.texi lgpl-2.1.texi gpl-3.0.texi                         \
34
 
        gnutls-api.texi gnutls-extra-api.texi ia-api.texi               \
35
 
        x509-api.texi pgp-api.texi                                      \
36
 
        examples/ex-client1.c examples/ex-client2.c                     \
 
33
gnutls_TEXINFOS = gnutls.texi fdl-1.3.texi lgpl-2.1.texi gpl-3.0.texi
 
34
 
 
35
# Examples.
 
36
gnutls_TEXINFOS += examples/ex-client1.c examples/ex-client2.c          \
37
37
        examples/ex-session-info.c examples/ex-verify.c                 \
38
38
        examples/ex-cert-select.c examples/ex-client-resume.c           \
39
39
        examples/ex-client-srp.c examples/ex-client-tlsia.c             \
41
41
        examples/ex-serv-export.c examples/ex-serv-anon.c               \
42
42
        examples/ex-serv-pgp.c examples/ex-serv-srp.c                   \
43
43
        examples/ex-alert.c examples/ex-x509-info.c examples/ex-crq.c   \
44
 
        examples/ex-pkcs12.c guile.texi $(guile_texi)
45
 
 
46
 
# Generated texinfos.
47
 
gnutls_TEXINFOS += error_codes.texi algorithms.texi
48
 
MAINTAINERCLEANFILES = error_codes.texi algorithms.texi
 
44
        examples/ex-pkcs12.c
49
45
 
50
46
# Images.  Make sure there are eps + png + pdf of each, plus the source dia.
51
47
gnutls_TEXINFOS += gnutls-internals.dia gnutls-internals.eps            \
93
89
AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) \
94
90
        --no-split --css-include=$(srcdir)/texinfo.css
95
91
 
96
 
../lib/gnutls-api.texi:
97
 
        cd ../lib && make gnutls-api.texi
98
 
 
99
 
../libextra/gnutls-extra-api.texi:
100
 
        cd ../libextra && make gnutls-extra-api.texi
101
 
 
102
 
../lib/x509/x509-api.texi:
103
 
        cd ../lib/x509 && make x509-api.texi
104
 
 
105
 
../lib/openpgp/pgp-api.texi:
106
 
        cd ../lib/openpgp && make pgp-api.texi
107
 
 
108
 
../libextra/ia-api.texi:
109
 
        cd ../libextra && make ia-api.texi
110
 
 
111
 
gnutls-api.texi: ../lib/gnutls-api.texi
112
 
        -$(srcdir)/scripts/sort2.pl < ../lib/gnutls-api.texi > gnutls-api.texi
113
 
 
114
 
gnutls-extra-api.texi: ../libextra/gnutls-extra-api.texi
115
 
        -$(srcdir)/scripts/sort2.pl < ../libextra/gnutls-extra-api.texi > gnutls-extra-api.texi
116
 
 
117
 
x509-api.texi: ../lib/x509/x509-api.texi
118
 
        -$(srcdir)/scripts/sort2.pl < ../lib/x509/x509-api.texi > x509-api.texi
119
 
 
120
 
pgp-api.texi: ../lib/openpgp/pgp-api.texi
121
 
        -$(srcdir)/scripts/sort2.pl < ../lib/openpgp/pgp-api.texi > pgp-api.texi
122
 
 
123
 
ia-api.texi: ../libextra/ia-api.texi
124
 
        -$(srcdir)/scripts/sort2.pl < ../libextra/ia-api.texi > ia-api.texi
125
 
 
126
 
# Generated texinfos.
 
92
MAINTAINERCLEANFILES =
 
93
 
 
94
# Generated texinfos.
 
95
 
 
96
gnutls_TEXINFOS += gnutls-api.texi extra-api.texi ia-api.texi   \
 
97
        x509-api.texi pgp-api.texi
 
98
MAINTAINERCLEANFILES += gnutls-api.texi extra-api.texi ia-api.texi      \
 
99
        x509-api.texi pgp-api.texi
 
100
 
 
101
gnutls-api.texi: $(srcdir)/../lib/*.c
 
102
        echo "" > $@-tmp
 
103
        for i in $^; do \
 
104
                echo -n "Creating documentation for file $$i... " && \
 
105
                $(srcdir)/scripts/gdoc -texinfo $$i >> $@-tmp && \
 
106
                echo "ok"; \
 
107
        done
 
108
        $(srcdir)/scripts/sort2.pl < $@-tmp > $@-tmp2
 
109
        rm -f $@-tmp
 
110
        mv -f $@-tmp2 $@
 
111
 
 
112
x509-api.texi: $(srcdir)/../lib/x509/*.c
 
113
        echo "" > $@-tmp
 
114
        for i in $^; do \
 
115
                echo -n "Creating documentation for file $$i... " && \
 
116
                $(srcdir)/scripts/gdoc -texinfo $$i >> $@-tmp && \
 
117
                echo "ok"; \
 
118
        done
 
119
        $(srcdir)/scripts/sort2.pl < $@-tmp > $@-tmp2
 
120
        rm -f $@-tmp
 
121
        mv -f $@-tmp2 $@
 
122
 
 
123
pgp-api.texi: $(srcdir)/../lib/openpgp/*.c
 
124
        echo "" > $@-tmp
 
125
        for i in $^; do \
 
126
                echo -n "Creating documentation for file $$i... " && \
 
127
                $(srcdir)/scripts/gdoc -texinfo $$i >> $@-tmp && \
 
128
                echo "ok"; \
 
129
        done
 
130
        $(srcdir)/scripts/sort2.pl < $@-tmp > $@-tmp2
 
131
        rm -f $@-tmp
 
132
        mv -f $@-tmp2 $@
 
133
 
 
134
extra-api.texi: $(srcdir)/../libextra/gnutls_extra.c
 
135
        echo "" > $@-tmp
 
136
        for i in $^; do \
 
137
                echo -n "Creating documentation for file $$i... " && \
 
138
                $(srcdir)/scripts/gdoc -texinfo $$i >> $@-tmp && \
 
139
                echo "ok"; \
 
140
        done
 
141
        $(srcdir)/scripts/sort2.pl < $@-tmp > $@-tmp2
 
142
        rm -f $@-tmp
 
143
        mv -f $@-tmp2 $@
 
144
 
 
145
ia-api.texi: $(srcdir)/../libextra/gnutls_ia.c
 
146
        echo "" > $@-tmp
 
147
        for i in $^; do \
 
148
                echo -n "Creating documentation for file $$i... " && \
 
149
                $(srcdir)/scripts/gdoc -texinfo $$i >> $@-tmp && \
 
150
                echo "ok"; \
 
151
        done
 
152
        $(srcdir)/scripts/sort2.pl < $@-tmp > $@-tmp2
 
153
        rm -f $@-tmp
 
154
        mv -f $@-tmp2 $@
 
155
 
 
156
# Generated texinfos.
 
157
 
 
158
gnutls_TEXINFOS += error_codes.texi algorithms.texi
 
159
MAINTAINERCLEANFILES += error_codes.texi algorithms.texi
 
160
 
 
161
AM_CPPFLAGS = -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes
127
162
 
128
163
noinst_PROGRAMS = errcodes printlist
129
164
 
133
168
printlist_SOURCES = printlist.c
134
169
printlist_LDADD = ../lib/libgnutls.la ../gl/libgnu.la
135
170
 
136
 
AM_CPPFLAGS = -I$(top_srcdir)/lib/includes -I$(top_builddir)/lib/includes
137
 
 
138
171
error_codes.texi: $(top_srcdir)/lib/gnutls_errors.c $(srcdir)/errcodes.c
139
172
        make $(builddir)/errcodes
140
 
        $(builddir)/errcodes > error_codes.texi-tmp && \
141
 
                mv error_codes.texi-tmp error_codes.texi
 
173
        $(builddir)/errcodes > $@-tmp
 
174
        mv -f $@-tmp $@
142
175
 
143
176
algorithms.texi: $(srcdir)/printlist.c
144
177
        make $(builddir)/printlist
145
 
        $(builddir)/printlist > algorithms.texi-tmp && \
146
 
                mv algorithms.texi-tmp algorithms.texi
 
178
        $(builddir)/printlist > $@-tmp
 
179
        mv -f $@-tmp $@
 
180
 
 
181
# Guile texinfos.
147
182
 
148
183
guile_texi           = core.c.texi extra.c.texi
 
184
gnutls_TEXINFOS      += guile.texi $(guile_texi)
149
185
BUILT_SOURCES        = $(guile_texi)
150
186
MAINTAINERCLEANFILES += $(guile_texi)
151
 
EXTRA_DIST           += $(guile_texi)
 
187
EXTRA_DIST           += $(guile_texi) extract-guile-c-doc.scm
152
188
 
153
189
if HAVE_GUILE
154
190
 
155
 
#
156
 
# Guile documentation extraction from C code.
157
 
#
158
 
 
159
191
GUILE_FOR_BUILD =                               \
160
192
  GUILE_AUTO_COMPILE=0                          \
161
193
  $(GUILE) -L $(top_srcdir)/guile/modules