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