0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.8 2001/08/14 13:43:21 hiroo Exp $
|
|
3 #
|
|
4
|
|
5 #
|
|
6 # FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
7 # This file is part of FreeWnn.
|
|
8 #
|
|
9 # Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
10 # 1987, 1988, 1989, 1990, 1991, 1992
|
|
11 # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
12 # Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
13 # Copyright FreeWnn Project 1999, 2000, 2001
|
|
14 #
|
|
15 # Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
16 #
|
|
17 # This program is free software; you can redistribute it and/or modify
|
|
18 # it under the terms of the GNU General Public License as published by
|
|
19 # the Free Software Foundation; either version 2 of the License, or
|
|
20 # (at your option) any later version.
|
|
21 #
|
|
22 # This program is distributed in the hope that it will be useful,
|
|
23 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
25 # GNU General Public License for more details.
|
|
26 #
|
|
27 # You should have received a copy of the GNU General Public License
|
|
28 # along with this program; if not, write to the Free Software
|
|
29 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
30 #
|
|
31
|
|
32 include @top_srcdir@/makerule.mk
|
|
33 top_builddir = ../../..
|
|
34
|
|
35 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
36 LOCAL_INSTFLAGS = -o $(WNNOWNER)
|
|
37
|
|
38 ATOD = $(WNNJUTILSRC)/atod
|
|
39 WNNTOUCH = $(WNNJUTILSRC)/wnntouch
|
|
40 HINSI = @HINSI_DATA@
|
|
41
|
|
42 LINKS = tankan2.u tankan3.u
|
|
43
|
|
44 DICS = tankan2.dic tankan3.dic
|
|
45
|
|
46 all:: $(DICS)
|
|
47
|
|
48 includes:: $(LINKS)
|
|
49
|
|
50 tankan2.u: $(WNNCONSDICSRC)/tankan2.u
|
|
51 $(RM) $@
|
|
52 $(LN) $? $@
|
|
53
|
|
54 includes:: tankan2.u
|
|
55
|
|
56 depend:: tankan2.u
|
|
57
|
|
58 clean::
|
|
59 $(RM) tankan2.u
|
|
60
|
|
61 tankan3.u: $(WNNCONSDICSRC)/tankan3.u
|
|
62 $(RM) $@
|
|
63 $(LN) $? $@
|
|
64
|
|
65 includes:: tankan3.u
|
|
66
|
|
67 depend:: tankan3.u
|
|
68
|
|
69 clean::
|
|
70 $(RM) tankan3.u
|
|
71
|
|
72 instserver:: install
|
|
73
|
|
74 install::
|
|
75 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
76 @for i in $(JWNNDICDIR); do if [ -d $(DESTDIR)$$i ]; then \
|
|
77 set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i; \
|
|
78 chown $(WNNOWNER) $(DESTDIR)$$i); fi \
|
|
79 done
|
|
80
|
|
81 install:: $(DICS)
|
|
82 @if [ -d $(DESTDIR)$(JWNNWNNCONSDICDIR) ]; then set +x; \
|
|
83 else (set -x; $(MKDIRHIER) $(DESTDIR)$(JWNNWNNCONSDICDIR)); fi
|
|
84 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
85 @for i in $(DICS); do if [ -f $(DESTDIR)$(JWNNWNNCONSDICDIR)/$$i ]; then \
|
|
86 set +x; \
|
|
87 else (set -x; \
|
|
88 $(INSTALL) $(INSTDATFLAGS) $(LOCAL_INSTFLAGS) $$i $(DESTDIR)$(JWNNWNNCONSDICDIR); \
|
|
89 $(WNNTOUCH) $(DESTDIR)$(JWNNWNNCONSDICDIR)/$$i); fi \
|
|
90 done
|
|
91
|
|
92 depend::
|
|
93 @echo "skipping make in my dir"
|
|
94
|
|
95 .SUFFIXES: .u .dic
|
|
96
|
|
97 .u.dic:
|
|
98 cat $< | $(ATOD) -h $(HINSI) $@
|
|
99
|
|
100 $(DICS): $(HINSI)
|
|
101
|
|
102 clean::
|
|
103 $(RM) -f *.dic $(LINKS)
|