1 |
|
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 |
MKDIR = mkdir -p |
MKDIR = mkdir -p |
11 |
|
|
12 |
RM = rm |
RM = rm |
13 |
RMALL = $(RM) -fv |
RMALL = $(RM) -fv |
14 |
|
|
|
MANAKAI_ROOT_DIR = ../ |
|
|
BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
|
|
LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
|
|
TEST_DIR = $(MANAKAI_ROOT_DIR)t/ |
|
|
|
|
15 |
TEST_VERBOSE = 0 |
TEST_VERBOSE = 0 |
16 |
INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch |
INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch |
17 |
INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib |
INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib |
18 |
|
|
19 |
PERL = perl -I$(LIB_DIR) |
PERL_OPTIONS = |
20 |
|
PERL = perl |
21 |
|
PERL_ = $(PERL) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
22 |
PERLC = $(PERL) -c |
PERLC = $(PERL) -c |
23 |
PERL_TEST = $(PERL) -MExtUtils::Command::MM \ |
PERLC_ = $(PERLC) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
24 |
-e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \ |
PERL_TEST_ = $(PERL) \ |
25 |
|
$(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) \ |
26 |
|
-MExtUtils::Command::MM \ |
27 |
|
-e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \ |
28 |
'$(INST_ARCHLIB)')" |
'$(INST_ARCHLIB)')" |
29 |
|
|
30 |
|
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 |
DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/ |
DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/ |
37 |
DOMTEST_PERL_DIR = $(TEST_DIR)dom/ |
DOMTEST_PERL_DIR = $(MANAKAI_TEST_DIR)dom/ |
38 |
DOMTEST_FILE = *.xml |
DOMTEST_FILE = *.xml |
39 |
|
|
40 |
DOMTS2PERL_PL = $(BIN_DIR)domts2perl.pl |
DOMTS2PERL_PL = $(MANAKAI_BIN_DIR)domts2perl.pl |
41 |
DOMTS2PERL = $(PERL) -I$(BIN_DIR) $(DOMTS2PERL_PL) |
DOMTS2PERL = $(PERL_) -I$(MANAKAI_BIN_DIR) $(DOMTS2PERL_PL) |
42 |
DOMTEST2PERL_PL = $(BIN_DIR)domtest2perl.pl |
DOMTEST2PERL_PL = $(MANAKAI_BIN_DIR)domtest2perl.pl |
43 |
|
|
44 |
dom1core-perl: $(DOMTS2PERL_PL) |
dom1core-perl: $(DOMTS2PERL_PL) |
45 |
$(MKDIR) $(DOMTEST_PERL_DIR)level1/core/ |
$(MKDIR) $(DOMTEST_PERL_DIR)level1/core/ |
46 |
$(DOMTS2PERL) --test-directory=$(DOMTEST_TESTS_DIR)level1/core/ \ |
$(DOMTS2PERL) --test-directory="$(DOMTEST_TESTS_DIR)level1/core/" \ |
47 |
--output-directory=$(DOMTEST_PERL_DIR)level1/core/ \ |
--output-directory="$(DOMTEST_PERL_DIR)level1/core/" \ |
48 |
--domtest2perl=$(DOMTEST2PERL_PL) |
--domtest2perl-path="$(DOMTEST2PERL_PL)" |
49 |
|
|
50 |
dom1core: |
dom1core: |
51 |
MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \ |
MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \ |
52 |
$(PERL_TEST) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl |
$(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl |
53 |
|
|
54 |
clean: clean-dom1core-perl |
clean: clean-dom1core-perl |
55 |
|
|