1 |
wakaba |
1.1 |
MKDIR = mkdir -p |
2 |
|
|
|
3 |
|
|
MANAKAI_ROOT_DIR = ../ |
4 |
|
|
BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
5 |
|
|
LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
6 |
|
|
TEST_DIR = $(MANAKAI_ROOT_DIR)t/ |
7 |
|
|
|
8 |
|
|
TEST_VERBOSE = 0 |
9 |
|
|
INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch |
10 |
|
|
INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib |
11 |
|
|
|
12 |
|
|
PERL = perl -I$(LIB_DIR) |
13 |
|
|
PERLC = $(PERL) -c |
14 |
|
|
PERL_TEST = $(PERL) -MExtUtils::Command::MM \ |
15 |
|
|
-e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \ |
16 |
|
|
'$(INST_ARCHLIB)')" |
17 |
|
|
|
18 |
|
|
DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/ |
19 |
|
|
DOMTEST_PERL_DIR = $(TEST_DIR)dom/ |
20 |
|
|
DOMTEST_FILE = *.xml |
21 |
|
|
|
22 |
|
|
DOMTS2PERL_PL = $(BIN_DIR)domts2perl.pl |
23 |
|
|
DOMTS2PERL = $(PERL) -I$(BIN_DIR) $(DOMTS2PERL_PL) |
24 |
|
|
DOMTEST2PERL_PL = $(BIN_DIR)domtest2perl.pl |
25 |
|
|
|
26 |
|
|
dom1core-perl: $(DOMTS2PERL_PL) |
27 |
|
|
$(MKDIR) $(DOMTEST_PERL_DIR)level1/core/ |
28 |
|
|
$(DOMTS2PERL) --test-directory=$(DOMTEST_TESTS_DIR)level1/core/ \ |
29 |
|
|
--output-directory=$(DOMTEST_PERL_DIR)level1/core/ \ |
30 |
|
|
--domtest2perl=$(DOMTEST2PERL_PL) |
31 |
|
|
|
32 |
|
|
dom1core: |
33 |
|
|
MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \ |
34 |
|
|
$(PERL_TEST) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl |