File: Makefile.in

package info (click to toggle)
freewnn 1.1.1~a021%2Bcvs20130302-6
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 18,956 kB
  • ctags: 8,674
  • sloc: ansic: 97,647; sh: 8,551; makefile: 6,491; cpp: 88
file content (108 lines) | stat: -rw-r--r-- 3,231 bytes parent folder | download | duplicates (3)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# FreeWnn is a network-extensible Kana-to-Kanji conversion system.
# This file is part of FreeWnn.
#
# Copyright Kyoto University Research Institute for Mathematical Sciences
#                 1987, 1988, 1989, 1990, 1991, 1992
# Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
# Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
# Copyright FreeWnn Project 2001, 2004, 2010
#
# Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
# Maintainer:  FreeWnn Project
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING.  If not, write to the
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

include @top_builddir@/makerule.mk
  top_srcdir = @top_srcdir@
      srcdir = @srcdir@
       VPATH = @srcdir@
top_builddir = @top_builddir@
CWNNJUTILOBJ = $(top_builddir)/cWnn/jutil

INSTALL      = @INSTALL@
INSTALLFLAGS = -o $(WNNOWNER)

        ATOD = $(CWNNJUTILOBJ)/catod
        ATOF = $(CWNNJUTILOBJ)/catof
    WNNTOUCH = $(CWNNJUTILOBJ)/cwnntouch
       HINSI = @THINSI_DATA@
#       HINSI = ./cixing.data
    FZK_FLAG =

FULL = full.con
FULLR = full.conR

HINSI_SRC = cixing.data

FZK_SRCS = con.attr con.jirattr con.jircon con.master con.shuutan 	   con.masterR con.shuutanR

DIC_SRCS = cns_ch.u 	cns_wd.u

DICS = cns_ch.dic 	cns_wd.dic

ALLTGT = $(FULL) $(FULLR) $(DICS)

all:: $(ALLTGT)

.SUFFIXES: .dic .u

.u.dic:
	$(ATOD) -h $(HINSI) $@ < $<

$(DICS): $(HINSI)

$(FULL):: $(FZK_SRCS) con.master-.c
	$(FZK_PP) -I$(srcdir) $(FZK_FLAG) con.master-.c | egrep -a -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@

$(FULLR):: $(FZK_SRCS) con.masterR-.c
	$(FZK_PP) -I$(srcdir) $(FZK_FLAG) con.masterR-.c | egrep -a -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@

# To avoid circular dependency, we don't use 'con.master?.c'
con.master-.c: con.master
	$(RM) $@
	$(LN) $? $@

con.masterR-.c: con.masterR
	$(RM) $@
	$(LN) $? $@

clean::
	$(RM) con.master-.c con.masterR-.c

instserver:: install

install::
	@case '${MFLAGS}' in *[i]*) set +e;; esac;
	@for i in $(TWNNDICDIR); do if [ -d $(DESTDIR)$$i ]; then \
	set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i; \
	chown $(WNNOWNER) $(DESTDIR)$$i); fi \
	done

install:: $(ALLTGT)
	@if [ -d $(DESTDIR)$(TWNNSYSDICDIR) ]; then set +x; \
	else (set -x; $(MKDIRHIER) $(DESTDIR)$(TWNNSYSDICDIR)); fi
	@case '${MFLAGS}' in *[i]*) set +e;; esac;
	@for i in $(ALLTGT); do if [ -f $(DESTDIR)$(TWNNSYSDICDIR)/$$i ]; then \
	set +x; \
	else (set -x; \
	$(INSTALL) -c $(INSTALLFLAGS) $(INSTLIBFLAGS) $$i $(DESTDIR)$(TWNNSYSDICDIR); \
	$(WNNTOUCH) $(DESTDIR)$(TWNNSYSDICDIR)/$$i); fi \
	done

depend::
	@echo "skipping make in my dir"

clean::
	$(RM) $(FULL) $(FULLR) $(DICS)