File: Makefile.am

package info (click to toggle)
anthy 6300d-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,400 kB
  • ctags: 2,270
  • sloc: ansic: 17,009; sh: 13,554; lisp: 1,039; makefile: 252; ruby: 212; perl: 10
file content (44 lines) | stat: -rw-r--r-- 1,330 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
## $Id: Makefile.am,v 1.10 2002/11/05 15:38:58 yusuke Exp $

# Files
noinst_SCRIPTS =
EXTRA_DICS = base.t extra.t compound.t adjust.t
CANNADIC_DIST = gcanna.ctd gcannaf.ctd
INCLUDES = -I$(top_srcdir)/include
# HOKUTODIC_DIST = hokuto.t
# You can get it from
# http://winnie.kuis.kyoto-u.ac.jp/members/ri/hokuto/dic/index.html
HOKUTODIC_DIST =
CLEANFILES = anthy.dic
EXTRA_DIST = \
 $(EXTRA_DICS) $(HOKUTODIC_DIST) \
 udict

# Generate the dictionary
noinst_PROGRAMS = mkanthydic
mkanthydic_SOURCES = mkdic.c mkudic.c mkdic.h
mkanthydic_LDADD = ../src-diclib/libanthydic.la

anthy.dic : mkanthydic
	@tfiles=; \
	files='$(CANNADIC_DIST)'; for file in $$files; do \
	  case $$file in *.ctd) \
	    if test -f $$file; then tfiles="$$tfiles $$file"; \
	    elif test -f $(CANNADIC_SRCDIR)/$$file; then \
	      tfiles="$$tfiles $(CANNADIC_SRCDIR)/$$file"; fi ;; \
	  esac; done; \
	files='$(EXTRA_DICS)'; for file in $$files; do \
	  case $$file in *.t) \
	    if test -f $$file; then tfiles="$$tfiles $$file"; \
	    elif test -f $(srcdir)/$$file; then \
	      tfiles="$$tfiles $(srcdir)/$$file"; fi ;; \
	  esac; done; \
	if test -z "$$tfiles"; then \
	  rm -f anthy.dic; \
	  echo WARNING: No dictionaries found >&2; \
	else \
	  ./mkanthydic -o anthy.dic $$tfiles -uc $(srcdir)/udict; \
	fi

# To install
pkgdata_DATA = anthy.dic