/[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.4 by wakaba, Tue Nov 15 14:18:24 2005 UTC revision 1.13 by wakaba, Sun Jan 29 13:59:00 2006 UTC
# Line 6  MANAKAI_TEST_DIR = $(MANAKAI_ROOT_DIR)t/ Line 6  MANAKAI_TEST_DIR = $(MANAKAI_ROOT_DIR)t/
6  DIS_SUFFIX = .dis  DIS_SUFFIX = .dis
7  DAC_SUFFIX = .dae  DAC_SUFFIX = .dae
8  DAEM_SUFFIX = .daem  DAEM_SUFFIX = .daem
9    PM_SUFFIX = .pm
10    
11  CD = cd  CD = cd
12  MAKE = make  MAKE = make
13  MKDIR = mkdir -p  MKDIR = mkdir -p
14    ECHO = echo
15    
16  RM = rm  RM = rm
17  RMALL = $(RM) -fv  RMALL = $(RM) -fv
# Line 49  DAC2TEST = $(PERL_) $(DAC2TEST_PL) $(DAC Line 51  DAC2TEST = $(PERL_) $(DAC2TEST_PL) $(DAC
51    
52  DOM_FEATURE_DAC = $(MANAKAI_LIB_DIR)Message/DOM/feature$(DAC_SUFFIX)  DOM_FEATURE_DAC = $(MANAKAI_LIB_DIR)Message/DOM/feature$(DAC_SUFFIX)
53  DOM_CORE_DAC = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX)  DOM_CORE_DAC = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX)
54    DOM_LS_DAC = $(MANAKAI_LIB_DIR)Message/DOM/ls$(DAC_SUFFIX)
55    DOM_XP_DAC = $(MANAKAI_LIB_DIR)Message/DOM/xp$(DAC_SUFFIX)
56    DOM_DAC_FILES = $(DOM_FEATURE_DAC) $(DOM_CORE_DAC) $(DOM_LS_DAC) $(DOM_XP_DAC)
57    
58    UTIL_TEST_DAC = $(MANAKAI_LIB_DIR)Message/Util/coretest$(DAC_SUFFIX)
59    UTIL_MNTEST_PM = $(MANAKAI_LIB_DIR)Message/Util/ManakaiNodeTest$(PM_SUFFIX)
60    UTIL_PC_DAC = $(MANAKAI_LIB_DIR)Message/Util/pc$(DAC_SUFFIX)
61    DIS_CORE_DAC = $(MANAKAI_LIB_DIR)Message/Util/discore$(DAC_SUFFIX)
62    
63  NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.  NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
64  NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#  NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
65    NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/
66    NS_DIS  = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#
67    
68  GENERATED_FILES = dom-feature.t dom-genericls.t  GENERATED_FILES = \
69      util-mntest.t \
70      dom-feature.t dom-genericls.t \
71      dom-core.t dom-tree.t dom-xml.t dom-xdoctype.t dom-xmlparser.t \
72      dom-mdomls2003.t \
73      util-dis-dnlite.t \
74      util-perlcode.t
75    
76  all: $(GENERATED_FILES)  all: $(GENERATED_FILES)
77    
# Line 67  dom1core: Line 85  dom1core:
85          MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \          MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \
86            $(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl            $(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl
87    
88    test-module-all: test-module-dom test-module-util
89    
90    test-module-dom: \
91      dom-feature.t dom-genericls.t \
92      dom-core.t dom-tree.t dom-xml.t dom-xdoctype.t \
93      dom-mdomls2003.t dom-xmlparser.t
94            $(PERL_TEST_) dom-*.t
95    
96  dom-feature.t: $(DOM_FEATURE_DAC) $(DAC2TEST_PL)  dom-feature.t: $(DOM_FEATURE_DAC) $(DAC2TEST_PL)
97          $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMFeature" > $@          $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMFeature" > $@
98    
99  dom-genericls.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)  dom-genericls.t: $(DOM_FEATURE_DAC) $(DAC2TEST_PL)
100          $(DAC2TEST) $< --source-module="$(NS_MDOM)GenericLS" > $@          $(DAC2TEST) $< --source-module="$(NS_MDOM)GenericLS" > $@
101    
102  $(DOM_FEATURE_DAC) $(DOM_CORE_DAC): $(MANAKAI_LIB_DIR)Message/DOM/%: always  dom-core.t: $(DOM_CORE_DAC) $(DAC2TEST_PL)
103            $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMCore" > $@
104    
105    dom-tree.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) Makefile
106            $(ECHO) "require 'manakai/mndebug.pl';" > $@
107            $(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@
108            #$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@
109            #$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@
110            $(DAC2TEST) $< --source-module="$(NS_MDOM)Tree" >> $@
111    
112    dom-xml.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) Makefile
113            $(ECHO) "require 'manakai/mndebug.pl';" > $@
114            $(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@
115            #$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@
116            #$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@
117            $(DAC2TEST) $< --source-module="$(NS_MDOM)DOMXML" >> $@
118    
119    dom-xdoctype.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) Makefile
120            $(ECHO) "require 'manakai/mndebug.pl';" > $@
121            $(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@
122            #$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@
123            #$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@
124            $(DAC2TEST) $< --source-module="$(NS_MDOM)XDoctype" >> $@
125    
126    dom-mdomls2003.t: $(DOM_LS_DAC) $(DAC2TEST_PL)
127            $(DAC2TEST) $< --source-module="$(NS_MDOM)ManakaiDOMLS2003" > $@
128    
129    dom-xmlparser.t: $(DOM_XP_DAC) $(DAC2TEST_PL)
130            $(DAC2TEST) $< --source-module="$(NS_MDOM)XMLParser" > $@
131    
132    test-module-util: \
133      util-mntest.t \
134      util-perlcode.t \
135      util-dis-dnlite.t
136            $(PERL_TEST_) util-*.t
137    
138    util-mntest.t: $(UTIL_TEST_DAC) $(UTIL_MNTEST_PM) $(DAC2TEST_PL) Makefile
139            $(ECHO) "require 'manakai/mndebug.pl';" > $@
140            $(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@
141            #$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@
142            #$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@
143            $(DAC2TEST) $< --source-module="$(NS_UTIL)ManakaiNodeTest" >> $@
144    
145    util-perlcode.t: $(UTIL_PC_DAC) $(DAC2TEST_PL)
146            $(DAC2TEST) $< --source-module="$(NS_UTIL)PerlCode" > $@
147    
148    util-dis-dnlite.t: $(DIS_CORE_DAC) $(DAC2TEST_PL)
149            $(DAC2TEST) $< --source-module="$(NS_DIS)DNLite" > $@
150    
151    $(DOM_DAC_FILES): $(MANAKAI_LIB_DIR)Message/DOM/%: always
152          $(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) $*          $(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) $*
153    
154    $(UTIL_TEST_DAC) $(UTIL_MNTEST_PM) $(UTIL_PC_DAC) $(DIS_CORE_DAC): \
155      $(MANAKAI_LIB_DIR)Message/Util/%: always
156            $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) $*
157    
158  clean: clean-dom1core-perl  clean: clean-dom1core-perl
159          $(RMALL) $(GENERATED_FILES)          $(RMALL) $(GENERATED_FILES)
160    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.13

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24