1 |
wakaba |
1.1 |
MANAKAI_ROOT_DIR = ../ |
2 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
3 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
4 |
|
|
TEMP_LIB_DIR = $(MANAKAI_LIB_DIR).phase1.tmp/ |
5 |
|
|
TEMP_LIB2_DIR = $(MANAKAI_LIB_DIR).phase2.tmp/ |
6 |
|
|
|
7 |
wakaba |
1.5 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
8 |
wakaba |
1.1 |
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM. |
9 |
|
|
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\# |
10 |
|
|
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
11 |
|
|
NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
12 |
|
|
|
13 |
|
|
MKDIR = mkdir |
14 |
|
|
RM = rm |
15 |
wakaba |
1.3 |
MAKE = make |
16 |
|
|
CD = cd |
17 |
wakaba |
1.5 |
CP = cp |
18 |
|
|
ECHO = -echo |
19 |
wakaba |
1.1 |
|
20 |
|
|
PERL = perl |
21 |
|
|
PERL1 = $(PERL) -I$(MANAKAI_LIB_DIR) |
22 |
|
|
PERL1_CHK = $(PERL) -I$(TEMP_LIB_DIR) -I$(MANAKAI_LIB_DIR) -c -w |
23 |
|
|
PERL2 = $(PERL) -I$(TEMP_LIB_DIR) -I$(MANAKAI_LIB_DIR) |
24 |
|
|
PERL2_CHK = $(PERL) -I$(TEMP_LIB2_DIR) -I$(TEMP_LIB_DIR) -I$(MANAKAI_LIB_DIR) |
25 |
|
|
|
26 |
|
|
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
27 |
|
|
DISC = $(PERL1) $(DISC_PL) \ |
28 |
|
|
-I=$(MANAKAI_LIB_DIR)manakai/ \ |
29 |
|
|
-I=$(MANAKAI_LIB_DIR)Message/Util/ \ |
30 |
|
|
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \ |
31 |
|
|
-I=$(MANAKAI_LIB_DIR)Message/Markup/ \ |
32 |
|
|
-I=$(MANAKAI_LIB_DIR)Message/DOM/ |
33 |
|
|
CDIS2PM_OPTIONS = |
34 |
|
|
CDIS2PM_PL = $(MANAKAI_BIN_DIR)cdis2pm.pl |
35 |
|
|
CDIS2PM = $(PERL1) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
36 |
|
|
|
37 |
|
|
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
38 |
|
|
DAC = $(PERL2) \ |
39 |
|
|
-MMessage::Util::Error::DOMException \ |
40 |
|
|
$(DAC_PL) \ |
41 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
42 |
|
|
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
43 |
wakaba |
1.3 |
--implementation-registry-package \ |
44 |
|
|
"Message::DOM::DOMMetaImpl::ManakaiDOMImplementationRegistryCompat" \ |
45 |
wakaba |
1.1 |
--output-file-name= |
46 |
|
|
|
47 |
|
|
DAC2PM_OPTIONS = |
48 |
|
|
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
49 |
|
|
DAC2PM = $(PERL2) \ |
50 |
|
|
-MMessage::Util::Error::DOMException \ |
51 |
wakaba |
1.3 |
$(DAC2PM_PL) \ |
52 |
|
|
--implementation-registry-package \ |
53 |
|
|
"Message::DOM::DOMMetaImpl::ManakaiDOMImplementationRegistryCompat" \ |
54 |
|
|
$(DAC2PM_OPTIONS) |
55 |
|
|
|
56 |
|
|
PHASE3_PERL_OPTIONS = |
57 |
wakaba |
1.4 |
PHASE3_DAC2PM_OPTIONS = --enable-assert |
58 |
|
|
## TODO: Official release should remove this option. |
59 |
wakaba |
1.1 |
|
60 |
|
|
DIS_FILES_FOR_DOMMETAIMPL = \ |
61 |
|
|
$(MANAKAI_LIB_DIR)Message/DOM/DOMBoot.dis \ |
62 |
|
|
$(MANAKAI_LIB_DIR)Message/DOM/DOMMetaImpl.dis \ |
63 |
|
|
$(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \ |
64 |
wakaba |
1.5 |
$(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis \ |
65 |
wakaba |
1.1 |
$(MANAKAI_LIB_DIR)manakai/DISCore.dis \ |
66 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISRDF.dis \ |
67 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISLang.dis \ |
68 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISIDL.dis \ |
69 |
|
|
$(MANAKAI_LIB_DIR)manakai/DISPerl.dis \ |
70 |
|
|
$(MANAKAI_LIB_DIR)manakai/XML.dis |
71 |
|
|
## NOTE: DOMBoot.dis must be first |
72 |
|
|
|
73 |
|
|
DIS_FILES_FOR_DIS = \ |
74 |
|
|
$(MANAKAI_LIB_DIR)Message/Util/DIS.dis \ |
75 |
|
|
$(MANAKAI_LIB_DIR)Message/Markup/SuikaWikiConfig21.dis \ |
76 |
|
|
$(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis \ |
77 |
|
|
$(MANAKAI_LIB_DIR)Message/Util/PerlCode.dis |
78 |
|
|
## NOTE: DIS.dis must be first |
79 |
|
|
|
80 |
wakaba |
1.5 |
PHASE1_DOMLS_DIS_FILE = $(TEMP_LIB_DIR)Message/DOM/DOMLS.dis |
81 |
|
|
PHASE1_DOMLS_PM_FILE = $(TEMP_LIB_DIR)Message/DOM/DOMLS.pm |
82 |
|
|
PHASE2_DOMLS_PM_FILE = $(TEMP_LIB2_DIR)Message/DOM/DOMLS.pm |
83 |
|
|
|
84 |
wakaba |
1.2 |
PHASE1_PM_FILES = \ |
85 |
wakaba |
1.1 |
$(TEMP_LIB_DIR)Message/Util/ManakaiNode.pm \ |
86 |
|
|
$(TEMP_LIB_DIR)Message/DOM/DOMMetaImpl.pm \ |
87 |
|
|
$(TEMP_LIB_DIR)Message/Markup/SuikaWikiConfig21.pm \ |
88 |
|
|
$(TEMP_LIB_DIR)Message/Util/Error/DOMException.pm \ |
89 |
|
|
$(TEMP_LIB_DIR)Message/Util/PerlCode.pm \ |
90 |
wakaba |
1.2 |
$(TEMP_LIB_DIR)Message/Util/DIS.pm |
91 |
|
|
|
92 |
wakaba |
1.3 |
PHASE2_PM_FILES = \ |
93 |
wakaba |
1.1 |
$(TEMP_LIB2_DIR)Message/Util/ManakaiNode.pm \ |
94 |
|
|
$(TEMP_LIB2_DIR)Message/DOM/DOMMetaImpl.pm \ |
95 |
|
|
$(TEMP_LIB2_DIR)Message/Markup/SuikaWikiConfig21.pm \ |
96 |
|
|
$(TEMP_LIB2_DIR)Message/Util/Error/DOMException.pm \ |
97 |
|
|
$(TEMP_LIB2_DIR)Message/Util/PerlCode.pm \ |
98 |
|
|
$(TEMP_LIB2_DIR)Message/Util/DIS.pm |
99 |
|
|
|
100 |
wakaba |
1.5 |
GENERATED_FILES = $(TEMP_LIB_DIR) $(PHASE1_DOMLS_DIS_FILE) \ |
101 |
|
|
$(PHASE1_DOMLS_PM_FILE) $(PHASE1_PM_FILES) \ |
102 |
wakaba |
1.3 |
\ |
103 |
wakaba |
1.5 |
$(TEMP_LIB2_DIR) $(PHASE2_DOMLS_PM_FILE) $(PHASE2_PM_FILES) |
104 |
wakaba |
1.3 |
|
105 |
|
|
all: $(GENERATED_FILES) phase3 |
106 |
wakaba |
1.1 |
|
107 |
|
|
## Phase 1 - Making Perl modules by old disc and cdis2pm tools |
108 |
|
|
|
109 |
|
|
$(TEMP_LIB_DIR): |
110 |
|
|
$(MKDIR) -p $(TEMP_LIB_DIR)Message/Util/Error |
111 |
|
|
$(MKDIR) -p $(TEMP_LIB_DIR)Message/DOM |
112 |
|
|
$(MKDIR) -p $(TEMP_LIB_DIR)Message/Markup |
113 |
|
|
|
114 |
wakaba |
1.5 |
$(TEMP_LIB_DIR)dom.cdis: $(DIS_FILES_FOR_DOMMETAIMPL) $(DISC_PL) \ |
115 |
|
|
$(PHASE1_DOMLS_DIS_FILE) |
116 |
|
|
$(DISC) $< --output-file-name="$@.tmp" |
117 |
|
|
$(DISC) $(PHASE1_DOMLS_DIS_FILE) --input-cdis-file-name="$@.tmp" \ |
118 |
|
|
--output-file-name="$@" |
119 |
|
|
$(RM) $@.tmp |
120 |
wakaba |
1.1 |
|
121 |
|
|
$(TEMP_LIB_DIR)dis.cdis: $(DIS_FILES_FOR_DIS) \ |
122 |
|
|
$(TEMP_LIB_DIR)dom.cdis $(DISC_PL) |
123 |
|
|
$(DISC) $< --input-cdis-file-name="$(TEMP_LIB_DIR)dom.cdis" \ |
124 |
|
|
--output-file-name="$@" |
125 |
|
|
|
126 |
|
|
$(TEMP_LIB_DIR)Message/DOM/DOMMetaImpl.pm: $(TEMP_LIB_DIR)dom.cdis $(CDIS2PM_PL) |
127 |
|
|
$(CDIS2PM) $< --module-name=DOMMetaImpl > $@ |
128 |
|
|
$(PERL1_CHK) $@ |
129 |
|
|
|
130 |
|
|
$(TEMP_LIB_DIR)Message/Util/ManakaiNode.pm: $(TEMP_LIB_DIR)dom.cdis $(CDIS2PM_PL) |
131 |
|
|
$(CDIS2PM) $< --module-name=ManakaiNode > $@ |
132 |
|
|
$(PERL1_CHK) $@ |
133 |
|
|
|
134 |
|
|
$(TEMP_LIB_DIR)Message/Util/DIS.pm: $(TEMP_LIB_DIR)dis.cdis $(CDIS2PM_PL) |
135 |
|
|
$(CDIS2PM) $< --module-name=DIS > $@ |
136 |
|
|
$(PERL1_CHK) $@ |
137 |
|
|
|
138 |
|
|
$(TEMP_LIB_DIR)Message/Util/PerlCode.pm: $(TEMP_LIB_DIR)dis.cdis $(CDIS2PM_PL) |
139 |
|
|
$(CDIS2PM) $< --module-name=PerlCode > $@ |
140 |
|
|
$(PERL1_CHK) $@ |
141 |
|
|
|
142 |
|
|
$(TEMP_LIB_DIR)Message/Util/Error/DOMException.pm: $(TEMP_LIB_DIR)dis.cdis \ |
143 |
|
|
$(CDIS2PM_PL) |
144 |
|
|
$(CDIS2PM) $< --module-name=DOMException > $@ |
145 |
|
|
$(PERL1_CHK) $@ |
146 |
|
|
|
147 |
|
|
$(TEMP_LIB_DIR)Message/Markup/SuikaWikiConfig21.pm: $(TEMP_LIB_DIR)dis.cdis \ |
148 |
|
|
$(CDIS2PM_PL) |
149 |
|
|
$(CDIS2PM) $< --module-name=SuikaWikiConfig21 > $@ |
150 |
wakaba |
1.5 |
$(ECHO) "require Message::DOM::DOMLS;" >> $@ |
151 |
wakaba |
1.1 |
$(PERL1_CHK) $@ |
152 |
|
|
|
153 |
|
|
## Phase 2 - Making Perl modules by dac tools generated |
154 |
|
|
## by old disc and cdis2pm tools |
155 |
|
|
|
156 |
|
|
$(TEMP_LIB2_DIR): |
157 |
|
|
$(MKDIR) -p $(TEMP_LIB2_DIR)Message/Util/Error |
158 |
|
|
$(MKDIR) -p $(TEMP_LIB2_DIR)Message/DOM |
159 |
|
|
$(MKDIR) -p $(TEMP_LIB2_DIR)Message/Markup |
160 |
|
|
|
161 |
wakaba |
1.5 |
$(PHASE2_DOMLS_PM_FILE): $(PHASE1_DOMLS_PM_FILE) |
162 |
|
|
$(CP) $< $@ |
163 |
|
|
|
164 |
wakaba |
1.2 |
$(TEMP_LIB2_DIR)dom.dac: $(DIS_FILES_FOR_DOMMETAIMPL) \ |
165 |
wakaba |
1.5 |
$(DAC_PL) $(PHASE1_PM_FILES) $(PHASE1_DOMLS_DIS_FILE) |
166 |
|
|
$(DAC)$@.1.tmp $< |
167 |
|
|
$(DAC)$@.2.tmp --input-db-file-name="$@.1.tmp" $(PHASE1_DOMLS_DIS_FILE) \ |
168 |
|
|
--for="$(NS_MANAKAIDOM)ManakaiDOMLatest" |
169 |
|
|
$(DAC)$@ --input-db-file-name="$@.2.tmp" $(PHASE1_DOMLS_DIS_FILE) \ |
170 |
|
|
--for="$(NS_MANAKAIDOM)ManakaiDOM3" |
171 |
wakaba |
1.1 |
|
172 |
|
|
$(TEMP_LIB2_DIR)dis.dac: $(DIS_FILES_FOR_DIS) $(TEMP_LIB2_DIR)dom.dac $(DAC_PL) |
173 |
|
|
$(DAC)$@ --input-db-file-name="$(TEMP_LIB2_DIR)dom.dac" $< |
174 |
|
|
|
175 |
|
|
$(TEMP_LIB2_DIR)Message/DOM/DOMMetaImpl.pm: \ |
176 |
|
|
$(TEMP_LIB2_DIR)dom.dac $(DAC2PM_PL) |
177 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" > $@ |
178 |
|
|
$(PERL2_CHK) $@ |
179 |
|
|
|
180 |
|
|
$(TEMP_LIB2_DIR)Message/Markup/SuikaWikiConfig21.pm: \ |
181 |
|
|
$(TEMP_LIB2_DIR)dis.dac $(DAC2PM_PL) |
182 |
|
|
$(DAC2PM) $< --module-uri="$(NS_MARKUP)SuikaWikiConfig21" > $@ |
183 |
|
|
$(PERL2_CHK) $@ |
184 |
|
|
|
185 |
|
|
$(TEMP_LIB2_DIR)Message/Util/ManakaiNode.pm: \ |
186 |
|
|
$(TEMP_LIB2_DIR)dom.dac $(DAC2PM_PL) |
187 |
|
|
$(DAC2PM) $< --module-uri="$(NS_UTIL)ManakaiNode" > $@ |
188 |
|
|
$(PERL2_CHK) $@ |
189 |
|
|
|
190 |
|
|
$(TEMP_LIB2_DIR)Message/Util/DIS.pm: \ |
191 |
|
|
$(TEMP_LIB2_DIR)dis.dac $(DAC2PM_PL) |
192 |
|
|
$(DAC2PM) $< --module-uri="$(NS_UTIL)DIS" > $@ |
193 |
|
|
$(PERL2_CHK) $@ |
194 |
|
|
|
195 |
|
|
$(TEMP_LIB2_DIR)Message/Util/PerlCode.pm: \ |
196 |
|
|
$(TEMP_LIB2_DIR)dis.dac $(DAC2PM_PL) |
197 |
|
|
$(DAC2PM) $< --module-uri="$(NS_UTIL)PerlCode" > $@ |
198 |
|
|
$(PERL2_CHK) $@ |
199 |
|
|
|
200 |
|
|
$(TEMP_LIB2_DIR)Message/Util/Error/DOMException.pm: \ |
201 |
|
|
$(TEMP_LIB2_DIR)dis.dac $(DAC2PM_PL) |
202 |
|
|
$(DAC2PM) $< --module-uri="$(NS_UTIL_ERR)DOMException" > $@ |
203 |
|
|
$(PERL2_CHK) $@ |
204 |
|
|
|
205 |
|
|
## Phase 3 - Making Perl modules by dac tools generated by dac tools |
206 |
|
|
|
207 |
wakaba |
1.5 |
phase3: $(PHASE2_PM_FILES) $(MANAKAI_LIB_DIR)Message/DOM/DOMLS.pm |
208 |
wakaba |
1.3 |
$(CD) $(MANAKAI_LIB_DIR)Message/Util && \ |
209 |
wakaba |
1.6 |
$(MAKE) boot \ |
210 |
wakaba |
1.4 |
PERL_OPTIONS2="-I../../lib/$(TEMP_LIB2_DIR) \ |
211 |
|
|
-I../../lib/$(MANAKAI_LIB_DIR) \ |
212 |
wakaba |
1.3 |
$(PHASE3_PERL_OPTIONS)" \ |
213 |
wakaba |
1.4 |
PERLC_OPTIONS2="-I../../lib/$(MANAKAI_LIB_DIR) \ |
214 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
215 |
|
|
DAC2PM_OPTIONS2="$(PHASE3_DAC2PM_OPTIONS)" \ |
216 |
wakaba |
1.5 |
DOMLS_DIS_FILE2="../../lib/$(TEMP_LIB_DIR)Message/DOM/DOMLS.dis" \ |
217 |
|
|
DOMBOOT_DIS_FILE2="../../lib/$(TEMP_LIB_DIR)Message/DOM/DOMBoot.dis" \ |
218 |
wakaba |
1.4 |
PERL_OPTIONS3="-I../../../lib/$(TEMP_LIB2_DIR) \ |
219 |
|
|
-I../../../lib/$(MANAKAI_LIB_DIR) \ |
220 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
221 |
|
|
PERLC_OPTIONS3="-I../../../lib/$(MANAKAI_LIB_DIR) \ |
222 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
223 |
wakaba |
1.5 |
DAC2PM_OPTIONS3="$(PHASE3_DAC2PM_OPTIONS)" \ |
224 |
|
|
DOMLS_DIS_FILE3="../../../lib/$(TEMP_LIB_DIR)Message/DOM/DOMLS.dis" \ |
225 |
|
|
DOMBOOT_DIS_FILE3="../../../lib/Message/DOM/DOMBoot.dis" |
226 |
wakaba |
1.4 |
$(CD) $(MANAKAI_LIB_DIR)Message/Markup && \ |
227 |
|
|
$(MAKE) all \ |
228 |
|
|
PERL_OPTIONS2="-I../../lib/$(TEMP_LIB2_DIR) \ |
229 |
|
|
-I../../lib/$(MANAKAI_LIB_DIR) \ |
230 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
231 |
|
|
PERLC_OPTIONS2="-I../../lib/$(MANAKAI_LIB_DIR) \ |
232 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
233 |
|
|
DAC2PM_OPTIONS2="$(PHASE3_DAC2PM_OPTIONS)" \ |
234 |
wakaba |
1.5 |
DOMLS_DIS_FILE2="../../lib/$(TEMP_LIB_DIR)Message/DOM/DOMLS.dis" \ |
235 |
wakaba |
1.4 |
PERL_OPTIONS3="-I../../../lib/$(TEMP_LIB2_DIR) \ |
236 |
|
|
-I../../../lib/$(MANAKAI_LIB_DIR) \ |
237 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
238 |
|
|
PERLC_OPTIONS3="-I../../../lib/$(MANAKAI_LIB_DIR) \ |
239 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
240 |
|
|
DAC2PM_OPTIONS3="$(PHASE3_DAC2PM_OPTIONS)" |
241 |
wakaba |
1.5 |
DOMLS_DIS_FILE3="../../../lib/$(TEMP_LIB_DIR)Message/DOM/DOMLS.dis" |
242 |
wakaba |
1.4 |
$(CD) $(MANAKAI_LIB_DIR)Message/DOM && \ |
243 |
|
|
$(MAKE) boot \ |
244 |
|
|
PERL_OPTIONS2="-I../../lib/$(TEMP_LIB2_DIR) \ |
245 |
|
|
-I../../lib/$(MANAKAI_LIB_DIR) \ |
246 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
247 |
|
|
PERLC_OPTIONS2="-I../../lib/$(MANAKAI_LIB_DIR) \ |
248 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
249 |
|
|
DAC2PM_OPTIONS2="$(PHASE3_DAC2PM_OPTIONS)" \ |
250 |
wakaba |
1.5 |
DOMLS_DIS_FILE2="../../lib/$(TEMP_LIB_DIR)Message/DOM/DOMLS.dis" \ |
251 |
wakaba |
1.4 |
PERL_OPTIONS3="-I../../../lib/$(TEMP_LIB2_DIR) \ |
252 |
|
|
-I../../../lib/$(MANAKAI_LIB_DIR) \ |
253 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
254 |
|
|
PERLC_OPTIONS3="-I../../../lib/$(MANAKAI_LIB_DIR) \ |
255 |
|
|
$(PHASE3_PERL_OPTIONS)" \ |
256 |
|
|
DAC2PM_OPTIONS3="$(PHASE3_DAC2PM_OPTIONS)" |
257 |
wakaba |
1.5 |
DOMLS_DIS_FILE3="../../../lib/$(TEMP_LIB_DIR)Message/DOM/DOMLS.dis" |
258 |
wakaba |
1.6 |
|
259 |
|
|
## TODO: Make other modules |
260 |
wakaba |
1.5 |
|
261 |
|
|
$(MANAKAI_LIB_DIR)Message/DOM/DOMLS.pm: $(PHASE1_DOMLS_PM_FILE) |
262 |
|
|
$(CP) $< $@ |
263 |
wakaba |
1.3 |
|
264 |
wakaba |
1.1 |
## Misc. |
265 |
|
|
|
266 |
|
|
clean: |
267 |
|
|
$(RM) -frv $(TEMP_LIB_DIR) |
268 |
|
|
$(RM) -fv *~ .*~ *.BAK .*.BAK |
269 |
wakaba |
1.3 |
$(CD) $(MANAKAI_LIB_DIR)Message/Util && $(MAKE) clean |
270 |
wakaba |
1.5 |
|
271 |
|
|
## Files |
272 |
|
|
|
273 |
|
|
$(PHASE1_DOMLS_DIS_FILE): |
274 |
|
|
$(ECHO) "Module:" > $@ |
275 |
|
|
$(ECHO) " @QName:" >> $@ |
276 |
|
|
$(ECHO) " MDOM:DOMLS" >> $@ |
277 |
|
|
$(ECHO) " @Namespace:" >> $@ |
278 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/dom/ls#" >> $@ |
279 |
|
|
|
280 |
|
|
$(ECHO) " @DefaultFor:" >> $@ |
281 |
|
|
$(ECHO) " ManakaiDOM:ManakaiDOMLatest" >> $@ |
282 |
|
|
|
283 |
|
|
$(ECHO) "Namespace:" >> $@ |
284 |
|
|
$(ECHO) " @dis:" >> $@ |
285 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#dis--" \ |
286 |
|
|
>> $@ |
287 |
|
|
$(ECHO) " @DISLang:" >> $@ |
288 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/dis/Lang#" >> $@ |
289 |
|
|
$(ECHO) " @DOMMain:" >> $@ |
290 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/dom/main#" >> $@ |
291 |
|
|
$(ECHO) " @lang:" >> $@ |
292 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#" >> $@ |
293 |
|
|
$(ECHO) " @ManakaiDOM:" >> $@ |
294 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#" \ |
295 |
|
|
>> $@ |
296 |
|
|
$(ECHO) " @MDOM:" >> $@ |
297 |
|
|
$(ECHO) " $(NS_MDOM)" >> $@ |
298 |
|
|
$(ECHO) " @rdf:" >> $@ |
299 |
|
|
$(ECHO) " http://www.w3.org/1999/02/22-rdf-syntax-ns#" >> $@ |
300 |
|
|
|
301 |
|
|
$(ECHO) "ResourceDef:" >> $@ |
302 |
|
|
$(ECHO) " @QName: LSInput" >> $@ |
303 |
|
|
$(ECHO) " @rdf:type:" >> $@ |
304 |
|
|
$(ECHO) " ManakaiDOM:IF" >> $@ |
305 |
|
|
|
306 |
|
|
$(ECHO) " @ResourceDef:" >> $@ |
307 |
|
|
$(ECHO) " @@rdf:type:" >> $@ |
308 |
|
|
$(ECHO) " DISLang:InputProcessor" >> $@ |
309 |
|
|
$(ECHO) " @@Def:" >> $@ |
310 |
|
|
$(ECHO) " @@@ContentType:" >> $@ |
311 |
|
|
$(ECHO) " lang:Perl" >> $@ |
312 |
|
|
$(ECHO) " @@@@:" >> $@ |
313 |
|
|
$(ECHO) ' $$INPUT = bless $$INPUT,<ClassName::ManakaiDOMLSInput' >> $@ |
314 |
|
|
$(ECHO) ' ::ManakaiDOM:ManakaiDOMLatest>' >> $@ |
315 |
|
|
$(ECHO) ' if ref $$INPUT eq "HASH";' >> $@ |
316 |
|
|
$(ECHO) " @ManakaiDOM:inputNormalizer:" >> $@ |
317 |
|
|
$(ECHO) " @@ContentType:" >> $@ |
318 |
|
|
$(ECHO) " lang:Perl" >> $@ |
319 |
|
|
$(ECHO) " @@@:" >> $@ |
320 |
|
|
$(ECHO) ' $$INPUT = bless $$INPUT, ' >> $@ |
321 |
|
|
$(ECHO) " <ClassName::DOMLS:ManakaiDOMLSInput" >> $@ |
322 |
|
|
$(ECHO) " ::ManakaiDOM:ManakaiDOMLatest>" >> $@ |
323 |
|
|
$(ECHO) ' if ref $$INPUT eq "HASH";' >> $@ |
324 |
|
|
|
325 |
|
|
$(ECHO) " @Attr:" >> $@ |
326 |
|
|
$(ECHO) " @@Name: characterStream" >> $@ |
327 |
|
|
$(ECHO) " @Attr:" >> $@ |
328 |
|
|
$(ECHO) " @@Name: byteStream" >> $@ |
329 |
|
|
$(ECHO) " @Attr:" >> $@ |
330 |
|
|
$(ECHO) " @@Name: stringData" >> $@ |
331 |
|
|
$(ECHO) " @Attr:" >> $@ |
332 |
|
|
$(ECHO) " @@Name: systemId" >> $@ |
333 |
|
|
$(ECHO) " @Attr:" >> $@ |
334 |
|
|
$(ECHO) " @@Name: publicId" >> $@ |
335 |
|
|
$(ECHO) " @Attr:" >> $@ |
336 |
|
|
$(ECHO) " @@Name: baseURI" >> $@ |
337 |
|
|
$(ECHO) " @Attr:" >> $@ |
338 |
|
|
$(ECHO) " @@Name: encoding" >> $@ |
339 |
|
|
$(ECHO) " @Attr:" >> $@ |
340 |
|
|
$(ECHO) " @@Name: certifiedText" >> $@ |
341 |
|
|
|
342 |
|
|
$(ECHO) "ResourceDef:" >> $@ |
343 |
|
|
$(ECHO) " @QName: ManakaiDOMLSInput" >> $@ |
344 |
|
|
$(ECHO) " @rdf:type:" >> $@ |
345 |
|
|
$(ECHO) " ManakaiDOM:Class" >> $@ |
346 |
|
|
|
347 |
|
|
$(ECHO) "ElementTypeBinding:" >> $@ |
348 |
|
|
$(ECHO) " @Name: Attr" >> $@ |
349 |
|
|
$(ECHO) " @ElementType:" >> $@ |
350 |
|
|
$(ECHO) " dis:ResourceDef" >> $@ |
351 |
|
|
$(ECHO) " @ShadowContent:" >> $@ |
352 |
|
|
$(ECHO) " @@rdf:type:" >> $@ |
353 |
|
|
$(ECHO) " DISLang:Attribute" >> $@ |
354 |
|
|
$(ECHO) " @@ResourceDef:" >> $@ |
355 |
|
|
$(ECHO) " @@@rdf:type:" >> $@ |
356 |
|
|
$(ECHO) " DISLang:AttributeGet" >> $@ |
357 |
|
|
$(ECHO) " @@ResourceDef:" >> $@ |
358 |
|
|
$(ECHO) " @@@rdf:type:" >> $@ |
359 |
|
|
$(ECHO) " DISLang:AttributeSet" >> $@ |
360 |
|
|
$(ECHO) " @@Type:" >> $@ |
361 |
|
|
$(ECHO) " DOMMain:any" >> $@ |
362 |
|
|
|
363 |
|
|
$(PHASE1_DOMLS_PM_FILE): |
364 |
|
|
$(ECHO) "package Message::DOM::DOMLS::ManakaiDOMLSInput;" > $@ |
365 |
|
|
$(ECHO) "sub character_stream {shift->{character_stream}}" >> $@ |
366 |
|
|
$(ECHO) "sub byte_stream {shift->{byte_stream}}" >> $@ |
367 |
|
|
$(ECHO) 'sub string_data {ref $$_[0]->{string_data} eq "SCALAR" ?' >> $@ |
368 |
|
|
$(ECHO) ' $${$$_[0]->{string_data}} : $$_[0]->{string_data}}' >> $@ |
369 |
|
|
$(ECHO) "sub public_id {shift->{public_id}}" >> $@ |
370 |
|
|
$(ECHO) "sub system_id {shift->{system_id}}" >> $@ |
371 |
|
|
$(ECHO) "sub base_uri {shift->{base_uri}}" >> $@ |
372 |
|
|
$(ECHO) "sub certified_text {shift->{certified_text}}" >> $@ |
373 |
|
|
$(ECHO) "sub encoding {shift->{encoding}}" >> $@ |
374 |
|
|
$(ECHO) "1;" >> $@ |
375 |
|
|
|