Finish adding api-regex.texi
[bpt/guile.git] / doc / ref / Makefile.am
1 ## Process this file with Automake to create Makefile.in
2 ##
3 ## Copyright (C) 1998, 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
4 ##
5 ## This file is part of GUILE.
6 ##
7 ## GUILE is free software; you can redistribute it and/or modify it
8 ## under the terms of the GNU Lesser General Public License as
9 ## published by the Free Software Foundation; either version 3, or
10 ## (at your option) any later version.
11 ##
12 ## GUILE is distributed in the hope that it will be useful, but
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU Lesser General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU Lesser General Public
18 ## License along with GUILE; see the file COPYING.LESSER. If not,
19 ## write to the Free Software Foundation, Inc., 51 Franklin Street,
20 ## Fifth Floor, Boston, MA 02110-1301 USA
21
22 AUTOMAKE_OPTIONS = gnu
23
24 BUILT_SOURCES = standard-library.texi
25
26 info_TEXINFOS = guile.texi
27
28 guile_TEXINFOS = preface.texi \
29 intro.texi \
30 tour.texi \
31 libguile-program.texi \
32 scheme-intro.texi \
33 api-scm.texi \
34 api-snarf.texi \
35 api-smobs.texi \
36 scheme-ideas.texi \
37 api-data.texi \
38 api-procedures.texi \
39 api-macros.texi \
40 api-utility.texi \
41 api-binding.texi \
42 api-control.texi \
43 api-io.texi \
44 api-foreign.texi \
45 api-regex.texi \
46 api-lalr.texi \
47 api-languages.texi \
48 api-evaluation.texi \
49 api-memory.texi \
50 api-modules.texi \
51 api-scheduling.texi \
52 api-options.texi \
53 api-i18n.texi \
54 api-debug.texi \
55 api-coverage.texi \
56 scheme-reading.texi \
57 scheme-indices.texi \
58 slib.texi \
59 posix.texi \
60 expect.texi \
61 scsh.texi \
62 sxml-match.texi \
63 scheme-scripts.texi \
64 api-overview.texi \
65 api-deprecated.texi \
66 scheme-using.texi \
67 indices.texi \
68 script-getopt.texi \
69 data-rep.texi \
70 repl-modules.texi \
71 srfi-modules.texi \
72 r6rs.texi \
73 match.texi \
74 misc-modules.texi \
75 api-compound.texi \
76 autoconf.texi \
77 autoconf-macros.texi \
78 tools.texi \
79 history.texi \
80 vm.texi \
81 compiler.texi \
82 fdl.texi \
83 libguile-concepts.texi \
84 libguile-smobs.texi \
85 libguile-snarf.texi \
86 libguile-linking.texi \
87 libguile-extensions.texi \
88 api-init.texi \
89 mod-getopt-long.texi \
90 goops.texi \
91 goops-tutorial.texi \
92 effective-version.texi
93
94 ETAGS_ARGS = $(info_TEXINFOS) $(guile_TEXINFOS)
95
96 PICTURES = hierarchy.eps \
97 hierarchy.pdf \
98 hierarchy.png \
99 hierarchy.txt \
100 gds.eps \
101 gds.pdf \
102 gds.txt \
103 scheme.eps \
104 scheme.pdf \
105 scheme.txt \
106 mop.text
107
108 noinst_DATA = $(PICTURES)
109
110 EXTRA_DIST = ChangeLog-2008 $(PICTURES)
111
112 include $(top_srcdir)/am/pre-inst-guile
113
114 # Automated snarfing
115
116 autoconf.texi: autoconf-macros.texi
117 autoconf-macros.texi: $(top_srcdir)/meta/guile.m4
118 GUILE_AUTO_COMPILE=0 $(top_builddir)/meta/uninstalled-env guile-tools \
119 snarf-guile-m4-docs $(top_srcdir)/meta/guile.m4 \
120 > $(srcdir)/$@
121
122 MAINTAINERCLEANFILES = autoconf-macros.texi
123
124 # Support for snarfing docs out of Scheme modules.
125 snarf_doc = standard-library
126
127 $(snarf_doc).am: $(snarf_doc).scm
128 GUILE_AUTO_COMPILE=0 ; \
129 variable="`echo $(snarf_doc) | tr - _`_scm_files" ; \
130 "$(preinstguile)" -l "$(srcdir)/$(snarf_doc).scm" -c " \
131 (format #t \"# Automatically generated, do not edit.~%\") \
132 (format #t \"$$variable = \") \
133 (for-each (lambda (m) \
134 (format #t \"$$""(top_srcdir)/module/~a.scm \" \
135 (string-join (map symbol->string m) \"/\"))) \
136 (map car *modules*))" > "$@.tmp"
137 mv "$@.tmp" "$@"
138
139 # The following line leads to the definition of $(standard_library_scm_files).
140 include standard-library.am
141
142 $(snarf_doc).texi: $(standard_library_scm_files)
143 GUILE_AUTO_COMPILE=0 \
144 "$(preinstguile)" "$(srcdir)/make-texinfo.scm" \
145 "$(abs_srcdir)/$(snarf_doc).scm" > "$@.tmp"
146 mv "$@.tmp" "$@"
147
148 CLEANFILES = $(snarf_doc).texi
149 EXTRA_DIST += $(snarf_doc).scm make-texinfo.scm $(snarf_doc).texi $(snarf_doc).am