446bb3c279badade580f43c48c4bc299a4dbf148
[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,
4 ## 2008, 2009, 2010, 2011, 2012 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
23 # want automake 1.10 or higher so that AM_GNU_GETTEXT can tell automake that
24 # config.rpath is needed
25 #
26 AUTOMAKE_OPTIONS = 1.10
27
28 SUBDIRS = \
29 lib \
30 meta \
31 libguile \
32 module \
33 guile-readline \
34 examples \
35 emacs \
36 test-suite \
37 benchmark-suite \
38 gc-benchmarks \
39 am \
40 doc
41
42 libguileincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
43 libguileinclude_HEADERS = libguile.h
44
45 EXTRA_DIST = LICENSE HACKING GUILE-VERSION \
46 m4/ChangeLog-2008 \
47 m4/gnulib-cache.m4 \
48 ChangeLog-2008 \
49 .version \
50 gnulib-local/lib/localcharset.h.diff \
51 gnulib-local/lib/localcharset.c.diff \
52 gnulib-local/m4/clock_time.m4.diff \
53 gnulib-local/m4/canonicalize.m4.diff \
54 gnulib-local/build-aux/git-version-gen.diff
55
56 TESTS = check-guile
57 TESTS_ENVIRONMENT = @LOCALCHARSET_TESTS_ENVIRONMENT@
58
59 ACLOCAL_AMFLAGS = -I m4
60
61 DISTCLEANFILES = check-guile.log
62
63 DISTCHECK_CONFIGURE_FLAGS = --enable-error-on-warning
64
65 dist-hook: gen-ChangeLog gen-tarball-version
66
67 clean-local:
68 rm -rf cache/
69
70 CONFIG_STATUS_DEPENDENCIES = GUILE-VERSION
71
72 gen_start_rev = 61db429e251bfd2f75cb4632972e0238056eb24b
73 .PHONY: gen-ChangeLog
74 gen-ChangeLog:
75 if test -d .git; then \
76 $(top_srcdir)/build-aux/gitlog-to-changelog \
77 $(gen_start_rev)..HEAD > $(distdir)/cl-t; \
78 rm -f $(distdir)/ChangeLog; \
79 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
80 fi
81
82 BUILT_SOURCES = $(top_srcdir)/.version
83 $(top_srcdir)/.version:
84 echo $(VERSION) > $@-t && mv $@-t $@
85 gen-tarball-version:
86 echo $(VERSION) > $(distdir)/.tarball-version
87
88 # Makefile.am ends here