root/lang/scheme/gauche/bindings/mecab/cvs/Makefile.in @ 125

Revision 117, 2.1 kB (checked in by naoya_t, 16 years ago)
Line 
1#
2# $Id: Makefile.in,v 1.3 2009/03/02 03:52:45 shirok Exp $
3#
4
5# General info
6SHELL       = @SHELL@
7prefix      = @prefix@
8exec_prefix = @exec_prefix@
9bindir      = @bindir@
10libdir      = @libdir@
11datadir     = @datadir@
12datarootdir = @datarootdir@
13srcdir      = @srcdir@
14VPATH       = $(srcdir)
15
16# These may be overridden by make invocators
17DESTDIR        =
18GOSH           = @GOSH@
19GAUCHE_CONFIG  = @GAUCHE_CONFIG@
20GAUCHE_PACKAGE = @GAUCHE_PACKAGE@
21INSTALL        = @GAUCHE_INSTALL@
22GENCOMP        = $(GOSH) gencomp
23
24# Other parameters
25SOEXT  = @SOEXT@
26OBJEXT = @OBJEXT@
27EXEEXT = @EXEEXT@
28LOCAL_PATHS = @LOCAL_PATHS@
29
30# Module-specific stuff
31PACKAGE   = Gauche-mecab
32
33ARCHFILES = mecab-lib.$(SOEXT)
34SCMFILES  = $(srcdir)/text/mecab.scm
35HEADERS   =
36
37TARGET    = $(ARCHFILES)
38GENERATED = mecab-lib.c text/mecab.scm
39CONFIG_GENERATED = Makefile config.cache config.log config.status \
40                   configure.lineno autom4te*.cache $(PACKAGE).gpd
41
42GAUCHE_PKGINCDIR  = $(DESTDIR)@GAUCHE_PKGINCDIR@
43GAUCHE_PKGLIBDIR  = $(DESTDIR)@GAUCHE_PKGLIBDIR@
44GAUCHE_PKGARCHDIR = $(DESTDIR)@GAUCHE_PKGARCHDIR@
45
46all : $(TARGET)
47
48mecab-lib.$(SOEXT): $(srcdir)/mecab-lib.scm
49        $(GENCOMP) --ext-module=text/mecab.scm $(srcdir)/mecab-lib.scm
50        $(GAUCHE_PACKAGE) compile \
51          --local=$(LOCAL_PATHS) --libs='-lmecab' --verbose mecab-lib mecab-lib.c
52
53check : all
54        @rm -f test.log
55        $(GOSH) -I. -I$(srcdir) $(srcdir)/test.scm > test.log
56
57install : all
58        $(INSTALL) -m 444 -T $(GAUCHE_PKGINCDIR) $(HEADERS)
59        $(INSTALL) -m 444 -T $(GAUCHE_PKGLIBDIR) $(SCMFILES)
60        $(INSTALL) -m 555 -T $(GAUCHE_PKGARCHDIR) $(ARCHFILES)
61        $(INSTALL) -m 444 -T $(GAUCHE_PKGLIBDIR)/.packages $(PACKAGE).gpd
62
63uninstall :
64        $(INSTALL) -U $(GAUCHE_PKGINCDIR) $(HEADERS)
65        $(INSTALL) -U $(GAUCHE_PKGLIBDIR) $(SCMFILES)
66        $(INSTALL) -U $(GAUCHE_PKGARCHDIR) $(ARCHFILES)
67        $(INSTALL) -U $(GAUCHE_PKGLIBDIR)/.packages $(PACKAGE).gpd
68
69clean :
70        $(GAUCHE_PACKAGE) compile --clean mecab-lib mecab-lib.c
71        rm -rf core $(TARGET) $(GENERATED) *~ test.log so_locations
72
73distclean : clean
74        rm -rf $(CONFIG_GENERATED)
75
76maintainer-clean : clean
77        rm -rf $(CONFIG_GENERATED) configure VERSION
78
Note: See TracBrowser for help on using the browser.