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 |
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) |
DOM_LS_DAC = $(MANAKAI_LIB_DIR)Message/DOM/ls$(DAC_SUFFIX) |
55 |
DOM_DAC_FILES = $(DOM_FEATURE_DAC) $(DOM_CORE_DAC) $(DOM_LS_DAC) |
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) |
UTIL_PC_DAC = $(MANAKAI_LIB_DIR)Message/Util/pc$(DAC_SUFFIX) |
61 |
DIS_CORE_DAC = $(MANAKAI_LIB_DIR)Message/Util/discore$(DAC_SUFFIX) |
DIS_CORE_DAC = $(MANAKAI_LIB_DIR)Message/Util/discore$(DAC_SUFFIX) |
62 |
|
|
65 |
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
66 |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
67 |
|
|
68 |
GENERATED_FILES = util-perlcode.t dom-feature.t dom-tree.t dom-genericls.t \ |
GENERATED_FILES = \ |
69 |
dom-core.t dom-xdoctype.t \ |
util-mntest.t \ |
70 |
|
util-perlcode.t dom-feature.t dom-tree.t dom-genericls.t \ |
71 |
|
dom-core.t dom-xdoctype.t dom-xmlparser.t \ |
72 |
dom-mdomls2003.t util-dis-dnlite.t |
dom-mdomls2003.t util-dis-dnlite.t |
73 |
|
|
74 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
89 |
dom-feature.t \ |
dom-feature.t \ |
90 |
dom-core.t dom-tree.t dom-xdoctype.t \ |
dom-core.t dom-tree.t dom-xdoctype.t \ |
91 |
dom-genericls.t \ |
dom-genericls.t \ |
92 |
dom-mdomls2003.t |
dom-mdomls2003.t dom-xmlparser.t |
93 |
$(PERL_TEST_) dom-*.t |
$(PERL_TEST_) dom-*.t |
94 |
|
|
95 |
dom-feature.t: $(DOM_FEATURE_DAC) $(DAC2TEST_PL) |
dom-feature.t: $(DOM_FEATURE_DAC) $(DAC2TEST_PL) |
98 |
dom-genericls.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) |
dom-genericls.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) |
99 |
$(DAC2TEST) $< --source-module="$(NS_MDOM)GenericLS" > $@ |
$(DAC2TEST) $< --source-module="$(NS_MDOM)GenericLS" > $@ |
100 |
|
|
101 |
dom-tree.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) |
dom-tree.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) Makefile |
102 |
$(DAC2TEST) $< --source-module="$(NS_MDOM)Tree" > $@ |
$(ECHO) "require 'manakai/mndebug.pl';" > $@ |
103 |
|
$(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@ |
104 |
|
#$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@ |
105 |
|
#$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@ |
106 |
|
$(DAC2TEST) $< --source-module="$(NS_MDOM)Tree" >> $@ |
107 |
|
|
108 |
dom-core.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) |
dom-core.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) |
109 |
$(DAC2TEST) $< --source-module="$(NS_MDOM)DOMCore" > $@ |
$(DAC2TEST) $< --source-module="$(NS_MDOM)DOMCore" > $@ |
110 |
|
|
111 |
dom-xdoctype.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) |
dom-xdoctype.t: $(DOM_CORE_DAC) $(DAC2TEST_PL) Makefile |
112 |
$(DAC2TEST) $< --source-module="$(NS_MDOM)XDoctype" > $@ |
$(ECHO) "require 'manakai/mndebug.pl';" > $@ |
113 |
|
$(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@ |
114 |
|
#$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@ |
115 |
|
#$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@ |
116 |
|
$(DAC2TEST) $< --source-module="$(NS_MDOM)XDoctype" >> $@ |
117 |
|
|
118 |
dom-mdomls2003.t: $(DOM_LS_DAC) $(DAC2TEST_PL) |
dom-mdomls2003.t: $(DOM_LS_DAC) $(DAC2TEST_PL) |
119 |
$(DAC2TEST) $< --source-module="$(NS_MDOM)ManakaiDOMLS2003" > $@ |
$(DAC2TEST) $< --source-module="$(NS_MDOM)ManakaiDOMLS2003" > $@ |
120 |
|
|
121 |
|
dom-xmlparser.t: $(DOM_XP_DAC) $(DAC2TEST_PL) |
122 |
|
$(DAC2TEST) $< --source-module="$(NS_MDOM)XMLParser" > $@ |
123 |
|
|
124 |
test-module-util: \ |
test-module-util: \ |
125 |
|
util-mntest.t \ |
126 |
util-perlcode.t \ |
util-perlcode.t \ |
127 |
util-dis-dnlite.t |
util-dis-dnlite.t |
128 |
$(PERL_TEST_) util-*.t |
$(PERL_TEST_) util-*.t |
129 |
|
|
130 |
|
util-mntest.t: $(UTIL_TEST_DAC) $(UTIL_MNTEST_PM) $(DAC2TEST_PL) Makefile |
131 |
|
$(ECHO) "require 'manakai/mndebug.pl';" > $@ |
132 |
|
$(ECHO) "manakai::mndebug::define_nodestem_destroy ();" >> $@ |
133 |
|
#$(ECHO) "manakai::mndebug::define_nodestem_destroy_all ();" >> $@ |
134 |
|
#$(ECHO) "manakai::mndebug::define_noderef_destroy_all ();" >> $@ |
135 |
|
$(DAC2TEST) $< --source-module="$(NS_UTIL)ManakaiNodeTest" >> $@ |
136 |
|
|
137 |
util-perlcode.t: $(UTIL_PC_DAC) $(DAC2TEST_PL) |
util-perlcode.t: $(UTIL_PC_DAC) $(DAC2TEST_PL) |
138 |
$(DAC2TEST) $< --source-module="$(NS_UTIL)PerlCode" > $@ |
$(DAC2TEST) $< --source-module="$(NS_UTIL)PerlCode" > $@ |
139 |
|
|
143 |
$(DOM_DAC_FILES): $(MANAKAI_LIB_DIR)Message/DOM/%: always |
$(DOM_DAC_FILES): $(MANAKAI_LIB_DIR)Message/DOM/%: always |
144 |
$(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) $* |
$(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) $* |
145 |
|
|
146 |
$(UTIL_PC_DAC) $(DIS_CORE_DAC): $(MANAKAI_LIB_DIR)Message/Util/%: always |
$(UTIL_TEST_DAC) $(UTIL_MNTEST_PM) $(UTIL_PC_DAC) $(DIS_CORE_DAC): \ |
147 |
|
$(MANAKAI_LIB_DIR)Message/Util/%: always |
148 |
$(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) $* |
$(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) $* |
149 |
|
|
150 |
clean: clean-dom1core-perl |
clean: clean-dom1core-perl |