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