11 |
|
|
12 |
MKDIR = mkdir |
MKDIR = mkdir |
13 |
RM = rm |
RM = rm |
14 |
|
MAKE = make |
15 |
|
CD = cd |
16 |
|
|
17 |
PERL = perl |
PERL = perl |
18 |
PERL1 = $(PERL) -I$(MANAKAI_LIB_DIR) |
PERL1 = $(PERL) -I$(MANAKAI_LIB_DIR) |
37 |
$(DAC_PL) \ |
$(DAC_PL) \ |
38 |
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
39 |
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
40 |
|
--implementation-registry-package \ |
41 |
|
"Message::DOM::DOMMetaImpl::ManakaiDOMImplementationRegistryCompat" \ |
42 |
--output-file-name= |
--output-file-name= |
43 |
|
|
44 |
DAC2PM_OPTIONS = |
DAC2PM_OPTIONS = |
45 |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
46 |
DAC2PM = $(PERL2) \ |
DAC2PM = $(PERL2) \ |
47 |
-MMessage::Util::Error::DOMException \ |
-MMessage::Util::Error::DOMException \ |
48 |
$(DAC2PM_PL) $(DAC2PM_OPTIONS) |
$(DAC2PM_PL) \ |
49 |
|
--implementation-registry-package \ |
50 |
|
"Message::DOM::DOMMetaImpl::ManakaiDOMImplementationRegistryCompat" \ |
51 |
|
$(DAC2PM_OPTIONS) |
52 |
|
|
53 |
|
PHASE3_PERL_OPTIONS = |
54 |
|
PHASE3_DAC2PM_OPTIONS = --enable-assert |
55 |
|
## TODO: Official release should remove this option. |
56 |
|
|
57 |
DIS_FILES_FOR_DOMMETAIMPL = \ |
DIS_FILES_FOR_DOMMETAIMPL = \ |
58 |
$(MANAKAI_LIB_DIR)Message/DOM/DOMBoot.dis \ |
$(MANAKAI_LIB_DIR)Message/DOM/DOMBoot.dis \ |
73 |
$(MANAKAI_LIB_DIR)Message/Util/PerlCode.dis |
$(MANAKAI_LIB_DIR)Message/Util/PerlCode.dis |
74 |
## NOTE: DIS.dis must be first |
## NOTE: DIS.dis must be first |
75 |
|
|
76 |
GENERATED_FILES = $(TEMP_LIB_DIR) \ |
PHASE1_PM_FILES = \ |
77 |
$(TEMP_LIB_DIR)Message/Util/ManakaiNode.pm \ |
$(TEMP_LIB_DIR)Message/Util/ManakaiNode.pm \ |
78 |
$(TEMP_LIB_DIR)Message/DOM/DOMMetaImpl.pm \ |
$(TEMP_LIB_DIR)Message/DOM/DOMMetaImpl.pm \ |
79 |
$(TEMP_LIB_DIR)Message/Markup/SuikaWikiConfig21.pm \ |
$(TEMP_LIB_DIR)Message/Markup/SuikaWikiConfig21.pm \ |
80 |
$(TEMP_LIB_DIR)Message/Util/Error/DOMException.pm \ |
$(TEMP_LIB_DIR)Message/Util/Error/DOMException.pm \ |
81 |
$(TEMP_LIB_DIR)Message/Util/PerlCode.pm \ |
$(TEMP_LIB_DIR)Message/Util/PerlCode.pm \ |
82 |
$(TEMP_LIB_DIR)Message/Util/DIS.pm \ |
$(TEMP_LIB_DIR)Message/Util/DIS.pm |
83 |
\ |
|
84 |
$(TEMP_LIB2_DIR) \ |
PHASE2_PM_FILES = \ |
85 |
$(TEMP_LIB2_DIR)Message/Util/ManakaiNode.pm \ |
$(TEMP_LIB2_DIR)Message/Util/ManakaiNode.pm \ |
86 |
$(TEMP_LIB2_DIR)Message/DOM/DOMMetaImpl.pm \ |
$(TEMP_LIB2_DIR)Message/DOM/DOMMetaImpl.pm \ |
87 |
$(TEMP_LIB2_DIR)Message/Markup/SuikaWikiConfig21.pm \ |
$(TEMP_LIB2_DIR)Message/Markup/SuikaWikiConfig21.pm \ |
89 |
$(TEMP_LIB2_DIR)Message/Util/PerlCode.pm \ |
$(TEMP_LIB2_DIR)Message/Util/PerlCode.pm \ |
90 |
$(TEMP_LIB2_DIR)Message/Util/DIS.pm |
$(TEMP_LIB2_DIR)Message/Util/DIS.pm |
91 |
|
|
92 |
all: $(GENERATED_FILES) |
GENERATED_FILES = $(TEMP_LIB_DIR) $(PHASE1_PM_FILES) \ |
93 |
|
\ |
94 |
|
$(TEMP_LIB2_DIR) $(PHASE2_PM_FILES) |
95 |
|
|
96 |
|
all: $(GENERATED_FILES) phase3 |
97 |
|
|
98 |
## Phase 1 - Making Perl modules by old disc and cdis2pm tools |
## Phase 1 - Making Perl modules by old disc and cdis2pm tools |
99 |
|
|
144 |
$(MKDIR) -p $(TEMP_LIB2_DIR)Message/DOM |
$(MKDIR) -p $(TEMP_LIB2_DIR)Message/DOM |
145 |
$(MKDIR) -p $(TEMP_LIB2_DIR)Message/Markup |
$(MKDIR) -p $(TEMP_LIB2_DIR)Message/Markup |
146 |
|
|
147 |
$(TEMP_LIB2_DIR)dom.dac: $(DIS_FILES_FOR_DOMMETAIMPL) $(DAC_PL) |
$(TEMP_LIB2_DIR)dom.dac: $(DIS_FILES_FOR_DOMMETAIMPL) \ |
148 |
|
$(DAC_PL) $(PHASE1_PM_FILES) |
149 |
$(DAC)$@ $< |
$(DAC)$@ $< |
150 |
|
|
151 |
$(TEMP_LIB2_DIR)dis.dac: $(DIS_FILES_FOR_DIS) $(TEMP_LIB2_DIR)dom.dac $(DAC_PL) |
$(TEMP_LIB2_DIR)dis.dac: $(DIS_FILES_FOR_DIS) $(TEMP_LIB2_DIR)dom.dac $(DAC_PL) |
183 |
|
|
184 |
## Phase 3 - Making Perl modules by dac tools generated by dac tools |
## Phase 3 - Making Perl modules by dac tools generated by dac tools |
185 |
|
|
186 |
|
phase3: $(PHASE2_PM_FILES) |
187 |
|
$(CD) $(MANAKAI_LIB_DIR)Message/Util && \ |
188 |
|
$(MAKE) all \ |
189 |
|
PERL_OPTIONS2="-I../../lib/$(TEMP_LIB2_DIR) \ |
190 |
|
-I../../lib/$(MANAKAI_LIB_DIR) \ |
191 |
|
$(PHASE3_PERL_OPTIONS)" \ |
192 |
|
PERLC_OPTIONS2="-I../../lib/$(MANAKAI_LIB_DIR) \ |
193 |
|
$(PHASE3_PERL_OPTIONS)" \ |
194 |
|
DAC2PM_OPTIONS2="$(PHASE3_DAC2PM_OPTIONS)" \ |
195 |
|
PERL_OPTIONS3="-I../../../lib/$(TEMP_LIB2_DIR) \ |
196 |
|
-I../../../lib/$(MANAKAI_LIB_DIR) \ |
197 |
|
$(PHASE3_PERL_OPTIONS)" \ |
198 |
|
PERLC_OPTIONS3="-I../../../lib/$(MANAKAI_LIB_DIR) \ |
199 |
|
$(PHASE3_PERL_OPTIONS)" \ |
200 |
|
DAC2PM_OPTIONS3="$(PHASE3_DAC2PM_OPTIONS)" |
201 |
|
$(CD) $(MANAKAI_LIB_DIR)Message/Markup && \ |
202 |
|
$(MAKE) all \ |
203 |
|
PERL_OPTIONS2="-I../../lib/$(TEMP_LIB2_DIR) \ |
204 |
|
-I../../lib/$(MANAKAI_LIB_DIR) \ |
205 |
|
$(PHASE3_PERL_OPTIONS)" \ |
206 |
|
PERLC_OPTIONS2="-I../../lib/$(MANAKAI_LIB_DIR) \ |
207 |
|
$(PHASE3_PERL_OPTIONS)" \ |
208 |
|
DAC2PM_OPTIONS2="$(PHASE3_DAC2PM_OPTIONS)" \ |
209 |
|
PERL_OPTIONS3="-I../../../lib/$(TEMP_LIB2_DIR) \ |
210 |
|
-I../../../lib/$(MANAKAI_LIB_DIR) \ |
211 |
|
$(PHASE3_PERL_OPTIONS)" \ |
212 |
|
PERLC_OPTIONS3="-I../../../lib/$(MANAKAI_LIB_DIR) \ |
213 |
|
$(PHASE3_PERL_OPTIONS)" \ |
214 |
|
DAC2PM_OPTIONS3="$(PHASE3_DAC2PM_OPTIONS)" |
215 |
|
$(CD) $(MANAKAI_LIB_DIR)Message/DOM && \ |
216 |
|
$(MAKE) boot \ |
217 |
|
PERL_OPTIONS2="-I../../lib/$(TEMP_LIB2_DIR) \ |
218 |
|
-I../../lib/$(MANAKAI_LIB_DIR) \ |
219 |
|
$(PHASE3_PERL_OPTIONS)" \ |
220 |
|
PERLC_OPTIONS2="-I../../lib/$(MANAKAI_LIB_DIR) \ |
221 |
|
$(PHASE3_PERL_OPTIONS)" \ |
222 |
|
DAC2PM_OPTIONS2="$(PHASE3_DAC2PM_OPTIONS)" \ |
223 |
|
PERL_OPTIONS3="-I../../../lib/$(TEMP_LIB2_DIR) \ |
224 |
|
-I../../../lib/$(MANAKAI_LIB_DIR) \ |
225 |
|
$(PHASE3_PERL_OPTIONS)" \ |
226 |
|
PERLC_OPTIONS3="-I../../../lib/$(MANAKAI_LIB_DIR) \ |
227 |
|
$(PHASE3_PERL_OPTIONS)" \ |
228 |
|
DAC2PM_OPTIONS3="$(PHASE3_DAC2PM_OPTIONS)" |
229 |
|
|
230 |
## Misc. |
## Misc. |
231 |
|
|
232 |
clean: |
clean: |
233 |
$(RM) -frv $(TEMP_LIB_DIR) |
$(RM) -frv $(TEMP_LIB_DIR) |
234 |
$(RM) -fv *~ .*~ *.BAK .*.BAK |
$(RM) -fv *~ .*~ *.BAK .*.BAK |
235 |
|
$(CD) $(MANAKAI_LIB_DIR)Message/Util && $(MAKE) clean |