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 |
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 |
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 |
46 |
UCM_FILES = $(GENERATED_TBR_FILES:.tbr=.ucm) |
UCM_FILES = $(GENERATED_TBR_FILES:.tbr=.ucm) |
47 |
|
|
48 |
ENCODE_DIRECTORIES = \ |
ENCODE_DIRECTORIES = \ |
49 |
GLJIS1978 GLJIS1983 GLJIS1997 GLJIS1997Swapped EUCJP1997 ShiftJIS1997 |
GLJIS1978 GLJIS1983 GLJIS1997 GLJIS1997Swapped EUCJP1997 ShiftJIS1997 \ |
50 |
|
EUCJP1997OPENNEC |
51 |
|
|
52 |
GENERATED_FILES = $(PM_FILES) |
GENERATED_FILES = $(PM_FILES) |
53 |
|
|
54 |
all: $(PM_FILES) $(ENCODE_DIRECTORIES) |
all: $(ENCODE_DIRECTORIES) |
|
|
|
|
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
|
|
$(DAF) --create-perl-module="$(NS_CHARSET)$* $@" |
|
|
$(PERL_CHK) $@ |
|
55 |
|
|
56 |
$(TBR2TBL_PL): |
$(TBR2TBL_PL): |
57 |
$(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 |
371 |
.euc-jp-1997-gr-left.tbr.tmp $(TBR2TBL_PL) |
.euc-jp-1997-gr-left.tbr.tmp $(TBR2TBL_PL) |
372 |
$(TBR2TBL) $< > $@ |
$(TBR2TBL) $< > $@ |
373 |
|
|
374 |
|
euc-jp-1997-open-nec.tbl: |
375 |
|
$(WGET) -O $@ http://suika.fam.cx/gate/cvs/*checkout*/char/table/eucjp/euc-jp-1997-open-nec.tbl |
376 |
|
|
377 |
shift-jis-1997.tbl: %.tbl: %.tbr $(TBR2TBL_PL) |
shift-jis-1997.tbl: %.tbl: %.tbr $(TBR2TBL_PL) |
378 |
$(TBR2TBL) $< > $@ |
$(TBR2TBL) $< > $@ |
379 |
|
|
385 |
|
|
386 |
GLJIS1978 GLJIS1983 GLJIS1997: GLJIS%: gl-jis-%.ucm |
GLJIS1978 GLJIS1983 GLJIS1997: GLJIS%: gl-jis-%.ucm |
387 |
$(MKDIR) -p $@ |
$(MKDIR) -p $@ |
388 |
$(CD) $@ && $(ENC2XS) -M $@ ../$< |
$(CP) $< $@/$< |
389 |
|
$(CD) $@ && $(ENC2XS) -M $@ $< |
390 |
$(CD) $@ && $(PERL_) ./Makefile.PL |
$(CD) $@ && $(PERL_) ./Makefile.PL |
391 |
$(CD) $@ && $(MAKE) |
$(CD) $@ && $(MAKE) manifest dist |
392 |
GLJIS1997Swapped: gl-jis-1997-swapped.ucm |
GLJIS1997Swapped: gl-jis-1997-swapped.ucm |
393 |
$(MKDIR) -p $@ |
$(MKDIR) -p $@ |
394 |
$(CD) $@ && $(ENC2XS) -M $@ ../$< |
$(CP) $< $@/$< |
395 |
|
$(CD) $@ && $(ENC2XS) -M $@ $< |
396 |
$(CD) $@ && $(PERL_) ./Makefile.PL |
$(CD) $@ && $(PERL_) ./Makefile.PL |
397 |
$(CD) $@ && $(MAKE) |
$(CD) $@ && $(MAKE) manifest dist |
398 |
EUCJP1997: euc-jp-1997.ucm |
EUCJP1997: euc-jp-1997.ucm |
399 |
$(MKDIR) -p $@ |
$(MKDIR) -p $@ |
400 |
$(CD) $@ && $(ENC2XS) -M $@ ../$< |
$(CP) $< $@/$< |
401 |
|
$(CD) $@ && $(ENC2XS) -M $@ $< |
402 |
|
$(CD) $@ && $(PERL_) -i -p -e 's/"0\.01"/"0.02"/' $@.pm |
403 |
|
$(CD) $@ && $(PERL_) ./Makefile.PL |
404 |
|
$(CD) $@ && $(MAKE) manifest dist |
405 |
|
EUCJP1997OPENNEC: euc-jp-1997-open-nec.ucm |
406 |
|
$(MKDIR) -p $@ |
407 |
|
$(CP) $< $@/$< |
408 |
|
$(CD) $@ && $(ENC2XS) -M $@ $< |
409 |
$(CD) $@ && $(PERL_) ./Makefile.PL |
$(CD) $@ && $(PERL_) ./Makefile.PL |
410 |
$(CD) $@ && $(MAKE) |
$(CD) $@ && $(MAKE) manifest dist |
411 |
ShiftJIS1997: shift-jis-1997.ucm |
ShiftJIS1997: shift-jis-1997.ucm |
412 |
$(MKDIR) -p $@ |
$(MKDIR) -p $@ |
413 |
$(CD) $@ && $(ENC2XS) -M $@ ../$< |
$(CP) $< $@/$< |
414 |
|
$(CD) $@ && $(ENC2XS) -M $@ $< |
415 |
$(CD) $@ && $(PERL_) ./Makefile.PL |
$(CD) $@ && $(PERL_) ./Makefile.PL |
416 |
$(CD) $@ && $(MAKE) |
$(CD) $@ && $(MAKE) manifest dist |
417 |
|
|
418 |
install-GLJIS1978 install-GLJIS1983 install-GLJIS1997 install-GLJIS1997Swapped \ |
release-update: |
419 |
install-EUCJP1997 install-ShiftJIS1997: install-%: % |
$(MV) GLJIS1978/Encode-GLJIS1978-0.01.tar.gz ./ |
420 |
$(CD) $< && $(MAKE) install |
$(MV) GLJIS1983/Encode-GLJIS1983-0.01.tar.gz ./ |
421 |
|
$(MV) GLJIS1997/Encode-GLJIS1997-0.01.tar.gz ./ |
422 |
install: install-GLJIS1978 install-GLJIS1983 install-GLJIS1997 \ |
$(MV) GLJIS1997Swapped/Encode-GLJIS1997Swapped-0.01.tar.gz ./ |
423 |
install-GLJIS1997Swapped \ |
$(MV) EUCJP1997/Encode-EUCJP1997-0.02.tar.gz ./ |
424 |
install-EUCJP1997 install-ShiftJIS1997 |
$(MV) EUCJP1997/Encode-EUCJP1997OPENNEC-0.01.tar.gz ./ |
425 |
|
$(MV) ShiftJIS1997/Encode-ShiftJIS1997-0.01.tar.gz ./ |
426 |
clean: |
|
427 |
|
clean-GLJIS1978 clean-GLJIS1983 clean-GLJIS1997 clean-GLJIS1997Swapped \ |
428 |
|
clean-EUCJP1997 clean-EUCJP1997OPENNEC clean-ShiftJIS1997: clean-%: % |
429 |
|
$(CD) $< && $(MAKE) clean |
430 |
|
|
431 |
|
clean: clean-GLJIS1978 clean-GLJIS1983 clean-GLJIS1997 \ |
432 |
|
clean-GLJIS1997Swapped \ |
433 |
|
clean-EUCJP1997 clean-EUCJP1997OPENNEC clean-ShiftJIS1997 |
434 |
$(RMALL) $(GENERATED_FILES) |
$(RMALL) $(GENERATED_FILES) |
435 |
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
436 |
$(RMALL) $(TBR2TBL_PL) $(TBL2UCM_PL) |
$(RMALL) $(TBR2TBL_PL) $(TBL2UCM_PL) |
437 |
$(RMALL) $(TBR_FILES) $(TBL_FILES) $(UCM_FILES) |
$(RMALL) $(TBR_FILES) $(TBL_FILES) $(UCM_FILES) |
|
$(RMDIRALL) $(ENCODE_DIRECTORIES) |
|
438 |
|
|
439 |
clean-db: |
clean-subdirectories: |
440 |
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
$(RMDIRALL) $(ENCODE_DIRECTORIES) |
441 |
|
|
442 |
distclean: clean clean-db |
distclean: clean-subdirectories |
443 |
|
$(RMALL) $(GENERATED_FILES) |
444 |
|
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
445 |
|
$(RMALL) $(TBR2TBL_PL) $(TBL2UCM_PL) |
446 |
|
$(RMALL) $(TBR_FILES) $(TBL_FILES) $(UCM_FILES) |
447 |
|
|
448 |
## $Date$ |
## $Date$ |
449 |
## License: Public Domain. |
## License: Public Domain. |