guile-readline: Clean `.go' files.
[bpt/guile.git] / guile-readline / Makefile.am
CommitLineData
c374ab69
MV
1## Process this file with Automake to create Makefile.in
2##
c64d07d8
LC
3## Copyright (C) 1998, 1999, 2000, 2001, 2004, 2006, 2007, 2008,
4## 2009, 2010, 2012 Free Software Foundation, Inc.
c374ab69 5##
b82a8b48 6## This file is part of guile-readline.
cc4c7bd4 7##
b82a8b48
NJ
8## guile-readline is free software; you can redistribute it and/or
9## modify it under the terms of the GNU General Public License as
10## published by the Free Software Foundation; either version 3, or
c374ab69 11## (at your option) any later version.
cc4c7bd4 12##
b82a8b48
NJ
13## guile-readline is distributed in the hope that it will be useful,
14## but WITHOUT ANY WARRANTY; without even the implied warranty of
15## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16## General Public License for more details.
cc4c7bd4 17##
b82a8b48
NJ
18## You should have received a copy of the GNU General Public License
19## along with guile-readline; see the file COPYING. If not, write
92205699
MV
20## to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21## Floor, Boston, MA 02110-1301 USA
c374ab69 22
a572fc95 23include $(top_srcdir)/am/snarf
62651cb3 24include $(top_srcdir)/am/guilec
a572fc95 25
1549532c
LC
26## Prevent automake from adding extra -I options
27DEFS = @DEFS@ @EXTRA_DEFS@
c374ab69 28
62651cb3
AW
29# We're at the root of the module hierarchy.
30modpath =
31SOURCES =
7a5ab369 32
62651cb3 33if HAVE_READLINE
1549532c 34
62651cb3 35SOURCES += ice-9/readline.scm
1549532c 36
c374ab69
MV
37## Check for headers in $(srcdir)/.., so that #include
38## <libguile/MUMBLE.h> will find MUMBLE.h in this dir when we're
6caac03c 39## building. Also look for Gnulib headers in `lib'.
7a5ab369
LC
40AM_CPPFLAGS = -I. -I.. -I$(srcdir)/.. \
41 -I$(top_srcdir)/lib -I$(top_builddir)/lib
42
43AM_CFLAGS = $(GCC_CFLAGS)
c374ab69 44
e5ab7101 45lib_LTLIBRARIES = libguilereadline-v-@LIBGUILEREADLINE_MAJOR@.la
c374ab69 46
e5ab7101 47libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES = readline.c
6caac03c 48libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD = \
7a5ab369 49 $(READLINE_LIBS) \
44602b08 50 ../libguile/libguile-@GUILE_EFFECTIVE_VERSION@.la ../lib/libgnu.la
7a5ab369
LC
51
52libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LDFLAGS = \
53 -version-info @LIBGUILEREADLINE_INTERFACE@ -export-dynamic \
54 -no-undefined
0bb2ba7a 55
c374ab69 56
84a8c61d
MD
57BUILT_SOURCES = readline.x
58
718815d7
AW
59modincludedir = $(pkgincludedir)/$(GUILE_EFFECTIVE_VERSION)
60modinclude_HEADERS = readline.h
ae9e7aac 61
7a5ab369 62snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
62651cb3 63SUFFIXES += .x
c374ab69 64.c.x:
a572fc95 65 $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts)
c374ab69 66
1549532c 67EXTRA_DIST += LIBGUILEREADLINE-VERSION ChangeLog-2008
507af33e 68
62651cb3 69ETAGS_ARGS += \
1549532c 70 $(libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_SOURCES)
305bf93c 71
c64d07d8 72CLEANFILES += *.x *.go
2d72b502 73
7a5ab369
LC
74endif HAVE_READLINE
75
2d72b502
MD
76dist-hook:
77 (temp="/tmp/mangle-deps.$$$$"; \
78 trap "rm -f $$temp" 0 1 2 15; \
79 sed -e 's|\([ ]\)\(\.\./\(\|libguile/\|guile-readline/\)[a-z_-]*\.h\)|\1$$(srcdir)/\2|g' $(distdir)/Makefile.in \
80 | sed -e 's|\$$(srcdir)/\(\.\./libguile/\(libpath\|scmconfig\|versiondat\)\)|\1|g' \
81 | sed -e 's|\.\./guile-readline/\([a-z_-]*\.x\)|\1|g' > $$temp \
7ceac84e 82 && chmod u+w $(distdir)/Makefile.in && cp -p $$temp $(distdir)/Makefile.in)
0dcee837 83