add PEG parser generator
[bpt/guile.git] / doc / ref / Makefile.am
CommitLineData
11ca8865
NJ
1## Process this file with Automake to create Makefile.in
2##
41d82ac9
LC
3## Copyright (C) 1998, 2004, 2006, 2008, 2009, 2010,
4## 2011 Free Software Foundation, Inc.
11ca8865
NJ
5##
6## This file is part of GUILE.
c8af48ba 7##
53befeb7
NJ
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
11ca8865 11## (at your option) any later version.
c8af48ba 12##
11ca8865
NJ
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
53befeb7 16## GNU Lesser General Public License for more details.
c8af48ba 17##
53befeb7
NJ
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
11ca8865
NJ
22
23AUTOMAKE_OPTIONS = gnu
24
d773d4c8 25BUILT_SOURCES = standard-library.texi
b89c4943 26
11ca8865
NJ
27info_TEXINFOS = guile.texi
28
237be238
MV
29guile_TEXINFOS = preface.texi \
30 intro.texi \
ff6182ed 31 tour.texi \
9cbbb400 32 libguile-parallel.texi \
237be238
MV
33 libguile-program.texi \
34 scheme-intro.texi \
07d83abe
MV
35 api-scm.texi \
36 api-snarf.texi \
37 api-smobs.texi \
237be238 38 scheme-ideas.texi \
07d83abe
MV
39 api-data.texi \
40 api-procedures.texi \
e4955559 41 api-macros.texi \
07d83abe
MV
42 api-utility.texi \
43 api-binding.texi \
44 api-control.texi \
45 api-io.texi \
726b8ba3 46 api-foreign.texi \
b215e5b2 47 api-regex.texi \
2115b8eb 48 api-lalr.texi \
eee0877c 49 api-peg.texi \
e6709db6 50 api-languages.texi \
07d83abe
MV
51 api-evaluation.texi \
52 api-memory.texi \
53 api-modules.texi \
54 api-scheduling.texi \
55 api-options.texi \
fd936c91 56 api-i18n.texi \
07d83abe 57 api-debug.texi \
36b5e394 58 api-coverage.texi \
237be238
MV
59 scheme-reading.texi \
60 scheme-indices.texi \
61 slib.texi \
62 posix.texi \
8db7e094 63 web.texi \
237be238
MV
64 expect.texi \
65 scsh.texi \
98553883 66 curried.texi \
400a5dcb 67 sxml-match.texi \
07d83abe 68 scheme-scripts.texi \
07d83abe 69 api-overview.texi \
1435c7dc 70 api-deprecated.texi \
46f7666d 71 scheme-using.texi \
237be238 72 indices.texi \
237be238
MV
73 data-rep.texi \
74 repl-modules.texi \
75 srfi-modules.texi \
845cbcfe 76 r6rs.texi \
358663ca 77 match.texi \
237be238 78 misc-modules.texi \
07d83abe 79 api-compound.texi \
98518c96 80 libguile-autoconf.texi \
237be238
MV
81 autoconf-macros.texi \
82 tools.texi \
8680d53b
AW
83 history.texi \
84 vm.texi \
85 compiler.texi \
237be238
MV
86 fdl.texi \
87 libguile-concepts.texi \
88 libguile-smobs.texi \
89 libguile-snarf.texi \
90 libguile-linking.texi \
91 libguile-extensions.texi \
07d83abe 92 api-init.texi \
eb12b401
NJ
93 mod-getopt-long.texi \
94 goops.texi \
22b5f518 95 goops-tutorial.texi \
ea5c9ddc 96 guile-invoke.texi \
22b5f518 97 effective-version.texi
11ca8865 98
2a946b44
NJ
99ETAGS_ARGS = $(info_TEXINFOS) $(guile_TEXINFOS)
100
5e328915
NJ
101PICTURES = hierarchy.eps \
102 hierarchy.pdf \
103 hierarchy.png \
104 hierarchy.txt \
e163dd34
BG
105 gds.eps \
106 gds.pdf \
107 gds.txt \
108 scheme.eps \
109 scheme.pdf \
110 scheme.txt \
5e328915
NJ
111 mop.text
112
e163dd34
BG
113noinst_DATA = $(PICTURES)
114
5e328915 115EXTRA_DIST = ChangeLog-2008 $(PICTURES)
61db429e 116
a1f000d5
TTN
117# Automated snarfing
118
98518c96 119libguile-autoconf.texi: autoconf-macros.texi
0b6d8fdc 120autoconf-macros.texi: $(top_srcdir)/meta/guile.m4
b8b06598 121 GUILE_AUTO_COMPILE=0 $(top_builddir)/meta/uninstalled-env guild \
d1529ddf 122 snarf-guile-m4-docs $(top_srcdir)/meta/guile.m4 \
a7286720 123 > $(srcdir)/$@
a1f000d5 124
6ef7423a 125MAINTAINERCLEANFILES = autoconf-macros.texi
17dce950 126
c55cb58a 127# Support for snarfing docs out of Scheme modules.
e3eefae0
LC
128snarf_doc = standard-library
129
130$(snarf_doc).am: $(snarf_doc).scm
131 GUILE_AUTO_COMPILE=0 ; \
132 variable="`echo $(snarf_doc) | tr - _`_scm_files" ; \
6b8bc6f8
NJ
133 "$(top_builddir_absolute)/meta/guile" -l "$(srcdir)/$(snarf_doc).scm" \
134 -c " \
e3eefae0
LC
135 (format #t \"# Automatically generated, do not edit.~%\") \
136 (format #t \"$$variable = \") \
137 (for-each (lambda (m) \
93003b16
LC
138 (format #t \"$$""(top_srcdir)/module/~a.scm \" \
139 (string-join (map symbol->string m) \"/\"))) \
140 (map car *modules*))" > "$@.tmp"
e3eefae0
LC
141 mv "$@.tmp" "$@"
142
143# The following line leads to the definition of $(standard_library_scm_files).
144include standard-library.am
145
146$(snarf_doc).texi: $(standard_library_scm_files)
147 GUILE_AUTO_COMPILE=0 \
6b8bc6f8 148 "$(top_builddir_absolute)/meta/guile" "$(srcdir)/make-texinfo.scm" \
87bc7c81 149 "$(abs_srcdir)/$(snarf_doc).scm" > "$@.tmp"
e3eefae0
LC
150 mv "$@.tmp" "$@"
151
41d82ac9 152DISTCLEANFILES = $(snarf_doc).texi
e3eefae0 153EXTRA_DIST += $(snarf_doc).scm make-texinfo.scm $(snarf_doc).texi $(snarf_doc).am
863f1196
AW
154
155
156www-commit: html
157 cd guile.html; \
158 cvs -d :ext:cvs.sv.gnu.org:/web/guile \
159 import -m 'make www-commit in doc/ref' guile/docs/master/guile.html gnu \
160 $(shell date "+D%Y%m%d%H%M%S")