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