| 1 |
# General info |
| 2 |
SHELL = @SHELL@ |
| 3 |
prefix = @prefix@ |
| 4 |
exec_prefix = @exec_prefix@ |
| 5 |
bindir = @bindir@ |
| 6 |
libdir = @libdir@ |
| 7 |
datadir = @datadir@ |
| 8 |
datarootdir = @datarootdir@ |
| 9 |
top_srcdir = @top_srcdir@ |
| 10 |
srcdir = @srcdir@ |
| 11 |
builddir = @builddir@ |
| 12 |
VPATH = $(srcdir) |
| 13 |
|
| 14 |
# These may be overridden by make invocators |
| 15 |
DESTDIR = |
| 16 |
GOSH = "@GOSH@" |
| 17 |
GAUCHE_CONFIG = "@GAUCHE_CONFIG@" |
| 18 |
GAUCHE_PACKAGE = "@GAUCHE_PACKAGE@" |
| 19 |
INSTALL = "@GAUCHE_INSTALL@" -S '$(srcdir)' -C |
| 20 |
|
| 21 |
# Module-specific stuff |
| 22 |
PACKAGE = @@package@@ |
| 23 |
|
| 24 |
TARGET = |
| 25 |
SCMFILES = @@modpath@@.scm |
| 26 |
|
| 27 |
GENERATED = |
| 28 |
CONFIG_GENERATED = Makefile config.cache config.log config.status \ |
| 29 |
configure.lineno autom4te*.cache $(PACKAGE).gpd |
| 30 |
|
| 31 |
GAUCHE_PKGINCDIR = "$(DESTDIR)@GAUCHE_PKGINCDIR@" |
| 32 |
GAUCHE_PKGLIBDIR = "$(DESTDIR)@GAUCHE_PKGLIBDIR@" |
| 33 |
GAUCHE_PKGARCHDIR = "$(DESTDIR)@GAUCHE_PKGARCHDIR@" |
| 34 |
|
| 35 |
all : $(TARGET) |
| 36 |
|
| 37 |
check : all |
| 38 |
@rm -f test.log |
| 39 |
$(GOSH) -I$(builddir) -I$(srcdir) -I$(top_srcdir) $(srcdir)/test.scm > test.log |
| 40 |
|
| 41 |
install : all |
| 42 |
$(INSTALL) -m 444 -T $(GAUCHE_PKGLIBDIR) $(SCMFILES) |
| 43 |
$(INSTALL) -m 444 -T $(GAUCHE_PKGLIBDIR)/.packages $(PACKAGE).gpd |
| 44 |
|
| 45 |
uninstall : |
| 46 |
$(INSTALL) -U $(GAUCHE_PKGLIBDIR) $(SCMFILES) |
| 47 |
$(INSTALL) -U $(GAUCHE_PKGLIBDIR)/.packages $(PACKAGE).gpd |
| 48 |
|
| 49 |
clean : |
| 50 |
rm -rf core $(TARGET) $(GENERATED) *~ test.log so_locations |
| 51 |
|
| 52 |
distclean : clean |
| 53 |
rm -rf $(CONFIG_GENERATED) |
| 54 |
|
| 55 |
maintainer-clean : clean |
| 56 |
rm -rf $(CONFIG_GENERATED) @@configure@@ VERSION |
| 57 |
|
| 58 |
# Local variables: |
| 59 |
# mode: Makefile |
| 60 |
# end: |