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