1 | # |
---|
2 | # Makefile.in, 2009-03-15 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 = cabocha |
---|
31 | |
---|
32 | ARCHFILES = cabocha.$(SOEXT) |
---|
33 | SCMFILES = $(srcdir)/cabocha.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 | cabocha_SRCS = $(srcdir)/cabocha.c $(srcdir)/cabochalib.stub |
---|
46 | |
---|
47 | all : $(TARGET) |
---|
48 | |
---|
49 | cabocha.$(SOEXT): $(cabocha_SRCS) |
---|
50 | $(GAUCHE_PACKAGE) compile \ |
---|
51 | --local=$(LOCAL_PATHS) --ldflags="-lmecab -lcabocha" --verbose cabocha $(cabocha_SRCS) |
---|
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 cabocha $(cabocha_SRCS) |
---|
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 | |
---|