0
|
1 # FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
2 # This file is part of FreeWnn.
|
|
3 #
|
|
4 # Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
5 # 1987, 1988, 1989, 1990, 1991, 1992
|
|
6 # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
7 # Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
8 # Copyright FreeWnn Project 2001, 2004
|
|
9 #
|
|
10 # Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
11 # Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
12 #
|
|
13 # This program is free software; you can redistribute it and/or modify
|
|
14 # it under the terms of the GNU General Public License as published by
|
|
15 # the Free Software Foundation; either version 2, or (at your option)
|
|
16 # any later version.
|
|
17 #
|
|
18 # This program is distributed in the hope that it will be useful,
|
|
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
21 # GNU General Public License for more details.
|
|
22 #
|
|
23 # You should have received a copy of the GNU General Public License
|
|
24 # along with GNU Emacs; see the file COPYING. If not, write to the
|
|
25 # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
26
|
|
27 include @top_builddir@/makerule.mk
|
|
28 top_srcdir = @top_srcdir@
|
|
29 srcdir = @srcdir@
|
|
30 top_builddir = @top_builddir@
|
|
31 KWNNJUTILOBJ = $(top_builddir)/kWnn/jutil
|
|
32
|
|
33 INSTALL = @INSTALL@
|
|
34 INSTALLFLAGS = -o $(WNNOWNER)
|
|
35
|
|
36 ATOD = $(KWNNJUTILOBJ)/katod
|
|
37 ATOF = $(KWNNJUTILOBJ)/katof
|
|
38 WNNTOUCH = $(KWNNJUTILOBJ)/kwnntouch
|
|
39 HINSI = @KHINSI_DATA@
|
|
40 FZK_FLAG =
|
|
41
|
|
42 FULL = full.fzk
|
|
43
|
|
44 HINSI_SRC = hinsi.data
|
|
45
|
|
46 FZK_SRCS = fzk.attr fzk.fzkattr fzk.jircon fzk.shuutan fzk.con fzk.jirattr fzk.master
|
|
47
|
|
48 DIC_SRCS = single.u hword.u
|
|
49
|
|
50 DICS = single.dic hword.dic
|
|
51
|
|
52 ALLTGT = $(FULL) $(DICS)
|
|
53
|
|
54 all:: $(ALLTGT)
|
|
55
|
|
56 .SUFFIXES: .dic .u
|
|
57
|
|
58 .u.dic:
|
|
59 $(ATOD) -h $(HINSI) $@ < $<
|
|
60
|
|
61 $(DICS): $(HINSI)
|
|
62
|
|
63 $(FULL):: $(FZK_SRCS) fzk.master-.c
|
|
64 $(CPP) -I$(srcdir) $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
|
|
65
|
|
66 # To avoid circular dependency, we don't use 'fzk.master.c'
|
|
67 fzk.master-.c: fzk.master
|
|
68 $(RM) $@
|
|
69 $(LN) $? $@
|
|
70
|
|
71 clean::
|
|
72 $(RM) fzk.master-.c
|
|
73
|
|
74 instserver:: install
|
|
75
|
|
76 install::
|
|
77 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
78 @for i in $(KWNNDICDIR); do if [ -d $(DESTDIR)$$i ]; then \
|
|
79 set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i; \
|
|
80 chown $(WNNOWNER) $(DESTDIR)$$i); fi \
|
|
81 done
|
|
82
|
|
83 install:: $(ALLTGT)
|
|
84 @if [ -d $(DESTDIR)$(KWNNSYSDICDIR) ]; then set +x; \
|
|
85 else (set -x; $(MKDIRHIER) $(DESTDIR)$(KWNNSYSDICDIR)); fi
|
|
86 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
87 @for i in $(ALLTGT); do if [ -f $(DESTDIR)$(KWNNSYSDICDIR)/$$i ]; then \
|
|
88 set +x; \
|
|
89 else (set -x; \
|
|
90 $(INSTALL) -c $(INSTALLFLAGS) $(INSTLIBFLAGS) $$i $(DESTDIR)$(KWNNSYSDICDIR); \
|
|
91 $(WNNTOUCH) $(DESTDIR)$(KWNNSYSDICDIR)/$$i); fi \
|
|
92 done
|
|
93
|
|
94 depend::
|
|
95 @echo "skipping make in my dir"
|
|
96
|
|
97 clean::
|
|
98 $(RM) $(FULL) $(DICS)
|