build guile-readline/ after module/
[bpt/guile.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in.
2 ##
3 ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2006, 2007, 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 # want automake 1.10 or higher so that AM_GNU_GETTEXT can tell automake that
23 # config.rpath is needed
24 #
25 AUTOMAKE_OPTIONS = 1.10
26
27 SUBDIRS = \
28 lib \
29 meta \
30 libguile \
31 module \
32 guile-readline \
33 examples \
34 emacs \
35 test-suite \
36 benchmark-suite \
37 am \
38 doc
39
40 libguileincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
41 libguileinclude_HEADERS = libguile.h
42
43 EXTRA_DIST = LICENSE HACKING GUILE-VERSION \
44 m4/ChangeLog-2008 \
45 ChangeLog-2008 \
46 .version
47
48 TESTS = check-guile
49
50 ACLOCAL_AMFLAGS = -I m4
51
52 DISTCLEANFILES = check-guile.log
53
54 DISTCHECK_CONFIGURE_FLAGS = --enable-error-on-warning
55
56 dist-hook: gen-ChangeLog gen-tarball-version
57
58 clean-local:
59 rm -rf cache/
60
61 CONFIG_STATUS_DEPENDENCIES = GUILE-VERSION
62
63 gen_start_rev = 61db429e251bfd2f75cb4632972e0238056eb24b
64 .PHONY: gen-ChangeLog
65 gen-ChangeLog:
66 if test -d .git; then \
67 $(top_srcdir)/build-aux/gitlog-to-changelog \
68 $(gen_start_rev)..HEAD > $(distdir)/cl-t; \
69 rm -f $(distdir)/ChangeLog; \
70 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
71 fi
72
73 BUILT_SOURCES = $(top_srcdir)/.version
74 $(top_srcdir)/.version:
75 echo $(VERSION) > $@-t && mv $@-t $@
76 gen-tarball-version:
77 echo $(VERSION) > $(distdir)/.tarball-version
78
79 # Makefile.am ends here