1 |
wakaba |
1.3 |
MANAKAI_ROOT_DIR = ../ |
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
MANAKAI_TEST_DIR = $(MANAKAI_ROOT_DIR)t/ |
5 |
|
|
|
6 |
|
|
DIS_SUFFIX = .dis |
7 |
|
|
DAC_SUFFIX = .dae |
8 |
|
|
DAEM_SUFFIX = .daem |
9 |
|
|
|
10 |
wakaba |
1.1 |
MKDIR = mkdir -p |
11 |
|
|
|
12 |
wakaba |
1.2 |
RM = rm |
13 |
|
|
RMALL = $(RM) -fv |
14 |
|
|
|
15 |
wakaba |
1.1 |
TEST_VERBOSE = 0 |
16 |
|
|
INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch |
17 |
|
|
INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib |
18 |
|
|
|
19 |
wakaba |
1.3 |
PERL_OPTIONS = |
20 |
|
|
PERL = perl |
21 |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
22 |
wakaba |
1.1 |
PERLC = $(PERL) -c |
23 |
wakaba |
1.3 |
PERLC_ = $(PERLC) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
24 |
|
|
PERL_TEST_ = $(PERL) \ |
25 |
|
|
$(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) \ |
26 |
|
|
-MExtUtils::Command::MM \ |
27 |
|
|
-e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \ |
28 |
wakaba |
1.1 |
'$(INST_ARCHLIB)')" |
29 |
|
|
|
30 |
wakaba |
1.3 |
DIS_OPTIONS = |
31 |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
32 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
33 |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
34 |
|
|
--daem-file-suffix="$(DAEM_SUFFIX)" |
35 |
|
|
|
36 |
wakaba |
1.1 |
DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/ |
37 |
wakaba |
1.3 |
DOMTEST_PERL_DIR = $(MANAKAI_TEST_DIR)dom/ |
38 |
wakaba |
1.1 |
DOMTEST_FILE = *.xml |
39 |
|
|
|
40 |
wakaba |
1.3 |
DOMTS2PERL_PL = $(MANAKAI_BIN_DIR)domts2perl.pl |
41 |
|
|
DOMTS2PERL = $(PERL_) -I$(MANAKAI_BIN_DIR) $(DOMTS2PERL_PL) |
42 |
|
|
DOMTEST2PERL_PL = $(MANAKAI_BIN_DIR)domtest2perl.pl |
43 |
wakaba |
1.1 |
|
44 |
|
|
dom1core-perl: $(DOMTS2PERL_PL) |
45 |
|
|
$(MKDIR) $(DOMTEST_PERL_DIR)level1/core/ |
46 |
wakaba |
1.3 |
$(DOMTS2PERL) --test-directory="$(DOMTEST_TESTS_DIR)level1/core/" \ |
47 |
|
|
--output-directory="$(DOMTEST_PERL_DIR)level1/core/" \ |
48 |
|
|
--domtest2perl-path="$(DOMTEST2PERL_PL)" |
49 |
wakaba |
1.1 |
|
50 |
|
|
dom1core: |
51 |
|
|
MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \ |
52 |
wakaba |
1.3 |
$(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl |
53 |
wakaba |
1.2 |
|
54 |
|
|
clean: clean-dom1core-perl |
55 |
|
|
|
56 |
|
|
clean-dom1core-perl: |
57 |
|
|
$(RMALL) $(DOMTEST_PERL_DIR)level1/core/* |
58 |
|
|
$(RMALL) *~ .*~ *.BAK .*.BAK |