/[suikacvs]/messaging/manakai/lib/Message/DOM/Makefile
Suika

Contents of /messaging/manakai/lib/Message/DOM/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.30 - (show annotations) (download)
Wed Dec 28 03:50:17 2005 UTC (18 years, 11 months ago) by wakaba
Branch: MAIN
Changes since 1.29: +16 -4 lines
++ manakai/lib/Message/Util/ChangeLog	28 Dec 2005 03:36:58 -0000
2005-12-27  Wakaba  <wakaba@suika.fam.cx>

	* PerlCode.dis (PCReference): New interface.

++ manakai/lib/Message/Util/DIS/ChangeLog	28 Dec 2005 03:49:57 -0000
2005-12-28  Wakaba  <wakaba@suika.fam.cx>

	* DPG.dis (plCodeFragment): Pushes |pop @ch| rather
	than |$ch| if an acception clause follows to a code block
	generated from a child match statement so that tokenizer
	does do the correct thing.  Support for |builtin:nestedBlockAsText|
	special rule is removed.  |pg:ifTrueStatement| is
	supported.  |pg:returnStatement| is supported.

2005-12-27  Wakaba  <wakaba@suika.fam.cx>

	* DPG.dis (VALIDITY_ERR): New error code.
	($merge_adjacent_range): New subfunction.  Adjacent character
	ranges are now merged so that |if| conditions in
	scanner methods are simplified.
	($array_uniq): New subfunction.  Filters states so that
	state number don't explode.
	(plCodeFragment): Now a DPG parser can have more than
	one tokenizer.  The |pg:qMatch| rvalue is supported.
	(DPGMatchStatementElement): The match statement
	now accepts attributes.
	(DPGRuleRefStatementElement): The ruleref statement
	now accepts attributes.
	(AttributeSpecificationList): The attribute specification
	now accepts a |NAME| as an attribute value as well
	as |STRING|s.
	(CodeBlock): The |pg:qLexmodeStatement| is supported.
	(lexmode.default): |QKEYWORD| token type is added.
	(ErrDef): Errors |unique-lexmode-name-error|, |rule-not-defined-error|,
	|lexmode-not-defined-error| and properties added.

2005-12-25  Wakaba  <wakaba@suika.fam.cx>

	* DPG.dis (dpgGetAttributeList): New method.
	(plCodeFragment): |:terminator?| option for a match
	block is supported.  |pg:matchElseBlock| is implemented.

++ manakai/lib/Message/DOM/ChangeLog	28 Dec 2005 03:36:24 -0000
2005-12-28  Wakaba  <wakaba@suika.fam.cx>

	* XMLParser.dis: Some modifications made.

2005-12-27  Wakaba  <wakaba@suika.fam.cx>

	* DOMLS.dis (PARSE_ERR, SERIALIZE_ERR): They are now a
	global named resource.

	* Makefile: Rules to make |XMLParser.pm| is added.

	* XMLParser.dis: New file.

2005-12-24  Wakaba  <wakaba@suika.fam.cx>

	* DOMCore.dis (ManakaiDOMError._FORMATTER_PACKAGE_): Error
	message formatter can now vary by error types.
	(DOMLocator.utf32Offset): New (manakai extended) attribute.

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 DAC_SUFFIX = .dae
7 DAEM_SUFFIX = .daem
8 PM_SUFFIX = .pm
9
10 CD = cd
11 MAKE = make
12 RM = rm
13 PERL = perl
14 PERL_OPTIONS =
15 PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
16 PERL_ = $(PERL) $(PERL_OPTIONS_ALL)
17 PERLC = $(PERL) -c -w
18 PERLC_OPTIONS =
19 PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR)
20 PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL)
21 TOUCH = touch
22
23 NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
24 NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
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
32 DAC_OPTIONS =
33 DAC_PL = $(MANAKAI_BIN_DIR)dac.pl
34 DAC = $(PERL_) $(DAC_PL) $(DAC_OPTIONS) $(DIS_OPTIONS_ALL) \
35 --db-base-directory-path="$(MANAKAI_ROOT_DIR)" \
36 --output-file-name=
37
38 DAC2PM_OPTIONS3 = --enable-assert
39 DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3)
40 DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl
41 DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) $(DIS_OPTIONS_ALL)
42
43 UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)
44
45 DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX)
46 DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
47 DOMLS.dis GenericLS.dis Tree$(DIS_SUFFIX)
48 DOM_LS_DIS_FILES = SimpleLS$(DIS_SUFFIX) ManakaiDOMLS2003$(DIS_SUFFIX)
49 XP_DIS_FILES = XMLParser$(DIS_SUFFIX)
50 DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
51 DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
52 $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)
53
54 GENERATED_FILES = \
55 feature$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) \
56 core$(DAC_SUFFIX) DOMMain$(PM_SUFFIX) \
57 DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \
58 GenericLS$(PM_SUFFIX) Tree$(PM_SUFFIX) \
59 ls$(DAC_SUFFIX) SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \
60 xp$(DAC_SUFFIX) XMLParser$(PM_SUFFIX) \
61 html$(DAC_SUFFIX) DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
62 GENERATED_DAC_FILES = feature$(DAC_SUFFIX) \
63 core$(DAC_SUFFIX) ls$(DAC_SUFFIX) html$(DAC_SUFFIX) xp$(DAC_SUFFIX)
64
65 all: .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX) \
66 $(GENERATED_DAC_FILES) \
67 XMLParser$(PM_SUFFIX)
68
69 feature$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_FEATURE_DIS_FILES) $(DAC_PL)
70 $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis
71
72 core$(DAC_SUFFIX): feature$(DAC_SUFFIX) $(DOM_CORE_DIS_FILES) $(DAC_PL)
73 $(DAC)$@.tmp.1 --input-db-file-name="$<" DOMLS.dis
74 $(DAC)$@ --input-db-file-name="$@.tmp.1" GenericLS.dis
75 $(RM) $@.tmp.1
76
77 ls$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_LS_DIS_FILES) $(DAC_PL)
78 $(DAC)$@.tmp.1 --input-db-file-name="$<" SimpleLS.dis
79 $(DAC)$@ --input-db-file-name="$@.tmp.1" ManakaiDOMLS2003.dis
80 $(RM) $@.tmp.1
81
82 xp$(DAC_SUFFIX): ls$(DAC_SUFFIX) $(XP_DIS_FILES) $(DAC_PL)
83 $(DAC)$@ --input-db-file-name="$<" XMLParser.dis
84
85 html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)
86 $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis
87
88 $(DOM_FEATURE_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): \
89 feature$(DAC_SUFFIX) $(DAC2PM_PL)
90 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
91 --output-file-path="$@"
92 $(PERL_CHK) $@
93
94 $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL)
95 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
96 --output-file-path="$@"
97 $(PERL_CHK) $@
98
99 .core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL)
100 $(DAC2PM) $< \
101 --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
102 --create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \
103 --create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \
104 --create-perl-module="$(NS_MDOM)Tree Tree$(PM_SUFFIX)" \
105 --create-perl-module="$(NS_MDOM)DOMXML DOMXML$(PM_SUFFIX)" \
106 --create-perl-module="$(NS_MDOM)DOMLS DOMLS$(PM_SUFFIX)" \
107 --create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)"
108 $(PERL_CHK) DOMFeature$(PM_SUFFIX)
109 $(PERL_CHK) DOMMain$(PM_SUFFIX)
110 $(PERL_CHK) DOMCore$(PM_SUFFIX)
111 $(PERL_CHK) Tree$(PM_SUFFIX)
112 $(PERL_CHK) DOMXML$(PM_SUFFIX)
113 $(PERL_CHK) DOMLS$(PM_SUFFIX)
114 $(PERL_CHK) GenericLS$(PM_SUFFIX)
115 $(TOUCH) $@
116
117 $(DOM_LS_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): ls$(DAC_SUFFIX) $(DAC2PM_PL)
118 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
119 --output-file-path="$@"
120 $(PERL_CHK) $@
121
122 .ls$(PM_SUFFIX): ls$(DAC_SUFFIX) $(DAC2PM_PL)
123 $(DAC2PM) $< \
124 --create-perl-module="$(NS_MDOM)SimpleLS SimpleLS$(PM_SUFFIX)" \
125 --create-perl-module="$(NS_MDOM)ManakaiDOMLS2003 ManakaiDOMLS2003$(PM_SUFFIX)"
126 $(PERL_CHK) SimpleLS$(PM_SUFFIX)
127 $(PERL_CHK) ManakaiDOMLS2003$(PM_SUFFIX)
128 $(TOUCH) $@
129
130 $(XP_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): xp$(DAC_SUFFIX) $(DAC2PM_PL)
131 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
132 --output-file-path="$@"
133 $(PERL_CHK) $@
134
135 $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)
136 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@
137 $(PERL_CHK) $@
138
139 .html$(PM_SUFFIX): html$(DAC_SUFFIX) $(DAC2PM_PL)
140 $(DAC2PM) $< \
141 --create-perl-module="$(NS_MDOM)DOMHTML DOMHTML$(PM_SUFFIX)" \
142 --create-perl-module="$(NS_MDOM)DOMWebForms DOMWebForms$(PM_SUFFIX)"
143 $(PERL_CHK) DOMHTML$(PM_SUFFIX)
144 $(PERL_CHK) DOMWebForms$(PM_SUFFIX)
145 $(TOUCH) $@
146
147 feature-spec$(DAC_SUFFIX): feature$(DAC_SUFFIX) DOMFeature.dis $(DAC_PL)
148 $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis \
149 --for="$(NS_MANAKAIDOM)ForSpecLatest"
150
151 # $(UTIL_CORE_DAC_FILE)
152 $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy
153 $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)
154
155 dummy:
156
157 clean:
158 $(RM) $(GENERATED_FILES)
159 $(RM) .*.tmp *~ .*~ *.BAK .*.BAK
160 $(RM) .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX)
161
162 ## $Date: 2005/11/20 09:49:28 $
163 ## License: Public Domain.

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24