/[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.16 by wakaba, Sun Feb 26 06:42:58 2006 UTC revision 1.36 by wakaba, Sun Jul 29 08:04:42 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  
 DAEM_SUFFIX = .dafm  
 DAFX_SUFFIX = .dafx  
 PM_SUFFIX = .pm  
 PT_SUFFIX = .t  
   
6  CD = cd  CD = cd
7  MAKE = make  MAKE = make
8  MKDIR = mkdir -p  MKDIR = mkdir -p
# Line 34  PERL_TEST_ = $(PERL) $(PERL_OPTIONS_ALL) Line 28  PERL_TEST_ = $(PERL) $(PERL_OPTIONS_ALL)
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)" \  
       --dafx-file-suffix="$(DAFX_SUFFIX)"  
   
 DAF_OPTIONS =  
 DAF_PL = $(MANAKAI_BIN_DIR)daf.pl  
 DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL)  
   
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 53  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  NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.  GENERATED_FILES =
 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_UTIL_DIS   = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#  
   
 NS_MDOM_PT_FILES = \  
   dom-DOMFeature$(PT_SUFFIX) dom-GenericLS$(PT_SUFFIX) \  
   dom-DOMCore$(PT_SUFFIX) dom-Tree$(PT_SUFFIX) \  
   dom-DOMXML$(PT_SUFFIX) dom-XDoctype$(PT_SUFFIX) \  
   dom-DOMLS$(PT_SUFFIX) dom-XMLParser$(PT_SUFFIX) \  
   dom-ManakaiDOMLS2003$(PT_SUFFIX)  
 NS_UTIL_PT_FILES = \  
   util-ManakaiNodeTest$(PT_SUFFIX) \  
   util-PerlCode$(PT_SUFFIX) \  
   util-DIS$(PT_SUFFIX)  
 NS_UTIL_DIS_PT_FILES = \  
   util-dis-DNLite$(PT_SUFFIX)  
   
 PT_FILES = \  
   $(NS_MDOM_PT_FILES) \  
   $(NS_UTIL_PT_FILES) $(NS_UTIL_DIS_PT_FILES)  
   
 GENERATED_FILES = $(PT_FILES)  
40    
41  all: $(GENERATED_FILES)  all: $(GENERATED_FILES)
42    
# Line 89  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-module-all: \
54      test-module-dom
55    
56  test-module-dom: $(NS_MDOM_PT_FILES)  test-module-dom:
57          $(PERL_TEST_) dom-*.t          $(PERL_TEST_) DOM-*$(PT_SUFFIX)
   
 $(NS_MDOM_PT_FILES): dom-%$(PT_SUFFIX): \  
   $(MANAKAI_LIB_DIR)Message/DOM/%$(DIS_SUFFIX) $(DAF_PL)  
         $(DAF) --create-perl-test="$(NS_MDOM)$* $@"  
         $(ECHO) "BEGIN {" >> $@  
         $(ECHO) "  require 'manakai/mndebug.pl';" >> $@  
         $(ECHO) "  manakai::mndebug::define_nodestem_destroy ();" >> $@  
         #$(ECHO) "  manakai::mndebug::define_nodestem_destroy_all ();" >> $@  
         #$(ECHO) "  manakai::mndebug::define_noderef_destroy_all ();" >> $@  
         $(ECHO) "}" >> $@  
         $(PERL_CHK) $@  
   
 test-module-util: $(NS_UTIL_PT_FILES) $(NS_UTIL_DIS_PT_FILES)  
         $(PERL_TEST_) util-*.t  
   
 $(NS_UTIL_PT_FILES): util-%$(PT_SUFFIX): \  
   $(MANAKAI_LIB_DIR)Message/Util/%$(DIS_SUFFIX) $(DAF_PL)  
         $(DAF) --create-perl-test="$(NS_UTIL)$* $@"  
         $(PERL_CHK) $@  
   
 util-ManakaiNode$(PT_SUFFIX): \  
   $(MANAKAI_LIB_DIR)Message/Util/%$(DIS_SUFFIX) $(UTIL_MNTEST_PM) $(DAF_PL)  
         $(DAF) --create-perl-test="$(NS_UTIL)$* $@"  
         $(ECHO) "BEGIN {" >> $@  
         $(ECHO) "  require 'manakai/mndebug.pl';" >> $@  
         $(ECHO) "  manakai::mndebug::define_nodestem_destroy ();" >> $@  
         #$(ECHO) "  manakai::mndebug::define_nodestem_destroy_all ();" >> $@  
         #$(ECHO) "  manakai::mndebug::define_noderef_destroy_all ();" >> $@  
         $(ECHO) "}" >> $@  
         $(PERL_CHK) $@  
   
 $(NS_UTIL_DIS_PT_FILES): util-dis-%$(PT_SUFFIX): \  
   $(MANAKAI_LIB_DIR)Message/Util/DIS/%$(DIS_SUFFIX) $(DAF_PL)  
         $(DAF) --create-perl-test="$(NS_UTIL_DIS)$* $@"  
         $(PERL_CHK) $@  
   
 $(UTIL_MNTEST_PM): $(MANAKAI_LIB_DIR)Message/Util/%: always  
         $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) $*  
58    
59  clean: clean-dom1core-perl  clean: clean-dom1core-perl
60          $(RMALL) $(GENERATED_FILES)          $(RMALL) $(GENERATED_FILES)
# Line 139  clean-dom1core-perl: Line 63  clean-dom1core-perl:
63          $(RMALL) $(DOMTEST_PERL_DIR)level1/core/*          $(RMALL) $(DOMTEST_PERL_DIR)level1/core/*
64          $(RMALL) *~ .*~ *.BAK .*.BAK          $(RMALL) *~ .*~ *.BAK .*.BAK
65    
66    distclean: clean
67    
68  always:  always:

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.36

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24