File: Makefile

package info (click to toggle)
cpanel 0.3.1-2.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 796 kB
  • ctags: 240
  • sloc: ansic: 2,538; makefile: 136; perl: 68
file content (35 lines) | stat: -rw-r--r-- 768 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
SLICE = /usr/bin/slice
AUTOGB = /usr/bin/autogb -i big5 -o gb
TOCN = ../tocn.pl

DOC = cpanel_help crxvt_help crxvt_opt \
	gtk_fonts_help gtk_fonts_opt \
	pydict_help \
	set_locale_help set_locale_opt \
	xacv_help xacv_opt \
	xcin23_HOWTO xcin23_opt \
	xcin_opt xcin_README xcin_README.En

all: $(addprefix big5/,$(DOC)) $(addprefix gb/,$(DOC))

big5/% gb/%: %.in $(TOCN)
	@test -d big5 || mkdir big5
	@test -d gb || mkdir gb
	$(SLICE) $< \
		-o UNDEFuCN:$(*D)/$(*F).zh-cn.tmp \
		-o UNDEFuTW:$(*D)/$(*F).zh-tw.tmp
#	cp -af $*.zh-tw.tmp big5/$*
	mv -f $*.zh-tw.tmp big5/$*
	$(AUTOGB) < $*.zh-cn.tmp | $(TOCN) > gb/$*
	rm -f $*.zh-cn.tmp

clean:
	rm -f *.tmp

distclean: clean
	rm -f *~

maintclean: distclean
	rm -f big5/* gb/*

.PHONY: all clean distclean maintclean