/[suikacvs]/messaging/manakai/t/Makefile
Suika

Diff of /messaging/manakai/t/Makefile

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

revision 1.10 by wakaba, Mon Jan 23 12:43:36 2006 UTC revision 1.37 by wakaba, Fri Sep 21 08:11:37 2007 UTC
# Line 3  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin Line 3  MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin
3  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/  MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
4  MANAKAI_TEST_DIR = $(MANAKAI_ROOT_DIR)t/  MANAKAI_TEST_DIR = $(MANAKAI_ROOT_DIR)t/
5    
 DIS_SUFFIX = .dis  
 DAC_SUFFIX = .dae  
 DAEM_SUFFIX = .daem  
 PM_SUFFIX = .pm  
   
6  CD = cd  CD = cd
7  MAKE = make  MAKE = make
8  MKDIR = mkdir -p  MKDIR = mkdir -p
9    ECHO = echo
10    
11  RM = rm  RM = rm
12  RMALL = $(RM) -fv  RMALL = $(RM) -fv
# Line 19  TEST_VERBOSE = 0 Line 15  TEST_VERBOSE = 0
15  INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch  INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch
16  INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib  INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib
17    
 PERL_OPTIONS =  
18  PERL = perl  PERL = perl
19  PERL_ = $(PERL) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)  PERL_OPTIONS =
20  PERLC = $(PERL) -c  PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
21  PERLC_ = $(PERLC) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)  PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
22  PERL_TEST_ = $(PERL) \  PERLC = $(PERL) -c -w
23               $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) \  PERLC_OPTIONS =
24    PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
25    PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
26    PERL_TEST_ = $(PERL) $(PERL_OPTIONS_ALL) \
27               -MExtUtils::Command::MM \               -MExtUtils::Command::MM \
28               -e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \               -e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \
29                                        '$(INST_ARCHLIB)')"                                        '$(INST_ARCHLIB)')"
30    
 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)"  
   
31  DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/  DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/
32  DOMTEST_PERL_DIR = $(MANAKAI_TEST_DIR)dom/  DOMTEST_PERL_DIR = $(MANAKAI_TEST_DIR)dom/
33  DOMTEST_FILE = *.xml  DOMTEST_FILE = *.xml
# Line 44  DOMTS2PERL_PL = $(MANAKAI_BIN_DIR)domts2 Line 36  DOMTS2PERL_PL = $(MANAKAI_BIN_DIR)domts2
36  DOMTS2PERL = $(PERL_) -I$(MANAKAI_BIN_DIR) $(DOMTS2PERL_PL)  DOMTS2PERL = $(PERL_) -I$(MANAKAI_BIN_DIR) $(DOMTS2PERL_PL)
37  DOMTEST2PERL_PL = $(MANAKAI_BIN_DIR)domtest2perl.pl  DOMTEST2PERL_PL = $(MANAKAI_BIN_DIR)domtest2perl.pl
38    
39  DAC2TEST_OPTIONS =  PT_SUFFIX = .t
 DAC2TEST_PL = $(MANAKAI_BIN_DIR)dac2test.pl  
 DAC2TEST = $(PERL_) $(DAC2TEST_PL) $(DAC2TEST_OPTIONS) $(DIS_OPTIONS_ALL)  
   
 DOM_FEATURE_DAC = $(MANAKAI_LIB_DIR)Message/DOM/feature$(DAC_SUFFIX)  
 DOM_CORE_DAC = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX)  
 DOM_LS_DAC = $(MANAKAI_LIB_DIR)Message/DOM/ls$(DAC_SUFFIX)  
 DOM_XP_DAC = $(MANAKAI_LIB_DIR)Message/DOM/xp$(DAC_SUFFIX)  
 DOM_DAC_FILES = $(DOM_FEATURE_DAC) $(DOM_CORE_DAC) $(DOM_LS_DAC) $(DOM_XP_DAC)  
   
 UTIL_TEST_DAC = $(MANAKAI_LIB_DIR)Message/Util/coretest$(DAC_SUFFIX)  
 UTIL_MNTEST_PM = $(MANAKAI_LIB_DIR)Message/Util/ManakaiNodeTest$(PM_SUFFIX)  
 UTIL_PC_DAC = $(MANAKAI_LIB_DIR)Message/Util/pc$(DAC_SUFFIX)  
 DIS_CORE_DAC = $(MANAKAI_LIB_DIR)Message/Util/discore$(DAC_SUFFIX)  
   
 NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.  
 NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#  
 NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/  
 NS_DIS  = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#  
   
 GENERATED_FILES = \  
   util-mntest.t \  
   util-perlcode.t dom-feature.t dom-tree.t dom-genericls.t \  
   dom-core.t dom-xdoctype.t dom-xmlparser.t \  
   dom-mdomls2003.t util-dis-dnlite.t  
40    
41  all: $(GENERATED_FILES)  all:
42    
43  dom1core-perl: $(DOMTS2PERL_PL)  dom1core-perl: $(DOMTS2PERL_PL)
44          $(MKDIR) $(DOMTEST_PERL_DIR)level1/core/          $(MKDIR) $(DOMTEST_PERL_DIR)level1/core/
# Line 82  dom1core: Line 50  dom1core:
50          MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \          MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \
51            $(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl            $(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl
52    
53  test-module-all: test-module-dom test-module-util  test:
54            $(PERL_TEST_) *$(PT_SUFFIX)
 test-module-dom: \  
   dom-feature.t \  
   dom-core.t dom-tree.t dom-xdoctype.t \  
   dom-genericls.t \  
   dom-mdomls2003.t dom-xmlparser.t  
         $(PERL_TEST_) dom-*.t  
   
 dom-feature.t: $(DOM_FEATURE_DAC) $(DAC2TEST_PL)  
         $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMFeature" > $@  
   
 dom-genericls.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)  
         $(DAC2TEST) $< --source-module="$(NS_MDOM)GenericLS" > $@  
   
 dom-tree.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)  
         $(DAC2TEST) $< --source-module="$(NS_MDOM)Tree" > $@  
   
 dom-core.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)  
         $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMCore" > $@  
55    
56  dom-xdoctype.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)  test-module-all: \
57          $(DAC2TEST) $< --source-module="$(NS_MDOM)XDoctype" > $@    test-module-dom
58    
59  dom-mdomls2003.t: $(DOM_LS_DAC) $(DAC2TEST_PL)  test-module-dom:
60          $(DAC2TEST) $< --source-module="$(NS_MDOM)ManakaiDOMLS2003" > $@          $(PERL_TEST_) DOM-*$(PT_SUFFIX)
   
 dom-xmlparser.t: $(DOM_XP_DAC) $(DAC2TEST_PL)  
         $(DAC2TEST) $< --source-module="$(NS_MDOM)XMLParser" > $@  
   
 test-module-util: \  
   util-mntest.t \  
   util-perlcode.t \  
   util-dis-dnlite.t  
         $(PERL_TEST_) util-*.t  
   
 util-mntest.t: $(UTIL_TEST_DAC) $(UTIL_MNTEST_PM) $(DAC2TEST_PL)  
         $(DAC2TEST) $< --source-module="$(NS_UTIL)ManakaiNodeTest" > $@  
   
 util-perlcode.t: $(UTIL_PC_DAC) $(DAC2TEST_PL)  
         $(DAC2TEST) $< --source-module="$(NS_UTIL)PerlCode" > $@  
   
 util-dis-dnlite.t: $(DIS_CORE_DAC) $(DAC2TEST_PL)  
         $(DAC2TEST) $< --source-module="$(NS_DIS)DNLite" > $@  
   
 $(DOM_DAC_FILES): $(MANAKAI_LIB_DIR)Message/DOM/%: always  
         $(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) $*  
   
 $(UTIL_TEST_DAC) $(UTIL_MNTEST_PM) $(UTIL_PC_DAC) $(DIS_CORE_DAC): \  
   $(MANAKAI_LIB_DIR)Message/Util/%: always  
         $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) $*  
61    
62  clean: clean-dom1core-perl  clean: clean-dom1core-perl
         $(RMALL) $(GENERATED_FILES)  
63    
64  clean-dom1core-perl:  clean-dom1core-perl:
65          $(RMALL) $(DOMTEST_PERL_DIR)level1/core/*          $(RMALL) $(DOMTEST_PERL_DIR)level1/core/*
66          $(RMALL) *~ .*~ *.BAK .*.BAK          $(RMALL) *~ .*~ *.BAK .*.BAK
67    
68    distclean: clean
69    
70  always:  always:

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.37

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24