File: Makefile.am

package info (click to toggle)
cpanel 0.4.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,612 kB
  • ctags: 777
  • sloc: ansic: 7,931; sh: 3,099; makefile: 376; yacc: 318; perl: 68
file content (50 lines) | stat: -rw-r--r-- 1,248 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
SLICE= @SLICE@
AUTOGB= @AUTOGB@ -i big5 -o gb
TRON= ${top_srcdir}/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 \
  chinput_help

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/$*
	$(AUTOGB) < $*.zh-cn.tmp | $(TOCN) > gb/$*

clean: clean-am
	rm -f *.tmp
	rm -f *~
	rm -f big5/*_* gb/*_*


install-data-local:
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/help
	if test -d $(srcdir)/big5; then \
	  $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/help/big5; \
	  for big5 in $(srcdir)/big5/*; do \
	    if test -f $$big5; then \
	      $(INSTALL_DATA) $$big5 $(DESTDIR)$(pkgdatadir)/help/big5; \
	    fi \
	  done \
	fi
	if test -d $(srcdir)/gb; then \
	  $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/help/gb; \
	  for gb in $(srcdir)/gb/*; do \
	    if test -f $$gb; then \
	      $(INSTALL_DATA) $$gb $(DESTDIR)$(pkgdatadir)/help/gb; \
	    fi \
	  done \
	fi