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 CWNNJUTILOBJ = $(top_builddir)/cWnn/jutil
|
|
32
|
|
33 INSTALL = @INSTALL@
|
|
34 INSTALLFLAGS = -o $(WNNOWNER)
|
|
35
|
|
36 ATOD = $(CWNNJUTILOBJ)/catod
|
|
37 ATOF = $(CWNNJUTILOBJ)/catof
|
|
38 WNNTOUCH = $(CWNNJUTILOBJ)/cwnntouch
|
|
39 HINSI = @THINSI_DATA@
|
|
40 # HINSI = ./cixing.data
|
|
41 FZK_FLAG =
|
|
42
|
|
43 FULL = full.con
|
|
44 FULLR = full.conR
|
|
45
|
|
46 HINSI_SRC = cixing.data
|
|
47
|
|
48 FZK_SRCS = con.attr con.jirattr con.jircon con.master con.shuutan con.masterR con.shuutanR
|
|
49
|
|
50 DIC_SRCS = cns_ch.u cns_wd.u
|
|
51
|
|
52 DICS = cns_ch.dic cns_wd.dic
|
|
53
|
|
54 ALLTGT = $(FULL) $(FULLR) $(DICS)
|
|
55
|
|
56 all:: $(ALLTGT)
|
|
57
|
|
58 .SUFFIXES: .dic .u
|
|
59
|
|
60 .u.dic:
|
|
61 $(ATOD) -h $(HINSI) $@ < $<
|
|
62
|
|
63 $(DICS): $(HINSI)
|
|
64
|
|
65 $(FULL):: $(FZK_SRCS) con.master-.c
|
|
66 $(CPP) -I$(srcdir) $(FZK_FLAG) con.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
|
|
67
|
|
68 $(FULLR):: $(FZK_SRCS) con.masterR-.c
|
|
69 $(CPP) -I$(srcdir) $(FZK_FLAG) con.masterR-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
|
|
70
|
|
71 # To avoid circular dependency, we don't use 'con.master?.c'
|
|
72 con.master-.c: con.master
|
|
73 $(RM) $@
|
|
74 $(LN) $? $@
|
|
75
|
|
76 con.masterR-.c: con.masterR
|
|
77 $(RM) $@
|
|
78 $(LN) $? $@
|
|
79
|
|
80 clean::
|
|
81 $(RM) con.master-.c con.masterR-.c
|
|
82
|
|
83 instserver:: install
|
|
84
|
|
85 install::
|
|
86 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
87 @for i in $(TWNNDICDIR); do if [ -d $(DESTDIR)$$i ]; then \
|
|
88 set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i; \
|
|
89 chown $(WNNOWNER) $(DESTDIR)$$i); fi \
|
|
90 done
|
|
91
|
|
92 install:: $(ALLTGT)
|
|
93 @if [ -d $(DESTDIR)$(TWNNSYSDICDIR) ]; then set +x; \
|
|
94 else (set -x; $(MKDIRHIER) $(DESTDIR)$(TWNNSYSDICDIR)); fi
|
|
95 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
96 @for i in $(ALLTGT); do if [ -f $(DESTDIR)$(TWNNSYSDICDIR)/$$i ]; then \
|
|
97 set +x; \
|
|
98 else (set -x; \
|
|
99 $(INSTALL) -c $(INSTALLFLAGS) $(INSTLIBFLAGS) $$i $(DESTDIR)$(TWNNSYSDICDIR); \
|
|
100 $(WNNTOUCH) $(DESTDIR)$(TWNNSYSDICDIR)/$$i); fi \
|
|
101 done
|
|
102
|
|
103 depend::
|
|
104 @echo "skipping make in my dir"
|
|
105
|
|
106 clean::
|
|
107 $(RM) $(FULL) $(FULLR) $(DICS)
|