1 | # |
---|
2 | # Makefile.in, 2009-03-13 naoya_t |
---|
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 | |
---|
23 | # Other parameters |
---|
24 | SOEXT = @SOEXT@ |
---|
25 | OBJEXT = @OBJEXT@ |
---|
26 | EXEEXT = @EXEEXT@ |
---|
27 | LOCAL_PATHS = @LOCAL_PATHS@ |
---|
28 | |
---|
29 | # Module-specific stuff |
---|
30 | PACKAGE = mecab |
---|
31 | |
---|
32 | ARCHFILES = mecab.$(SOEXT) |
---|
33 | SCMFILES = $(srcdir)/mecab.scm |
---|
34 | HEADERS = |
---|
35 | |
---|
36 | TARGET = $(ARCHFILES) |
---|
37 | GENERATED = |
---|
38 | CONFIG_GENERATED = Makefile config.cache config.log config.status \ |
---|
39 | configure.lineno autom4te*.cache $(PACKAGE).gpd |
---|
40 | |
---|
41 | GAUCHE_PKGINCDIR = $(DESTDIR)@GAUCHE_PKGINCDIR@ |
---|
42 | GAUCHE_PKGLIBDIR = $(DESTDIR)@GAUCHE_PKGLIBDIR@ |
---|
43 | GAUCHE_PKGARCHDIR = $(DESTDIR)@GAUCHE_PKGARCHDIR@ |
---|
44 | |
---|
45 | mecab_SRCS = $(srcdir)/mecab.c $(srcdir)/mecablib.stub |
---|
46 | |
---|
47 | all : $(TARGET) |
---|
48 | |
---|
49 | mecablib.c: $(srcdir)/mecablib.stub |
---|
50 | $(GOSH) genstub $(srcdir)/mecablib.stub |
---|
51 | |
---|
52 | mecab.$(SOEXT): $(mecab_SRCS) |
---|
53 | $(GAUCHE_PACKAGE) compile \ |
---|
54 | --local=$(LOCAL_PATHS) --ldflags=-lmecab --verbose mecab $(mecab_SRCS) |
---|
55 | |
---|
56 | check : all |
---|
57 | @rm -f test.log |
---|
58 | $(GOSH) -I. -I$(srcdir) $(srcdir)/test.scm > test.log |
---|
59 | |
---|
60 | install : all |
---|
61 | $(INSTALL) -m 444 -T $(GAUCHE_PKGINCDIR) $(HEADERS) |
---|
62 | $(INSTALL) -m 444 -T $(GAUCHE_PKGLIBDIR) $(SCMFILES) |
---|
63 | $(INSTALL) -m 555 -T $(GAUCHE_PKGARCHDIR) $(ARCHFILES) |
---|
64 | $(INSTALL) -m 444 -T $(GAUCHE_PKGLIBDIR)/.packages $(PACKAGE).gpd |
---|
65 | |
---|
66 | uninstall : |
---|
67 | $(INSTALL) -U $(GAUCHE_PKGINCDIR) $(HEADERS) |
---|
68 | $(INSTALL) -U $(GAUCHE_PKGLIBDIR) $(SCMFILES) |
---|
69 | $(INSTALL) -U $(GAUCHE_PKGARCHDIR) $(ARCHFILES) |
---|
70 | $(INSTALL) -U $(GAUCHE_PKGLIBDIR)/.packages $(PACKAGE).gpd |
---|
71 | |
---|
72 | clean : |
---|
73 | $(GAUCHE_PACKAGE) compile --clean mecab $(mecab_SRCS) |
---|
74 | rm -rf core $(TARGET) $(GENERATED) *~ test.log so_locations |
---|
75 | |
---|
76 | distclean : clean |
---|
77 | rm -rf $(CONFIG_GENERATED) |
---|
78 | |
---|
79 | maintainer-clean : clean |
---|
80 | rm -rf $(CONFIG_GENERATED) configure VERSION |
---|
81 | |
---|