summaryrefslogtreecommitdiff
path: root/src/guile/Makefile.am
diff options
context:
space:
mode:
authorLudovic Courtès2008-04-07 16:32:37 +0200
committerLudovic Courtès2008-04-07 16:32:37 +0200
commitbeee88ca005064e8b10959f62bf7a009b55203f4 (patch)
tree77228d9f5c9dc01d881f90102a881833c457974e /src/guile/Makefile.am
parentfb3af26e3f279f76943b9b53213025c54fab242c (diff)
downloadskribilo-beee88ca005064e8b10959f62bf7a009b55203f4.tar.gz
skribilo-beee88ca005064e8b10959f62bf7a009b55203f4.tar.lz
skribilo-beee88ca005064e8b10959f62bf7a009b55203f4.zip
Recursive make sucks: remove 11 makefiles.
Diffstat (limited to 'src/guile/Makefile.am')
-rw-r--r--src/guile/Makefile.am126
1 files changed, 123 insertions, 3 deletions
diff --git a/src/guile/Makefile.am b/src/guile/Makefile.am
index 227231b..ab9c3b5 100644
--- a/src/guile/Makefile.am
+++ b/src/guile/Makefile.am
@@ -1,6 +1,126 @@
-SUBDIRS = skribilo
+# Copyright 2005, 2006, 2007, 2008 Ludovic Courtès <ludo@gnu.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
moduledir = $(guilemoduledir)
-dist_module_DATA = skribilo.scm diff.scm
-EXTRA_DIST = README
+EXTRA_DIST = \
+ README \
+ skribilo/source/lisp-lex.l \
+ skribilo/source/xml-lex.l skribilo/source/c-lex.l \
+ skribilo/utils/images.scm.in skribilo/config.in
+
+nobase_dist_module_DATA = \
+ skribilo.scm diff.scm \
+ skribilo/biblio/bibtex.scm skribilo/biblio/author.scm \
+ skribilo/biblio/abbrev.scm skribilo/biblio/template.scm \
+ skribilo/utils/syntax.scm skribilo/utils/compat.scm \
+ skribilo/utils/files.scm skribilo/utils/keywords.scm \
+ skribilo/utils/strings.scm \
+ skribilo/source/parameters.scm skribilo/source/c.scm \
+ skribilo/source/lisp.scm skribilo/source/xml.scm \
+ skribilo/biblio.scm skribilo/color.scm \
+ skribilo/debug.scm skribilo/engine.scm skribilo/evaluator.scm \
+ skribilo/index.scm skribilo/lib.scm skribilo/module.scm \
+ skribilo/output.scm skribilo/prog.scm \
+ skribilo/reader.scm skribilo/resolve.scm \
+ skribilo/source.scm skribilo/parameters.scm skribilo/verify.scm \
+ skribilo/writer.scm skribilo/ast.scm skribilo/location.scm \
+ skribilo/condition.scm skribilo/sui.scm
+
+nobase_dist_module_DATA += \
+ $(readers) $(engines) $(packages)
+
+readers = \
+ skribilo/reader/skribe.scm skribilo/reader/outline.scm
+
+engines = \
+ skribilo/engine/base.scm skribilo/engine/context.scm \
+ skribilo/engine/html.scm skribilo/engine/html4.scm \
+ skribilo/engine/latex.scm skribilo/engine/lout.scm \
+ skribilo/engine/xml.scm
+
+packages = \
+ skribilo/package/acmproc.scm skribilo/package/french.scm \
+ skribilo/package/jfp.scm skribilo/package/letter.scm \
+ skribilo/package/lncs.scm skribilo/package/scribe.scm \
+ skribilo/package/sigplan.scm skribilo/package/slide.scm \
+ skribilo/package/web-article.scm skribilo/package/web-book.scm \
+ skribilo/package/eq.scm skribilo/package/pie.scm \
+ skribilo/package/base.scm skribilo/package/diff.scm \
+ skribilo/package/html-navtabs.scm skribilo/package/web-book2.scm \
+ skribilo/package/pie/lout.scm skribilo/package/eq/lout.scm \
+ skribilo/package/slide/base.scm skribilo/package/slide/latex.scm \
+ skribilo/package/slide/html.scm skribilo/package/slide/lout.scm
+
+# Generated files not part of the distribution.
+nobase_module_DATA = \
+ skribilo/config.scm
+
+# Generated files part of the distribution.
+nobase_dist_module_DATA += \
+ skribilo/source/lisp-lex.scm skribilo/source/xml-lex.scm \
+ skribilo/source/c-lex.scm
+
+CLEANFILES = $(nobase_module_DATA)
+
+
+include $(top_srcdir)/substitute.am
+
+.in.scm:
+ $(substitute) "$^" > "$@.tmp" && \
+ mv "$@.tmp" "$@"
+
+#all-local:
+# if ! test -d "skribilo"; then mkdir "skribilo"; fi
+
+skribilo:
+ mkdir "skribilo" && mkdir -p "skribilo/utils" && \
+ mkdir -p "skribilo/source"
+
+clean-local:
+ -if test "$(top_builddir)" != "$(top_srcdir)"; \
+ then rm -rf "skribilo" ; fi
+
+# Building the lexers with SILex. You must have SILex installed in
+# `$(top_srcdir)/src/guile/silex'. The Git repository already contains
+# it. Otherwise, you can fetch it from
+# http://www.iro.umontreal.ca/~dube/silex-src.tar.gz .
+#
+# Note: Those files should normally be part of the distribution, making
+# this rule useless to the user.
+.l.scm:
+ $(GUILE) -L $(top_srcdir)/src/guile/silex \
+ -c '(load-from-path "lex.scm") (lex "$^" "$@")' && \
+ mv "$@" "$@.tmp" && \
+ echo '(define-module (skribilo source $(^:skribilo/source/%.l=%))' \
+ > "$@" && \
+ echo ' :use-module (skribilo lib)' >> "$@" && \
+ echo ' :use-module (skribilo source parameters)' \
+ >> "$@" && \
+ echo ' :use-module (srfi srfi-1)' >> "$@" && \
+ echo ' :export (lexer-init lexer' >> "$@" && \
+ echo ' lexer-get-func-column' >> "$@" && \
+ echo ' lexer-get-func-offset' >> "$@" && \
+ echo ' lexer-get-line lexer-getc' >> "$@" && \
+ echo ' lexer-ungetc))' >> "$@" && \
+ cat "$@.tmp" >> "$@" && \
+ rm "$@.tmp"
+
+
+lintable = $(nobase_dist_module_DATA) $(nobase_module_DATA)
+
+include $(top_srcdir)/guile-lint.am