Add copyight/license header in `compile-psyntax.scm'.
[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 = lib-version.texi 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-lalr.texi \
46 api-languages.texi \
47 api-evaluation.texi \
48 api-memory.texi \
49 api-modules.texi \
50 api-scheduling.texi \
51 api-options.texi \
52 api-i18n.texi \
53 api-debug.texi \
54 api-coverage.texi \
55 scheme-reading.texi \
56 scheme-indices.texi \
57 slib.texi \
58 posix.texi \
59 expect.texi \
60 scsh.texi \
61 scheme-scripts.texi \
62 api-overview.texi \
63 api-discdepr.texi \
64 scheme-debugging.texi \
65 scheme-using.texi \
66 indices.texi \
67 script-getopt.texi \
68 data-rep.texi \
69 repl-modules.texi \
70 srfi-modules.texi \
71 misc-modules.texi \
72 api-compound.texi \
73 autoconf.texi \
74 autoconf-macros.texi \
75 tools.texi \
76 history.texi \
77 vm.texi \
78 compiler.texi \
79 fdl.texi \
80 libguile-concepts.texi \
81 libguile-smobs.texi \
82 libguile-snarf.texi \
83 libguile-linking.texi \
84 libguile-extensions.texi \
85 api-init.texi \
86 mod-getopt-long.texi \
87 goops.texi \
88 goops-tutorial.texi \
89 effective-version.texi
90
91 ETAGS_ARGS = $(info_TEXINFOS) $(guile_TEXINFOS)
92
93 PICTURES = hierarchy.eps \
94 hierarchy.pdf \
95 hierarchy.png \
96 hierarchy.txt \
97 gds.eps \
98 gds.pdf \
99 gds.txt \
100 scheme.eps \
101 scheme.pdf \
102 scheme.txt \
103 mop.text
104
105 noinst_DATA = $(PICTURES)
106
107 EXTRA_DIST = ChangeLog-2008 $(PICTURES)
108
109 include $(top_srcdir)/am/pre-inst-guile
110
111 # Automated snarfing
112
113 autoconf.texi: autoconf-macros.texi
114 autoconf-macros.texi: $(top_srcdir)/meta/guile.m4
115 GUILE_AUTO_COMPILE=0 $(top_builddir)/meta/uninstalled-env guile-tools \
116 snarf-guile-m4-docs $(top_srcdir)/meta/guile.m4 \
117 > $(srcdir)/$@
118
119 lib-version.texi: $(top_srcdir)/GUILE-VERSION
120 cat "$^" | grep '^LIBGUILE_.*_MAJOR' | \
121 sed 's/^LIBGUILE_\([A-Z0-9_]*\)_MAJOR=\([0-9]\+\)/@set LIBGUILE_\1_MAJOR \2/' \
122 > "$@"
123
124 MAINTAINERCLEANFILES = autoconf-macros.texi
125
126 # To allow "make distcheck" to succeed, lib-version.texi must either
127 # be cleaned or be included in the distribution. Or both - and in
128 # fact both are good. There's no point forcing a distribution build
129 # to regenerate lib-version.texi, because it can't possibly be
130 # different on the build machine than where the distribution was
131 # generated, so we might as well include it in the distribution.
132 EXTRA_DIST += lib-version.texi
133 # But when we want to get back to a clean tree, lib-version.texi
134 # should be cleaned.
135 CLEANFILES = lib-version.texi
136
137 # Support for snarfing docs out of Scheme modules.
138 snarf_doc = standard-library
139
140 $(snarf_doc).am: $(snarf_doc).scm
141 GUILE_AUTO_COMPILE=0 ; \
142 variable="`echo $(snarf_doc) | tr - _`_scm_files" ; \
143 "$(preinstguile)" -l "$(srcdir)/$(snarf_doc).scm" -c " \
144 (format #t \"# Automatically generated, do not edit.~%\") \
145 (format #t \"$$variable = \") \
146 (for-each (lambda (m) \
147 (format #t \"$$""(top_srcdir)/module/~a.scm \" \
148 (string-join (map symbol->string m) \"/\"))) \
149 (map car *modules*))" > "$@.tmp"
150 mv "$@.tmp" "$@"
151
152 # The following line leads to the definition of $(standard_library_scm_files).
153 include standard-library.am
154
155 $(snarf_doc).texi: $(standard_library_scm_files)
156 GUILE_AUTO_COMPILE=0 \
157 "$(preinstguile)" "$(srcdir)/make-texinfo.scm" \
158 "$(abs_srcdir)/$(snarf_doc).scm" > "$@.tmp"
159 mv "$@.tmp" "$@"
160
161 CLEANFILES += $(snarf_doc).texi
162 EXTRA_DIST += $(snarf_doc).scm make-texinfo.scm $(snarf_doc).texi $(snarf_doc).am