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 |
|
|
$(MAKE) all \ |
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 |
|
|
|
259 |
|
|
$(MANAKAI_LIB_DIR)Message/DOM/DOMLS.pm: $(PHASE1_DOMLS_PM_FILE) |
260 |
|
|
$(CP) $< $@ |
261 |
wakaba |
1.3 |
|
262 |
wakaba |
1.1 |
## Misc. |
263 |
|
|
|
264 |
|
|
clean: |
265 |
|
|
$(RM) -frv $(TEMP_LIB_DIR) |
266 |
|
|
$(RM) -fv *~ .*~ *.BAK .*.BAK |
267 |
wakaba |
1.3 |
$(CD) $(MANAKAI_LIB_DIR)Message/Util && $(MAKE) clean |
268 |
wakaba |
1.5 |
|
269 |
|
|
## Files |
270 |
|
|
|
271 |
|
|
$(PHASE1_DOMLS_DIS_FILE): |
272 |
|
|
$(ECHO) "Module:" > $@ |
273 |
|
|
$(ECHO) " @QName:" >> $@ |
274 |
|
|
$(ECHO) " MDOM:DOMLS" >> $@ |
275 |
|
|
$(ECHO) " @Namespace:" >> $@ |
276 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/dom/ls#" >> $@ |
277 |
|
|
|
278 |
|
|
$(ECHO) " @DefaultFor:" >> $@ |
279 |
|
|
$(ECHO) " ManakaiDOM:ManakaiDOMLatest" >> $@ |
280 |
|
|
|
281 |
|
|
$(ECHO) "Namespace:" >> $@ |
282 |
|
|
$(ECHO) " @dis:" >> $@ |
283 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#dis--" \ |
284 |
|
|
>> $@ |
285 |
|
|
$(ECHO) " @DISLang:" >> $@ |
286 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/dis/Lang#" >> $@ |
287 |
|
|
$(ECHO) " @DOMMain:" >> $@ |
288 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/dom/main#" >> $@ |
289 |
|
|
$(ECHO) " @lang:" >> $@ |
290 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/8/18/lang#" >> $@ |
291 |
|
|
$(ECHO) " @ManakaiDOM:" >> $@ |
292 |
|
|
$(ECHO) " http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom#" \ |
293 |
|
|
>> $@ |
294 |
|
|
$(ECHO) " @MDOM:" >> $@ |
295 |
|
|
$(ECHO) " $(NS_MDOM)" >> $@ |
296 |
|
|
$(ECHO) " @rdf:" >> $@ |
297 |
|
|
$(ECHO) " http://www.w3.org/1999/02/22-rdf-syntax-ns#" >> $@ |
298 |
|
|
|
299 |
|
|
$(ECHO) "ResourceDef:" >> $@ |
300 |
|
|
$(ECHO) " @QName: LSInput" >> $@ |
301 |
|
|
$(ECHO) " @rdf:type:" >> $@ |
302 |
|
|
$(ECHO) " ManakaiDOM:IF" >> $@ |
303 |
|
|
|
304 |
|
|
$(ECHO) " @ResourceDef:" >> $@ |
305 |
|
|
$(ECHO) " @@rdf:type:" >> $@ |
306 |
|
|
$(ECHO) " DISLang:InputProcessor" >> $@ |
307 |
|
|
$(ECHO) " @@Def:" >> $@ |
308 |
|
|
$(ECHO) " @@@ContentType:" >> $@ |
309 |
|
|
$(ECHO) " lang:Perl" >> $@ |
310 |
|
|
$(ECHO) " @@@@:" >> $@ |
311 |
|
|
$(ECHO) ' $$INPUT = bless $$INPUT,<ClassName::ManakaiDOMLSInput' >> $@ |
312 |
|
|
$(ECHO) ' ::ManakaiDOM:ManakaiDOMLatest>' >> $@ |
313 |
|
|
$(ECHO) ' if ref $$INPUT eq "HASH";' >> $@ |
314 |
|
|
$(ECHO) " @ManakaiDOM:inputNormalizer:" >> $@ |
315 |
|
|
$(ECHO) " @@ContentType:" >> $@ |
316 |
|
|
$(ECHO) " lang:Perl" >> $@ |
317 |
|
|
$(ECHO) " @@@:" >> $@ |
318 |
|
|
$(ECHO) ' $$INPUT = bless $$INPUT, ' >> $@ |
319 |
|
|
$(ECHO) " <ClassName::DOMLS:ManakaiDOMLSInput" >> $@ |
320 |
|
|
$(ECHO) " ::ManakaiDOM:ManakaiDOMLatest>" >> $@ |
321 |
|
|
$(ECHO) ' if ref $$INPUT eq "HASH";' >> $@ |
322 |
|
|
|
323 |
|
|
$(ECHO) " @Attr:" >> $@ |
324 |
|
|
$(ECHO) " @@Name: characterStream" >> $@ |
325 |
|
|
$(ECHO) " @Attr:" >> $@ |
326 |
|
|
$(ECHO) " @@Name: byteStream" >> $@ |
327 |
|
|
$(ECHO) " @Attr:" >> $@ |
328 |
|
|
$(ECHO) " @@Name: stringData" >> $@ |
329 |
|
|
$(ECHO) " @Attr:" >> $@ |
330 |
|
|
$(ECHO) " @@Name: systemId" >> $@ |
331 |
|
|
$(ECHO) " @Attr:" >> $@ |
332 |
|
|
$(ECHO) " @@Name: publicId" >> $@ |
333 |
|
|
$(ECHO) " @Attr:" >> $@ |
334 |
|
|
$(ECHO) " @@Name: baseURI" >> $@ |
335 |
|
|
$(ECHO) " @Attr:" >> $@ |
336 |
|
|
$(ECHO) " @@Name: encoding" >> $@ |
337 |
|
|
$(ECHO) " @Attr:" >> $@ |
338 |
|
|
$(ECHO) " @@Name: certifiedText" >> $@ |
339 |
|
|
|
340 |
|
|
$(ECHO) "ResourceDef:" >> $@ |
341 |
|
|
$(ECHO) " @QName: ManakaiDOMLSInput" >> $@ |
342 |
|
|
$(ECHO) " @rdf:type:" >> $@ |
343 |
|
|
$(ECHO) " ManakaiDOM:Class" >> $@ |
344 |
|
|
|
345 |
|
|
$(ECHO) "ElementTypeBinding:" >> $@ |
346 |
|
|
$(ECHO) " @Name: Attr" >> $@ |
347 |
|
|
$(ECHO) " @ElementType:" >> $@ |
348 |
|
|
$(ECHO) " dis:ResourceDef" >> $@ |
349 |
|
|
$(ECHO) " @ShadowContent:" >> $@ |
350 |
|
|
$(ECHO) " @@rdf:type:" >> $@ |
351 |
|
|
$(ECHO) " DISLang:Attribute" >> $@ |
352 |
|
|
$(ECHO) " @@ResourceDef:" >> $@ |
353 |
|
|
$(ECHO) " @@@rdf:type:" >> $@ |
354 |
|
|
$(ECHO) " DISLang:AttributeGet" >> $@ |
355 |
|
|
$(ECHO) " @@ResourceDef:" >> $@ |
356 |
|
|
$(ECHO) " @@@rdf:type:" >> $@ |
357 |
|
|
$(ECHO) " DISLang:AttributeSet" >> $@ |
358 |
|
|
$(ECHO) " @@Type:" >> $@ |
359 |
|
|
$(ECHO) " DOMMain:any" >> $@ |
360 |
|
|
|
361 |
|
|
$(PHASE1_DOMLS_PM_FILE): |
362 |
|
|
$(ECHO) "package Message::DOM::DOMLS::ManakaiDOMLSInput;" > $@ |
363 |
|
|
$(ECHO) "sub character_stream {shift->{character_stream}}" >> $@ |
364 |
|
|
$(ECHO) "sub byte_stream {shift->{byte_stream}}" >> $@ |
365 |
|
|
$(ECHO) 'sub string_data {ref $$_[0]->{string_data} eq "SCALAR" ?' >> $@ |
366 |
|
|
$(ECHO) ' $${$$_[0]->{string_data}} : $$_[0]->{string_data}}' >> $@ |
367 |
|
|
$(ECHO) "sub public_id {shift->{public_id}}" >> $@ |
368 |
|
|
$(ECHO) "sub system_id {shift->{system_id}}" >> $@ |
369 |
|
|
$(ECHO) "sub base_uri {shift->{base_uri}}" >> $@ |
370 |
|
|
$(ECHO) "sub certified_text {shift->{certified_text}}" >> $@ |
371 |
|
|
$(ECHO) "sub encoding {shift->{encoding}}" >> $@ |
372 |
|
|
$(ECHO) "1;" >> $@ |
373 |
|
|
|