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