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 |
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 |
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_CHARSET = http://suika.fam.cx/~wakaba/archive/2005/manakai/Charset/ |
GENERATED_FILES = |
|
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_URI = http://suika.fam.cx/~wakaba/archive/2005/manakai/URI/ |
|
|
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
|
|
NS_UTIL_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
|
|
|
|
|
TEST_PM_FILES = \ |
|
|
$(MANAKAI_LIB_DIR)Message/Util/DIS/Test$(PM_SUFFIX) |
|
|
|
|
|
NS_CHARSET_PT_FILES = \ |
|
|
charset-Encode$(PT_SUFFIX) |
|
|
NS_MDOM_PT_FILES = \ |
|
|
dom-DOMFeature$(PT_SUFFIX) dom-GenericLS$(PT_SUFFIX) \ |
|
|
dom-DOMCore$(PT_SUFFIX) dom-Tree$(PT_SUFFIX) \ |
|
|
dom-TreeCore$(PT_SUFFIX) dom-XML$(PT_SUFFIX) \ |
|
|
dom-DOMXML$(PT_SUFFIX) dom-XDoctype$(PT_SUFFIX) \ |
|
|
dom-DOMLS$(PT_SUFFIX) dom-XMLParser$(PT_SUFFIX) \ |
|
|
dom-ManakaiDOMLS2003$(PT_SUFFIX) |
|
|
NS_URI_PT_FILES = \ |
|
|
uri-Generic$(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_URI_PT_FILES) \ |
|
|
$(NS_UTIL_PT_FILES) $(NS_UTIL_DIS_PT_FILES) |
|
|
|
|
|
GENERATED_FILES = $(PT_FILES) |
|
40 |
|
|
41 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
42 |
|
|
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-all: \ |
54 |
test-module-charset \ |
test-module-dom |
55 |
test-module-dom \ |
|
56 |
test-module-uri \ |
test-module-dom: |
57 |
test-module-util |
$(PERL_TEST_) DOM-*$(PT_SUFFIX) |
|
|
|
|
test-module-charset: $(NS_CHARSET_PT_FILES) $(TEST_PM_FILES) |
|
|
$(PERL_TEST_) charset-*$(PT_SUFFIX) |
|
|
|
|
|
$(NS_CHARSET_PT_FILES): charset-%$(PT_SUFFIX): \ |
|
|
$(MANAKAI_LIB_DIR)Message/Charset/%$(DIS_SUFFIX) $(DAF_PL) |
|
|
$(DAF) --create-perl-test="$(NS_CHARSET)$* $@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
test-module-dom: $(NS_MDOM_PT_FILES) $(TEST_PM_FILES) |
|
|
$(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-uri: $(NS_URI_PT_FILES) $(TEST_PM_FILES) |
|
|
$(PERL_TEST_) uri-*$(PT_SUFFIX) |
|
|
|
|
|
$(NS_URI_PT_FILES): uri-%$(PT_SUFFIX): \ |
|
|
$(MANAKAI_LIB_DIR)Message/URI/%$(DIS_SUFFIX) $(DAF_PL) |
|
|
$(DAF) --create-perl-test="$(NS_URI)$* $@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
test-module-util: $(NS_UTIL_PT_FILES) $(NS_UTIL_DIS_PT_FILES) $(TEST_PM_FILES) |
|
|
$(PERL_TEST_) util-*$(PT_SUFFIX) |
|
|
|
|
|
$(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) $* |
|
|
|
|
|
$(MANAKAI_LIB_DIR)Message/Util/DIS/Test$(PM_SUFFIX): \ |
|
|
$(MANAKAI_LIB_DIR)Message/Util/DIS/Test$(DIS_SUFFIX) |
|
|
$(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) DIS/Test$(PM_SUFFIX) |
|
58 |
|
|
59 |
clean: clean-dom1core-perl |
clean: clean-dom1core-perl |
60 |
$(RMALL) $(GENERATED_FILES) |
$(RMALL) $(GENERATED_FILES) |