1 |
wakaba |
1.13 |
MANAKAI_ROOT_DIR = ../../../ |
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
|
5 |
wakaba |
1.24 |
DIS_SUFFIX = .dis |
6 |
wakaba |
1.33 |
DAEM_SUFFIX = .dafm |
7 |
|
|
DAFX_SUFFIX = .dafx |
8 |
wakaba |
1.21 |
PM_SUFFIX = .pm |
9 |
|
|
|
10 |
wakaba |
1.13 |
CD = cd |
11 |
wakaba |
1.1 |
MAKE = make |
12 |
wakaba |
1.3 |
RM = rm |
13 |
wakaba |
1.34 |
RMALL = $(RM) -fv |
14 |
wakaba |
1.13 |
PERL = perl |
15 |
wakaba |
1.28 |
PERL_OPTIONS = |
16 |
|
|
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
17 |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
18 |
wakaba |
1.13 |
PERLC = $(PERL) -c -w |
19 |
wakaba |
1.28 |
PERLC_OPTIONS = |
20 |
|
|
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
21 |
|
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
22 |
wakaba |
1.22 |
TOUCH = touch |
23 |
wakaba |
1.1 |
|
24 |
wakaba |
1.13 |
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM. |
25 |
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
26 |
wakaba |
1.7 |
|
27 |
wakaba |
1.24 |
DIS_OPTIONS = |
28 |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
29 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
30 |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
31 |
wakaba |
1.33 |
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
32 |
|
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
33 |
wakaba |
1.24 |
|
34 |
wakaba |
1.33 |
DAF_OPTIONS = |
35 |
|
|
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
36 |
|
|
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
37 |
wakaba |
1.1 |
|
38 |
wakaba |
1.32 |
DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX) |
39 |
wakaba |
1.39 |
DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis \ |
40 |
wakaba |
1.45 |
DOMString$(DIS_SUFFIX) \ |
41 |
wakaba |
1.39 |
TreeCore$(DIS_SUFFIX) Document$(DIS_SUFFIX) \ |
42 |
wakaba |
1.41 |
Element$(DIS_SUFFIX) CharacterData$(DIS_SUFFIX) \ |
43 |
|
|
XML$(DIS_SUFFIX) XDoctype$(DIS_SUFFIX) |
44 |
wakaba |
1.40 |
DOM_LS_DIS_FILES = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) \ |
45 |
|
|
TreeStore$(DIS_SUFFIX) |
46 |
wakaba |
1.30 |
XP_DIS_FILES = XMLParser$(DIS_SUFFIX) |
47 |
wakaba |
1.43 |
DOM_MISC_DIS_FILES = Traversal$(DIS_SUFFIX) XDP$(DIS_SUFFIX) |
48 |
wakaba |
1.20 |
DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis |
49 |
wakaba |
1.25 |
DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \ |
50 |
wakaba |
1.42 |
$(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES) \ |
51 |
|
|
$(DOM_MISC_DIS_FILES) |
52 |
wakaba |
1.33 |
DOT_CORE_DIS_FILES = \ |
53 |
|
|
$(DOM_FEATURE_DIS_FILES) \ |
54 |
wakaba |
1.44 |
$(DOM_CORE_DIS_FILES) \ |
55 |
|
|
TreeStore$(DIS_SUFFIX) |
56 |
wakaba |
1.33 |
|
57 |
|
|
PM_FILES = \ |
58 |
|
|
DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \ |
59 |
wakaba |
1.45 |
DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) DOMString$(PM_SUFFIX) \ |
60 |
wakaba |
1.38 |
TreeCore$(PM_SUFFIX) Document$(PM_SUFFIX) Element$(PM_SUFFIX) \ |
61 |
wakaba |
1.41 |
CharacterData$(PM_SUFFIX) XML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \ |
62 |
wakaba |
1.33 |
DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \ |
63 |
wakaba |
1.40 |
SimpleLS$(PM_SUFFIX) TreeStore$(PM_SUFFIX) \ |
64 |
wakaba |
1.42 |
Traversal$(PM_SUFFIX) \ |
65 |
wakaba |
1.43 |
XDP$(PM_SUFFIX) \ |
66 |
wakaba |
1.33 |
DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX) |
67 |
|
|
|
68 |
|
|
GENERATED_FILES = $(PM_FILES) |
69 |
wakaba |
1.9 |
|
70 |
wakaba |
1.33 |
all: .core$(PM_SUFFIX) $(PM_FILES) |
71 |
wakaba |
1.27 |
|
72 |
wakaba |
1.33 |
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
73 |
|
|
$(DAF) --create-perl-module="$(NS_MDOM)$* $@" |
74 |
wakaba |
1.19 |
$(PERL_CHK) $@ |
75 |
wakaba |
1.9 |
|
76 |
wakaba |
1.33 |
.core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL) |
77 |
|
|
$(DAF) \ |
78 |
wakaba |
1.22 |
--create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \ |
79 |
wakaba |
1.32 |
--create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)" \ |
80 |
wakaba |
1.22 |
--create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \ |
81 |
wakaba |
1.45 |
--create-perl-module="$(NS_MDOM)DOMString DOMString$(PM_SUFFIX)" \ |
82 |
wakaba |
1.22 |
--create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \ |
83 |
wakaba |
1.39 |
--create-perl-module="$(NS_MDOM)TreeCore TreeCore$(PM_SUFFIX)" \ |
84 |
|
|
--create-perl-module="$(NS_MDOM)Document Document$(PM_SUFFIX)" \ |
85 |
|
|
--create-perl-module="$(NS_MDOM)Element Element$(PM_SUFFIX)" \ |
86 |
wakaba |
1.41 |
--create-perl-module="$(NS_MDOM)CharacterData CharacterData$(PM_SUFFIX)" \ |
87 |
wakaba |
1.39 |
--create-perl-module="$(NS_MDOM)XML XML$(PM_SUFFIX)" \ |
88 |
wakaba |
1.44 |
--create-perl-module="$(NS_MDOM)XDoctype XDoctype$(PM_SUFFIX)" \ |
89 |
|
|
--create-perl-module="$(NS_MDOM)TreeStore TreeStore$(PM_SUFFIX)" |
90 |
wakaba |
1.22 |
$(PERL_CHK) DOMFeature$(PM_SUFFIX) |
91 |
wakaba |
1.32 |
$(PERL_CHK) GenericLS$(PM_SUFFIX) |
92 |
wakaba |
1.22 |
$(PERL_CHK) DOMMain$(PM_SUFFIX) |
93 |
wakaba |
1.45 |
$(PERL_CHK) DOMString$(PM_SUFFIX) |
94 |
wakaba |
1.22 |
$(PERL_CHK) DOMCore$(PM_SUFFIX) |
95 |
wakaba |
1.39 |
$(PERL_CHK) TreeCore$(PM_SUFFIX) |
96 |
|
|
$(PERL_CHK) Document$(PM_SUFFIX) |
97 |
|
|
$(PERL_CHK) Element$(PM_SUFFIX) |
98 |
wakaba |
1.41 |
$(PERL_CHK) CharacterData$(PM_SUFFIX) |
99 |
wakaba |
1.39 |
$(PERL_CHK) XML$(PM_SUFFIX) |
100 |
wakaba |
1.31 |
$(PERL_CHK) XDoctype$(PM_SUFFIX) |
101 |
wakaba |
1.44 |
$(PERL_CHK) TreeStore$(PM_SUFFIX) |
102 |
wakaba |
1.23 |
$(TOUCH) $@ |
103 |
wakaba |
1.31 |
## NOTE: When you modify this rule, update |../Util/Makefile|, too. |
104 |
wakaba |
1.23 |
|
105 |
wakaba |
1.20 |
clean: |
106 |
wakaba |
1.34 |
$(RMALL) $(GENERATED_FILES) |
107 |
|
|
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
108 |
|
|
$(RMALL) .core$(PM_SUFFIX) |
109 |
wakaba |
1.14 |
|
110 |
wakaba |
1.37 |
clean-db: |
111 |
wakaba |
1.34 |
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
112 |
|
|
|
113 |
wakaba |
1.37 |
distclean: clean clean-db |
114 |
|
|
|
115 |
wakaba |
1.45 |
## $Date: 2006/08/15 03:54:37 $ |
116 |
wakaba |
1.22 |
## License: Public Domain. |