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 |
|
CD = cd |
7 |
|
MAKE = make |
8 |
MKDIR = mkdir -p |
MKDIR = mkdir -p |
9 |
|
ECHO = echo |
10 |
|
|
11 |
RM = rm |
RM = rm |
12 |
RMALL = $(RM) -fv |
RMALL = $(RM) -fv |
13 |
|
|
|
MANAKAI_ROOT_DIR = ../ |
|
|
BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
|
|
LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
|
|
TEST_DIR = $(MANAKAI_ROOT_DIR)t/ |
|
|
|
|
14 |
TEST_VERBOSE = 0 |
TEST_VERBOSE = 0 |
15 |
INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch |
INST_ARCHLIB = $(MANAKAI_ROOT_DIR)blib/arch |
16 |
INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib |
INST_LIB = $(MANAKAI_ROOT_DIR)blib/lib |
17 |
|
|
18 |
PERL = perl -I$(LIB_DIR) |
PERL = perl |
19 |
PERLC = $(PERL) -c |
PERL_OPTIONS = |
20 |
PERL_TEST = $(PERL) -MExtUtils::Command::MM \ |
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
21 |
-e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \ |
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
22 |
|
PERLC = $(PERL) -c -w |
23 |
|
PERLC_OPTIONS = |
24 |
|
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
25 |
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
26 |
|
PERL_TEST_ = $(PERL) $(PERL_OPTIONS_ALL) \ |
27 |
|
-MExtUtils::Command::MM \ |
28 |
|
-e "test_harness ($(TEST_VERBOSE), '$(INST_LIB)', \ |
29 |
'$(INST_ARCHLIB)')" |
'$(INST_ARCHLIB)')" |
30 |
|
|
31 |
DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/ |
DOMTEST_TESTS_DIR = $(MANAKAI_ROOT_DIR)../domts/tests/ |
32 |
DOMTEST_PERL_DIR = $(TEST_DIR)dom/ |
DOMTEST_PERL_DIR = $(MANAKAI_TEST_DIR)dom/ |
33 |
DOMTEST_FILE = *.xml |
DOMTEST_FILE = *.xml |
34 |
|
|
35 |
DOMTS2PERL_PL = $(BIN_DIR)domts2perl.pl |
DOMTS2PERL_PL = $(MANAKAI_BIN_DIR)domts2perl.pl |
36 |
DOMTS2PERL = $(PERL) -I$(BIN_DIR) $(DOMTS2PERL_PL) |
DOMTS2PERL = $(PERL_) -I$(MANAKAI_BIN_DIR) $(DOMTS2PERL_PL) |
37 |
DOMTEST2PERL_PL = $(BIN_DIR)domtest2perl.pl |
DOMTEST2PERL_PL = $(MANAKAI_BIN_DIR)domtest2perl.pl |
38 |
|
|
39 |
|
PT_SUFFIX = .t |
40 |
|
|
41 |
|
all: |
42 |
|
|
43 |
dom1core-perl: $(DOMTS2PERL_PL) |
dom1core-perl: $(DOMTS2PERL_PL) |
44 |
$(MKDIR) $(DOMTEST_PERL_DIR)level1/core/ |
$(MKDIR) $(DOMTEST_PERL_DIR)level1/core/ |
45 |
$(DOMTS2PERL) --test-directory=$(DOMTEST_TESTS_DIR)level1/core/ \ |
$(DOMTS2PERL) --test-directory="$(DOMTEST_TESTS_DIR)level1/core/" \ |
46 |
--output-directory=$(DOMTEST_PERL_DIR)level1/core/ \ |
--output-directory="$(DOMTEST_PERL_DIR)level1/core/" \ |
47 |
--domtest2perl=$(DOMTEST2PERL_PL) |
--domtest2perl-path="$(DOMTEST2PERL_PL)" |
48 |
|
|
49 |
dom1core: |
dom1core: |
50 |
MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \ |
MANAKAI_DOMTEST_FILE_DIR=$(DOMTEST_TESTS_DIR)level1/core/files/ \ |
51 |
$(PERL_TEST) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl |
$(PERL_TEST_) $(DOMTEST_PERL_DIR)level1/core/$(DOMTEST_FILE).pl |
52 |
|
|
53 |
|
test: |
54 |
|
$(PERL_TEST_) *$(PT_SUFFIX) |
55 |
|
|
56 |
|
test-module-all: \ |
57 |
|
test-module-dom |
58 |
|
|
59 |
|
test-module-dom: |
60 |
|
$(PERL_TEST_) DOM-*$(PT_SUFFIX) |
61 |
|
|
62 |
clean: clean-dom1core-perl |
clean: clean-dom1core-perl |
63 |
|
|
64 |
clean-dom1core-perl: |
clean-dom1core-perl: |
65 |
$(RMALL) $(DOMTEST_PERL_DIR)level1/core/* |
$(RMALL) $(DOMTEST_PERL_DIR)level1/core/* |
66 |
$(RMALL) *~ .*~ *.BAK .*.BAK |
$(RMALL) *~ .*~ *.BAK .*.BAK |
67 |
|
|
68 |
|
distclean: clean |
69 |
|
|
70 |
|
always: |