1 | # |
---|
2 | # $Id: Makefile.in,v 1.3 2009/03/02 03:52:45 shirok Exp $ |
---|
3 | # |
---|
4 | |
---|
5 | # General info |
---|
6 | SHELL = @SHELL@ |
---|
7 | prefix = @prefix@ |
---|
8 | exec_prefix = @exec_prefix@ |
---|
9 | bindir = @bindir@ |
---|
10 | libdir = @libdir@ |
---|
11 | datadir = @datadir@ |
---|
12 | datarootdir = @datarootdir@ |
---|
13 | srcdir = @srcdir@ |
---|
14 | VPATH = $(srcdir) |
---|
15 | |
---|
16 | # These may be overridden by make invocators |
---|
17 | DESTDIR = |
---|
18 | GOSH = @GOSH@ |
---|
19 | GAUCHE_CONFIG = @GAUCHE_CONFIG@ |
---|
20 | GAUCHE_PACKAGE = @GAUCHE_PACKAGE@ |
---|
21 | INSTALL = @GAUCHE_INSTALL@ |
---|
22 | GENCOMP = $(GOSH) gencomp |
---|
23 | |
---|
24 | # Other parameters |
---|
25 | SOEXT = @SOEXT@ |
---|
26 | OBJEXT = @OBJEXT@ |
---|
27 | EXEEXT = @EXEEXT@ |
---|
28 | LOCAL_PATHS = @LOCAL_PATHS@ |
---|
29 | |
---|
30 | # Module-specific stuff |
---|
31 | PACKAGE = Gauche-mecab |
---|
32 | |
---|
33 | ARCHFILES = mecab-lib.$(SOEXT) |
---|
34 | SCMFILES = $(srcdir)/text/mecab.scm |
---|
35 | HEADERS = |
---|
36 | |
---|
37 | TARGET = $(ARCHFILES) |
---|
38 | GENERATED = mecab-lib.c text/mecab.scm |
---|
39 | CONFIG_GENERATED = Makefile config.cache config.log config.status \ |
---|
40 | configure.lineno autom4te*.cache $(PACKAGE).gpd |
---|
41 | |
---|
42 | GAUCHE_PKGINCDIR = $(DESTDIR)@GAUCHE_PKGINCDIR@ |
---|
43 | GAUCHE_PKGLIBDIR = $(DESTDIR)@GAUCHE_PKGLIBDIR@ |
---|
44 | GAUCHE_PKGARCHDIR = $(DESTDIR)@GAUCHE_PKGARCHDIR@ |
---|
45 | |
---|
46 | all : $(TARGET) |
---|
47 | |
---|
48 | mecab-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 | |
---|
53 | check : all |
---|
54 | @rm -f test.log |
---|
55 | $(GOSH) -I. -I$(srcdir) $(srcdir)/test.scm > test.log |
---|
56 | |
---|
57 | install : 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 | |
---|
63 | uninstall : |
---|
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 | |
---|
69 | clean : |
---|
70 | $(GAUCHE_PACKAGE) compile --clean mecab-lib mecab-lib.c |
---|
71 | rm -rf core $(TARGET) $(GENERATED) *~ test.log so_locations |
---|
72 | |
---|
73 | distclean : clean |
---|
74 | rm -rf $(CONFIG_GENERATED) |
---|
75 | |
---|
76 | maintainer-clean : clean |
---|
77 | rm -rf $(CONFIG_GENERATED) configure VERSION |
---|
78 | |
---|