0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.6 2004/04/24 18:56:40 aono 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, 2002, 2004
|
|
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_builddir@/makerule.mk
|
|
33 top_srcdir = @top_srcdir@
|
|
34 top_builddir = @top_builddir@
|
|
35 WNNJUTILOBJ = $(top_builddir)/Wnn/jutil
|
|
36
|
|
37 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
38 LOCAL_INSTFLAGS = -o $(WNNOWNER)
|
|
39
|
|
40 INCLUDES = -I$(top_builddir)
|
|
41 ATOD = $(WNNJUTILOBJ)/atod
|
|
42 ATOF = $(WNNJUTILOBJ)/atof
|
|
43 WNNTOUCH = $(WNNJUTILOBJ)/wnntouch
|
|
44 HINSI = @HINSI_DATA@
|
|
45 FZK_FLAG =
|
|
46
|
|
47 LINKS = Version bio.hd chimei.hd computer.hd fzk.attr fzk.con fzk.fzkattr fzk.jirattr fzk.jircon fzk.master fzk.shuutan jinmei.hd kihon.hd koyuu.hd setsuji.hd special.hd special.u symbol.hd tankan.hd
|
|
48
|
|
49 WNNDICS = bio.u chimei.u computer.u jinmei.u kihon.u koyuu.u setsuji.u symbol.u tankan.u
|
|
50
|
|
51 FZK_SRC= fzk.master fzk.attr fzk.jirattr fzk.fzkattr fzk.jircon fzk.con fzk.shuutan
|
|
52
|
|
53 DIC= bio.dic chimei.dic computer.dic jinmei.dic kihon.dic koyuu.dic setsuji.dic special.dic symbol.dic tankan.dic
|
|
54
|
|
55 MORE= kihon.more setsuji.more jinmei.more chimei.more koyuu.more special.more computer.more bio.more symbol.more tankan.more
|
|
56
|
|
57 FZKDATA= full.fzk kougo.fzk std.fzk
|
|
58
|
|
59 VERSION= Version
|
|
60
|
|
61 DICS = $(DIC) $(FZKDATA)
|
|
62
|
|
63 all:: $(LINKS) $(WNNDICS) $(DICS)
|
|
64
|
|
65 includes:: $(LINKS)
|
|
66
|
|
67 Version: $(PUBDICPLUSSRC)/Version
|
|
68 $(RM) $@
|
|
69 $(LN) $? $@
|
|
70
|
|
71 includes:: Version
|
|
72
|
|
73 depend:: Version
|
|
74
|
|
75 clean::
|
|
76 $(RM) Version
|
|
77
|
|
78 bio.hd: $(PUBDICPLUSSRC)/bio.hd
|
|
79 $(RM) $@
|
|
80 $(LN) $? $@
|
|
81
|
|
82 includes:: bio.hd
|
|
83
|
|
84 depend:: bio.hd
|
|
85
|
|
86 clean::
|
|
87 $(RM) bio.hd
|
|
88
|
|
89 # bio.u: $(PUBDICPLUSSRC)/bio.u
|
|
90 # $(RM) $@
|
|
91 # $(LN) $? $@
|
|
92
|
|
93 includes:: bio.u
|
|
94
|
|
95 depend:: bio.u
|
|
96
|
|
97 clean::
|
|
98 $(RM) bio.u
|
|
99
|
|
100 chimei.hd: $(PUBDICPLUSSRC)/chimei.hd
|
|
101 $(RM) $@
|
|
102 $(LN) $? $@
|
|
103
|
|
104 includes:: chimei.hd
|
|
105
|
|
106 depend:: chimei.hd
|
|
107
|
|
108 clean::
|
|
109 $(RM) chimei.hd
|
|
110
|
|
111 # chimei.u: $(PUBDICPLUSSRC)/chimei.u
|
|
112 # $(RM) $@
|
|
113 # $(LN) $? $@
|
|
114
|
|
115 includes:: chimei.u
|
|
116
|
|
117 depend:: chimei.u
|
|
118
|
|
119 clean::
|
|
120 $(RM) chimei.u
|
|
121
|
|
122 computer.hd: $(PUBDICPLUSSRC)/computer.hd
|
|
123 $(RM) $@
|
|
124 $(LN) $? $@
|
|
125
|
|
126 includes:: computer.hd
|
|
127
|
|
128 depend:: computer.hd
|
|
129
|
|
130 clean::
|
|
131 $(RM) computer.hd
|
|
132
|
|
133 # computer.u: $(PUBDICPLUSSRC)/computer.u
|
|
134 # $(RM) $@
|
|
135 # $(LN) $? $@
|
|
136
|
|
137 includes:: computer.u
|
|
138
|
|
139 depend:: computer.u
|
|
140
|
|
141 clean::
|
|
142 $(RM) computer.u
|
|
143
|
|
144 fzk.attr: $(PUBDICPLUSSRC)/fzk.attr
|
|
145 $(RM) $@
|
|
146 $(LN) $? $@
|
|
147
|
|
148 includes:: fzk.attr
|
|
149
|
|
150 depend:: fzk.attr
|
|
151
|
|
152 clean::
|
|
153 $(RM) fzk.attr
|
|
154
|
|
155 fzk.con: $(PUBDICPLUSSRC)/fzk.con
|
|
156 $(RM) $@
|
|
157 $(LN) $? $@
|
|
158
|
|
159 includes:: fzk.con
|
|
160
|
|
161 depend:: fzk.con
|
|
162
|
|
163 clean::
|
|
164 $(RM) fzk.con
|
|
165
|
|
166 fzk.fzkattr: $(PUBDICPLUSSRC)/fzk.fzkattr
|
|
167 $(RM) $@
|
|
168 $(LN) $? $@
|
|
169
|
|
170 includes:: fzk.fzkattr
|
|
171
|
|
172 depend:: fzk.fzkattr
|
|
173
|
|
174 clean::
|
|
175 $(RM) fzk.fzkattr
|
|
176
|
|
177 fzk.jirattr: $(PUBDICPLUSSRC)/fzk.jirattr
|
|
178 $(RM) $@
|
|
179 $(LN) $? $@
|
|
180
|
|
181 includes:: fzk.jirattr
|
|
182
|
|
183 depend:: fzk.jirattr
|
|
184
|
|
185 clean::
|
|
186 $(RM) fzk.jirattr
|
|
187
|
|
188 fzk.jircon: $(PUBDICPLUSSRC)/fzk.jircon
|
|
189 $(RM) $@
|
|
190 $(LN) $? $@
|
|
191
|
|
192 includes:: fzk.jircon
|
|
193
|
|
194 depend:: fzk.jircon
|
|
195
|
|
196 clean::
|
|
197 $(RM) fzk.jircon
|
|
198
|
|
199 fzk.master: $(PUBDICPLUSSRC)/fzk.master
|
|
200 $(RM) $@
|
|
201 $(LN) $? $@
|
|
202
|
|
203 includes:: fzk.master
|
|
204
|
|
205 depend:: fzk.master
|
|
206
|
|
207 clean::
|
|
208 $(RM) fzk.master
|
|
209
|
|
210 fzk.shuutan: $(PUBDICPLUSSRC)/fzk.shuutan
|
|
211 $(RM) $@
|
|
212 $(LN) $? $@
|
|
213
|
|
214 includes:: fzk.shuutan
|
|
215
|
|
216 depend:: fzk.shuutan
|
|
217
|
|
218 clean::
|
|
219 $(RM) fzk.shuutan
|
|
220
|
|
221 jinmei.hd: $(PUBDICPLUSSRC)/jinmei.hd
|
|
222 $(RM) $@
|
|
223 $(LN) $? $@
|
|
224
|
|
225 includes:: jinmei.hd
|
|
226
|
|
227 depend:: jinmei.hd
|
|
228
|
|
229 clean::
|
|
230 $(RM) jinmei.hd
|
|
231
|
|
232 # jinmei.u: $(PUBDICPLUSSRC)/jinmei.u
|
|
233 # $(RM) $@
|
|
234 # $(LN) $? $@
|
|
235
|
|
236 includes:: jinmei.u
|
|
237
|
|
238 depend:: jinmei.u
|
|
239
|
|
240 clean::
|
|
241 $(RM) jinmei.u
|
|
242
|
|
243 kihon.hd: $(PUBDICPLUSSRC)/kihon.hd
|
|
244 $(RM) $@
|
|
245 $(LN) $? $@
|
|
246
|
|
247 includes:: kihon.hd
|
|
248
|
|
249 depend:: kihon.hd
|
|
250
|
|
251 clean::
|
|
252 $(RM) kihon.hd
|
|
253
|
|
254 # kihon.u: $(PUBDICPLUSSRC)/kihon.u
|
|
255 # $(RM) $@
|
|
256 # $(LN) $? $@
|
|
257
|
|
258 includes:: kihon.u
|
|
259
|
|
260 depend:: kihon.u
|
|
261
|
|
262 clean::
|
|
263 $(RM) kihon.u
|
|
264
|
|
265 koyuu.hd: $(PUBDICPLUSSRC)/koyuu.hd
|
|
266 $(RM) $@
|
|
267 $(LN) $? $@
|
|
268
|
|
269 includes:: koyuu.hd
|
|
270
|
|
271 depend:: koyuu.hd
|
|
272
|
|
273 clean::
|
|
274 $(RM) koyuu.hd
|
|
275
|
|
276 # koyuu.u: $(PUBDICPLUSSRC)/koyuu.u
|
|
277 # $(RM) $@
|
|
278 # $(LN) $? $@
|
|
279
|
|
280 includes:: koyuu.u
|
|
281
|
|
282 depend:: koyuu.u
|
|
283
|
|
284 clean::
|
|
285 $(RM) koyuu.u
|
|
286
|
|
287 setsuji.hd: $(PUBDICPLUSSRC)/setsuji.hd
|
|
288 $(RM) $@
|
|
289 $(LN) $? $@
|
|
290
|
|
291 includes:: setsuji.hd
|
|
292
|
|
293 depend:: setsuji.hd
|
|
294
|
|
295 clean::
|
|
296 $(RM) setsuji.hd
|
|
297
|
|
298 # setsuji.u: $(PUBDICPLUSSRC)/setsuji.u
|
|
299 # $(RM) $@
|
|
300 # $(LN) $? $@
|
|
301
|
|
302 includes:: setsuji.u
|
|
303
|
|
304 depend:: setsuji.u
|
|
305
|
|
306 clean::
|
|
307 $(RM) setsuji.u
|
|
308
|
|
309 special.hd: $(PUBDICPLUSSRC)/special.hd
|
|
310 $(RM) $@
|
|
311 $(LN) $? $@
|
|
312
|
|
313 includes:: special.hd
|
|
314
|
|
315 depend:: special.hd
|
|
316
|
|
317 clean::
|
|
318 $(RM) special.hd
|
|
319
|
|
320 special.u: $(PUBDICPLUSSRC)/special.u
|
|
321 $(RM) $@
|
|
322 $(LN) $? $@
|
|
323
|
|
324 includes:: special.u
|
|
325
|
|
326 depend:: special.u
|
|
327
|
|
328 clean::
|
|
329 $(RM) special.u
|
|
330
|
|
331 symbol.hd: $(PUBDICPLUSSRC)/symbol.hd
|
|
332 $(RM) $@
|
|
333 $(LN) $? $@
|
|
334
|
|
335 includes:: symbol.hd
|
|
336
|
|
337 depend:: symbol.hd
|
|
338
|
|
339 clean::
|
|
340 $(RM) symbol.hd
|
|
341
|
|
342 # symbol.u: $(PUBDICPLUSSRC)/symbol.u
|
|
343 # $(RM) $@
|
|
344 # $(LN) $? $@
|
|
345
|
|
346 includes:: symbol.u
|
|
347
|
|
348 depend:: symbol.u
|
|
349
|
|
350 clean::
|
|
351 $(RM) symbol.u
|
|
352
|
|
353 tankan.hd: $(PUBDICPLUSSRC)/tankan.hd
|
|
354 $(RM) $@
|
|
355 $(LN) $? $@
|
|
356
|
|
357 includes:: tankan.hd
|
|
358
|
|
359 depend:: tankan.hd
|
|
360
|
|
361 clean::
|
|
362 $(RM) tankan.hd
|
|
363
|
|
364 # tankan.u: $(PUBDICPLUSSRC)/tankan.u
|
|
365 # $(RM) $@
|
|
366 # $(LN) $? $@
|
|
367
|
|
368 includes:: tankan.u
|
|
369
|
|
370 depend:: tankan.u
|
|
371
|
|
372 clean::
|
|
373 $(RM) tankan.u
|
|
374
|
|
375 instserver:: install
|
|
376
|
|
377 install::
|
|
378 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
379 @for i in $(JWNNDICDIR); do if [ -d $(DESTDIR)$$i ]; then \
|
|
380 set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i; \
|
|
381 chown $(WNNOWNER) $(DESTDIR)$$i); fi \
|
|
382 done
|
|
383
|
|
384 install:: $(DIC)
|
|
385 @if [ -d $(DESTDIR)$(JWNNPUBDICDIR) ]; then set +x; \
|
|
386 else (set -x; $(MKDIRHIER) $(DESTDIR)$(JWNNPUBDICDIR)); fi
|
|
387 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
388 @for i in $(DIC); do if [ -f $(DESTDIR)$(JWNNPUBDICDIR)/$$i ]; then \
|
|
389 set +x; \
|
|
390 else (set -x; \
|
|
391 $(INSTALL) $(INSTLIBFLAGS) $(LOCAL_INSTFLAGS) $$i $(DESTDIR)$(JWNNPUBDICDIR); \
|
|
392 $(WNNTOUCH) $(DESTDIR)$(JWNNPUBDICDIR)/$$i); fi \
|
|
393 done
|
|
394
|
|
395 install:: $(FZKDATA)
|
|
396 @if [ -d $(DESTDIR)$(JWNNPUBDICDIR) ]; then set +x; \
|
|
397 else (set -x; $(MKDIRHIER) $(DESTDIR)$(JWNNPUBDICDIR)); fi
|
|
398 @case '${MFLAGS}' in *[i]*) set +e;; esac;
|
|
399 @for i in $(FZKDATA); do if [ -f $(DESTDIR)$(JWNNPUBDICDIR)/$$i ]; then \
|
|
400 set +x; \
|
|
401 else (set -x; \
|
|
402 $(INSTALL) $(INSTLIBFLAGS) $(LOCAL_INSTFLAGS) $$i $(DESTDIR)$(JWNNPUBDICDIR); \
|
|
403 $(WNNTOUCH) $(DESTDIR)$(JWNNPUBDICDIR)/$$i); fi \
|
|
404 done
|
|
405
|
|
406 install:: $(FZK_SRC)
|
|
407 @if [ -d $(DESTDIR)$(JWNNFZKSRCDIR) ]; then set +x; \
|
|
408 else (set -x; $(MKDIRHIER) $(DESTDIR)$(JWNNFZKSRCDIR)); fi
|
|
409 @for flag in ${MAKEFLAGS} ''; do \
|
|
410 case "$$flag" in *=*) ;; *[i]*) set +e;; esac; done; \
|
|
411 for i in $(FZK_SRC); do \
|
|
412 (set -x; $(INSTALL) $(INSTDATFLAGS) $(LOCAL_INSTFLAGS) $$i $(DESTDIR)$(JWNNFZKSRCDIR)); \
|
|
413 done
|
|
414
|
|
415 depend::
|
|
416 @echo "skipping make in my dir"
|
|
417
|
|
418 # Temporally file (.c) for dictionary generation - workaround
|
|
419 # To avoid circular dependency, we don't use 'fzk.master.c'
|
|
420 fzk.master-.c: fzk.master
|
|
421 $(RM) $@
|
|
422 $(LN) $? $@
|
|
423
|
|
424 std.fzk: fzk.master-.c $(FZK_SRC)
|
|
425 $(CPP) $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
|
|
426
|
|
427 full.fzk: $(FZK_SRC)
|
|
428 $(MAKE) FZK_FLAG=-DKANSAI std.fzk
|
|
429 $(MV) std.fzk $@
|
|
430
|
|
431 kougo.fzk: $(FZK_SRC)
|
|
432 $(MAKE) FZK_FLAG=-DKOUGO std.fzk
|
|
433 $(MV) std.fzk $@
|
|
434
|
|
435 # additional rule from PubdicPlus/Makefile.in : by aono
|
|
436 pod.o: $(PUBDICPLUSSRC)/pod.c
|
|
437 $(CC) $(CFLAGS) -c $?
|
|
438
|
|
439 pod: pod.o
|
|
440 $(CC) $(CFLAGS) -o $@ pod.o
|
|
441
|
|
442 $(WNNDICS): pod $(PUBDICPLUSSRC)/pubdic.p
|
|
443 ./pod $(PUBDICPLUSSRC)/pubdic.p -w -1 -k `basename $@ .u` > $@
|
|
444
|
|
445 .SUFFIXES: .hd .u .dic .more
|
|
446
|
|
447 .u.dic:
|
|
448 cat $*.hd $< | $(ATOD) -p $(VERSION) -P $(VERSION) -h $(HINSI) $@
|
|
449
|
|
450 .hd.more:
|
|
451 $(ATOD) -h $(HINSI) $@ < $<
|
|
452
|
|
453 $(DIC): $(HINSI)
|
|
454
|
|
455 clean::
|
|
456 $(RM) -f *.fzk *.dic *.more fzk.master-.c pod $(LINKS)
|