File: Rules

package info (click to toggle)
xcin 2.5.2-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 3,732 kB
  • ctags: 2,972
  • sloc: ansic: 26,256; sh: 2,294; makefile: 864
file content (55 lines) | stat: -rw-r--r-- 1,859 bytes parent folder | download
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
gb2312 =	sys.tab.$(GB2312ENC) \
		jtcj_gb.tab.$(GB2312ENC) \
		pinyin.tab.$(GB2312ENC) \
		phonegb2.tab.$(GB2312ENC) \
		shuangpin.tab.$(GB2312ENC) \
		wubizixing.tab.$(GB2312ENC) \
		array30.tab.$(GB2312ENC)

gbk =	 	sys.tab.$(GBKENC)

include Makefile

make-gb2312: $(gb2312)

make-gbk: $(gbk)

sys.tab.$(GB2312ENC): sys.cin.gb2312
	$(cin2tab) -r $(xcinrc) -l $(GB2312ENC) -o $@ sys.cin.gb2312
jtcj_gb.tab.$(GB2312ENC): jtcj_gb.cin sys.tab.$(GB2312ENC)
	$(cin2tab) -r $(xcinrc) -l $(GB2312ENC) \
		-s sys.tab.$(GB2312ENC) -o $@ jtcj_gb.cin
pinyin.tab.$(GB2312ENC): pinyin.cin sys.tab.$(GB2312ENC)
	$(cin2tab) -r $(xcinrc) -l $(GB2312ENC) \
		-s sys.tab.$(GB2312ENC) -o $@ pinyin.cin
phonegb2.tab.$(GB2312ENC): phonegb2.cin sys.tab.$(GB2312ENC)
	$(cin2tab) -r $(xcinrc) -l $(GB2312ENC) \
		-s sys.tab.$(GB2312ENC) -o $@ phonegb2.cin
shuangpin.tab.$(GB2312ENC): shuangpin.cin sys.tab.$(GB2312ENC)
	$(cin2tab) -r $(xcinrc) -l $(GB2312ENC) \
		-s sys.tab.$(GB2312ENC) -o $@ shuangpin.cin
wubizixing.tab.$(GB2312ENC): wubizixing.cin sys.tab.$(GB2312ENC)
	$(cin2tab) -r $(xcinrc) -l $(GB2312ENC) \
		-s sys.tab.$(GB2312ENC) -o $@ wubizixing.cin
array30.tab.$(GB2312ENC): array30.cin sys.tab.$(GB2312ENC)
	$(cin2tab) -r $(xcinrc) -l $(GB2312ENC) \
		-s sys.tab.$(GB2312ENC) -o $@ array30.cin

sys.tab.$(GBKENC): sys.cin.gbk
	$(cin2tab) -r $(xcinrc) -l $(GBKENC) -o $@ sys.cin.gbk


install_gb2312:
	if [ ! -d $(xcin_datap)/$(GB2312ENC) ]; then \
	  $(INSTALL) -d $(xcin_datap)/$(GB2312ENC); fi
	for f in $(gb2312) default.phr; do \
	  ff=`basename $$f .$(GB2312ENC)`; \
	  $(INSTALL_DATA) $$f $(xcin_datap)/$(GB2312ENC)/$$ff; done

install_gbk:
	if [ ! -d $(xcin_datap)/$(GBKENC) ]; then \
	  $(INSTALL) -d $(xcin_datap)/$(GBKENC); fi
	for f in $(gbk) default.phr; do \
	  ff=`basename $$f .$(GBKENC)`; \
	  $(INSTALL_DATA) $$f $(xcin_datap)/$(GBKENC)/$$ff; done