/[suikacvs]/webroot/www/manakai-charlib/Makefile
Suika

Diff of /webroot/www/manakai-charlib/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by wakaba, Sun Jul 29 04:04:43 2007 UTC revision 1.2 by wakaba, Sun Jul 29 05:18:33 2007 UTC
# Line 1  Line 1 
1  MANAKAI_ROOT_DIR = ../../../  ## TO UPDATE: make all release-update distclean
 MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/  
 MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/  
   
 DIS_SUFFIX = .dis  
 DAEM_SUFFIX = .dafm  
 DAFX_SUFFIX = .dafx  
 PM_SUFFIX = .pm  
2    
3  CD = cd  CD = cd
4  MKDIR = mkdir  MKDIR = mkdir
# Line 15  RMALL = $(RM) -fv Line 8  RMALL = $(RM) -fv
8  RMDIRALL = $(RMALL) -r  RMDIRALL = $(RMALL) -r
9  PERL = perl  PERL = perl
10  PERL_OPTIONS =  PERL_OPTIONS =
11  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)  PERL_OPTIONS_ALL = $(PERL_OPTIONS)
12  PERL_ = $(PERL) $(PERL_OPTIONS_ALL)  PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
13  PERLC = $(PERL) -c -w  PERLC = $(PERL) -c -w
14  PERLC_OPTIONS =  PERLC_OPTIONS =
15  PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)  PERLC_OPTIONS_ALL = $(PERLC_OPTIONS)
16  PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)  PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
17  TOUCH = touch  TOUCH = touch
18  WGET = wget  WGET = wget
# Line 28  GREPV = $(GREP) -v Line 21  GREPV = $(GREP) -v
21  PERL_INPLACE = $(PERL_) -n -i  PERL_INPLACE = $(PERL_) -n -i
22  ECHO = echo  ECHO = echo
23  CP = cp  CP = cp
24    MV = mv
25    
26  ENC2XS_PATH = /usr/local/bin/  ENC2XS_PATH = /usr/local/bin/
27  ENC2XS = $(ENC2XS_PATH)enc2xs  ENC2XS = $(ENC2XS_PATH)enc2xs
28    
 NS_CHARSET = http://suika.fam.cx/~wakaba/archive/2005/manakai/Charset/  
   
 DIS_OPTIONS =  
 DIS_OPTIONS_ALL = $(DIS_OPTIONS) \  
       --search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \  
       --dis-file-suffix="$(DIS_SUFFIX)" \  
       --daem-file-suffix="$(DAEM_SUFFIX)" \  
       --dafx-file-suffix="$(DAFX_SUFFIX)"  
   
 DAF_OPTIONS =  
 DAF_PL = $(MANAKAI_BIN_DIR)daf.pl  
 DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL)  
   
29  TBR2TBL_PL = tbr2tbl.pl  TBR2TBL_PL = tbr2tbl.pl
30  TBR2TBL = $(PERL_) $(TBR2TBL_PL)  TBR2TBL = $(PERL_) $(TBR2TBL_PL)
31    
32  TBL2UCM_PL = tbl2ucm.pl  TBL2UCM_PL = tbl2ucm.pl
33  TBL2UCM = $(PERL_) $(TBL2UCM_PL)  TBL2UCM = $(PERL_) $(TBL2UCM_PL)
34    
 DIS_FILES = Encode$(DIS_SUFFIX)  
   
 PM_FILES = Encode$(PM_SUFFIX)  
   
35  GL_JIS_TBR_FILES = gl-jisx0208-common.tbr gl-cjk-hiragana.tbr \  GL_JIS_TBR_FILES = gl-jisx0208-common.tbr gl-cjk-hiragana.tbr \
36    gl-cjk-katakana.tbr gl-cjk-greek.tbr gl-cjk-cyrillic.tbr \    gl-cjk-katakana.tbr gl-cjk-greek.tbr gl-cjk-cyrillic.tbr \
37    gl-iso-646-alphanumeric.tbr gl-cjk-box-drawing.tbr    gl-iso-646-alphanumeric.tbr gl-cjk-box-drawing.tbr
# Line 73  ENCODE_DIRECTORIES = \ Line 50  ENCODE_DIRECTORIES = \
50    
51  GENERATED_FILES = $(PM_FILES)  GENERATED_FILES = $(PM_FILES)
52    
53  all: $(PM_FILES) $(ENCODE_DIRECTORIES)  all: $(ENCODE_DIRECTORIES)
   
 $(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL)  
         $(DAF) --create-perl-module="$(NS_CHARSET)$* $@"  
         $(PERL_CHK) $@  
54    
55  $(TBR2TBL_PL):  $(TBR2TBL_PL):
56          $(WGET) http://suika.fam.cx/gate/cvs/*checkout*/perl/lib/Encode/Table/tool/tbr2tbl.pl          $(WGET) http://suika.fam.cx/gate/cvs/*checkout*/perl/lib/Encode/Table/tool/tbr2tbl.pl
# Line 408  shift-jis-1997.tbl: %.tbl: %.tbr $(TBR2T Line 381  shift-jis-1997.tbl: %.tbl: %.tbr $(TBR2T
381    
382  GLJIS1978 GLJIS1983 GLJIS1997: GLJIS%: gl-jis-%.ucm  GLJIS1978 GLJIS1983 GLJIS1997: GLJIS%: gl-jis-%.ucm
383          $(MKDIR) -p $@          $(MKDIR) -p $@
384          $(CD) $@ && $(ENC2XS) -M $@ ../$<          $(CP) $< $@/$<
385            $(CD) $@ && $(ENC2XS) -M $@ $<
386          $(CD) $@ && $(PERL_) ./Makefile.PL          $(CD) $@ && $(PERL_) ./Makefile.PL
387          $(CD) $@ && $(MAKE)          $(CD) $@ && $(MAKE) manifest dist
388  GLJIS1997Swapped: gl-jis-1997-swapped.ucm  GLJIS1997Swapped: gl-jis-1997-swapped.ucm
389          $(MKDIR) -p $@          $(MKDIR) -p $@
390          $(CD) $@ && $(ENC2XS) -M $@ ../$<          $(CP) $< $@/$<
391            $(CD) $@ && $(ENC2XS) -M $@ $<
392          $(CD) $@ && $(PERL_) ./Makefile.PL          $(CD) $@ && $(PERL_) ./Makefile.PL
393          $(CD) $@ && $(MAKE)          $(CD) $@ && $(MAKE) manifest dist
394  EUCJP1997: euc-jp-1997.ucm  EUCJP1997: euc-jp-1997.ucm
395          $(MKDIR) -p $@          $(MKDIR) -p $@
396          $(CD) $@ && $(ENC2XS) -M $@ ../$<          $(CP) $< $@/$<
397            $(CD) $@ && $(ENC2XS) -M $@ $<
398          $(CD) $@ && $(PERL_) ./Makefile.PL          $(CD) $@ && $(PERL_) ./Makefile.PL
399          $(CD) $@ && $(MAKE)          $(CD) $@ && $(MAKE) manifest dist
400  ShiftJIS1997: shift-jis-1997.ucm  ShiftJIS1997: shift-jis-1997.ucm
401          $(MKDIR) -p $@          $(MKDIR) -p $@
402          $(CD) $@ && $(ENC2XS) -M $@ ../$<          $(CP) $< $@/$<
403            $(CD) $@ && $(ENC2XS) -M $@ $<
404          $(CD) $@ && $(PERL_) ./Makefile.PL          $(CD) $@ && $(PERL_) ./Makefile.PL
405          $(CD) $@ && $(MAKE)          $(CD) $@ && $(MAKE) manifest dist
   
 install-GLJIS1978 install-GLJIS1983 install-GLJIS1997 install-GLJIS1997Swapped \  
   install-EUCJP1997 install-ShiftJIS1997: install-%: %  
         $(CD) $< && $(MAKE) install  
   
 install: install-GLJIS1978 install-GLJIS1983 install-GLJIS1997 \  
   install-GLJIS1997Swapped \  
   install-EUCJP1997 install-ShiftJIS1997  
406    
407  clean:  release-update:
408            $(MV) GLJIS1978/Encode-GLJIS1978-0.01.tar.gz ./
409            $(MV) GLJIS1983/Encode-GLJIS1983-0.01.tar.gz ./
410            $(MV) GLJIS1997/Encode-GLJIS1997-0.01.tar.gz ./
411            $(MV) GLJIS1997Swapped/Encode-GLJIS1997Swapped-0.01.tar.gz ./
412            $(MV) EUCJP1997/Encode-EUCJP1997-0.01.tar.gz ./
413            $(MV) ShiftJIS1997/Encode-ShiftJIS1997-0.01.tar.gz ./
414    
415    clean-GLJIS1978 clean-GLJIS1983 clean-GLJIS1997 clean-GLJIS1997Swapped \
416      clean-EUCJP1997 clean-ShiftJIS1997: clean-%: %
417            $(CD) $< && $(MAKE) clean
418    
419    clean: clean-GLJIS1978 clean-GLJIS1983 clean-GLJIS1997 \
420      clean-GLJIS1997Swapped \
421      clean-EUCJP1997 clean-ShiftJIS1997
422          $(RMALL) $(GENERATED_FILES)          $(RMALL) $(GENERATED_FILES)
423          $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK          $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
424          $(RMALL) $(TBR2TBL_PL) $(TBL2UCM_PL)          $(RMALL) $(TBR2TBL_PL) $(TBL2UCM_PL)
425          $(RMALL) $(TBR_FILES) $(TBL_FILES) $(UCM_FILES)          $(RMALL) $(TBR_FILES) $(TBL_FILES) $(UCM_FILES)
         $(RMDIRALL) $(ENCODE_DIRECTORIES)  
426    
427  clean-db:  clean-subdirectories:
428          $(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX)          $(RMDIRALL) $(ENCODE_DIRECTORIES)
429    
430  distclean: clean clean-db  distclean: clean-subdirectories
431            $(RMALL) $(GENERATED_FILES)
432            $(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK
433            $(RMALL) $(TBR2TBL_PL) $(TBL2UCM_PL)
434            $(RMALL) $(TBR_FILES) $(TBL_FILES) $(UCM_FILES)
435    
436  ## $Date$  ## $Date$
437  ## License: Public Domain.  ## License: Public Domain.

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24