/[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.32 - (show annotations) (download)
Sun Jan 29 13:58:54 2006 UTC (18 years, 10 months ago) by wakaba
Branch: MAIN
Changes since 1.31: +19 -36 lines
++ manakai/t/ChangeLog	29 Jan 2006 13:41:06 -0000
	* Makefile (dom-genericls.t): Generates from |feature.dae|.

2006-01-29  Wakaba  <wakaba@suika.fam.cx>

++ manakai/lib/Message/Markup/ChangeLog	29 Jan 2006 13:32:04 -0000
2006-01-29  Wakaba  <wakaba@suika.fam.cx>

	* SuikaWikiConfig.dis: Unused definitions are removed.
	Dependency on |MDOM:DOMLS| module is removed; the module
	now only references |MDOM:GenericLS| module.
	(swcfg21:shadowParent, swcfg21:shadowSiblingOf,
	swcfg21:shadowLocalName, swcfg21:shadowNamespaceURI): Missing
	definition added.  A typo fixed.

++ manakai/lib/Message/Util/ChangeLog	29 Jan 2006 13:33:46 -0000
	* Makefile: Updated to be consist with |../DOM/Makefile|.

	* DIS.dis (parse): Parameter |input|'s type is
	changed from |DOMLS:LSInput| to |DISPerl:HASH| to
	remove dependency on |MDOM:DOMLS| module.

2006-01-29  Wakaba  <wakaba@suika.fam.cx>

++ manakai/lib/Message/Util/DIS/ChangeLog	29 Jan 2006 13:39:45 -0000
	* Perl.dis, DNLite.dis, Value.dis, Test.dis: Unused definitions removed.

	* Test.dis, DPS.dis: References to old names in |MDOM:DOMLS| namespace
	changed to ones in |MDOM:GenericLS| namespace.

	* Perl.dis (plLoadDISDatabaseModule): Don't throw database
	incosistency error for |ManakaiDOM:all|, which is always
	in |DISDatabase|.
	(plGeneratePerlModule): |c:DOMConfigurationParameterApplication|
	with whose referenced configuration's type |idl:boolean|
	may override "supported" flags and their cases' |dis:SetParam|
	parameters.  (It enables |MDOM:DOMLS| configuration
	parameters split from |MDOM:DOMCore| ones)

2006-01-29  Wakaba  <wakaba@suika.fam.cx>

++ manakai/lib/Message/DOM/ChangeLog	29 Jan 2006 13:29:45 -0000
	* Tree.dis (ManakaiDOM:entity-reference-read-only): Configuration
	parameter name changed to |cfg:entity-reference-read-only|.
	(createEntityReference): Set |c:read-only| flag of
	the created entity reference, too.

	* DOMLS.dis (min): New canonical feature name |fe:Min| added.

	* GenericLS.dis: Don't refer |DOMMain:DOMString|; use |f:MIString|
	from |DOMFeature| module instead.  Use |idl:Object|
	instead of |DOMMain:DOMObject| as well.
	(Generic): New canonical feature name |fe:GenericLS| added.
	(DOMLS:ParserRole, DOMLS:SerializerRole): Their
	canonical name changed to |gls:ParserRole| and |gls:SerializerRole|
	respectively.

	* DOMXML.dis (entities, notations): Perl code removed.
	It will be reimplemented using |DocumentTypeDefinition|
	class from |XDoctype| module.

	* DOMFeature.dis, DOMCore.dis, DOMMain.dis, DOMXML.dis,
	Tree.dis, DOMLS.dis, GenericLS.dis, ManakaiDOMLS2003.dis,
	SimpleLS.dis: Cleaned up unused definitions.

	* DOMCore.dis, DOMLS.dis (CParam): Definitions
	for LS module moved from |DOMCore| module to |DOMLS| module.
	This change makes |DOMCore| to |DOMLS| dependency removed.

	* .cvsignore (.html.pm, .ls.pm): Removed.

	* Makefile (.html.pm, .ls.pm): Removed.
	(feature.dae): Include |GenericLS| module.
	(core.dae): Don't include |DOMLS| and |GenericLS| module.
	(ls.dae): Include |DOMLS| module.

2006-01-29  Wakaba  <wakaba@suika.fam.cx>

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) GenericLS$(DIS_SUFFIX)
46 DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \
47 Tree$(DIS_SUFFIX) \
48 XDoctype$(DIS_SUFFIX)
49 DOM_LS_DIS_FILES = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) \
50 ManakaiDOMLS2003$(DIS_SUFFIX)
51 XP_DIS_FILES = XMLParser$(DIS_SUFFIX)
52 DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis
53 DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \
54 $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES)
55
56 GENERATED_FILES = \
57 feature$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \
58 core$(DAC_SUFFIX) DOMMain$(PM_SUFFIX) \
59 DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) \
60 Tree$(PM_SUFFIX) \
61 XDoctype$(PM_SUFFIX) \
62 ls$(DAC_SUFFIX) SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \
63 DOMLS$(PM_SUFFIX) \
64 xp$(DAC_SUFFIX) XMLParser$(PM_SUFFIX) \
65 html$(DAC_SUFFIX) DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX)
66 GENERATED_DAC_FILES = feature$(DAC_SUFFIX) \
67 core$(DAC_SUFFIX) ls$(DAC_SUFFIX) html$(DAC_SUFFIX) xp$(DAC_SUFFIX)
68
69 all: .core$(PM_SUFFIX) .html$(PM_SUFFIX) \
70 $(GENERATED_DAC_FILES) \
71 XMLParser$(PM_SUFFIX)
72
73 feature$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_FEATURE_DIS_FILES) $(DAC_PL)
74 $(DAC)$@ --input-db-file-name="$<" GenericLS.dis
75
76 core$(DAC_SUFFIX): feature$(DAC_SUFFIX) $(DOM_CORE_DIS_FILES) $(DAC_PL)
77 $(DAC)$@ --input-db-file-name="$<" XDoctype.dis
78
79 ls$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_LS_DIS_FILES) $(DAC_PL)
80 $(DAC)$@.tmp.1 --input-db-file-name="$<" SimpleLS.dis
81 $(DAC)$@.tmp.2 --input-db-file-name="$@.tmp.1" ManakaiDOMLS2003.dis
82 $(DAC)$@ --input-db-file-name="$@.tmp.2" DOMLS.dis
83 $(RM) $@.tmp.1 $@.tmp.2
84
85 xp$(DAC_SUFFIX): ls$(DAC_SUFFIX) $(XP_DIS_FILES) $(DAC_PL)
86 $(DAC)$@ --input-db-file-name="$<" XMLParser.dis
87
88 html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL)
89 $(DAC)$@ --input-db-file-name="$<" DOMHTML.dis
90
91 $(DOM_FEATURE_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): \
92 feature$(DAC_SUFFIX) $(DAC2PM_PL)
93 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
94 --output-file-path="$@"
95 $(PERL_CHK) $@
96
97 $(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL)
98 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
99 --output-file-path="$@"
100 $(PERL_CHK) $@
101
102 .core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL)
103 $(DAC2PM) $< \
104 --create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \
105 --create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)" \
106 --create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \
107 --create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \
108 --create-perl-module="$(NS_MDOM)Tree Tree$(PM_SUFFIX)" \
109 --create-perl-module="$(NS_MDOM)DOMXML DOMXML$(PM_SUFFIX)" \
110 --create-perl-module="$(NS_MDOM)XDoctype XDoctype$(PM_SUFFIX)"
111 $(PERL_CHK) DOMFeature$(PM_SUFFIX)
112 $(PERL_CHK) GenericLS$(PM_SUFFIX)
113 $(PERL_CHK) DOMMain$(PM_SUFFIX)
114 $(PERL_CHK) DOMCore$(PM_SUFFIX)
115 $(PERL_CHK) Tree$(PM_SUFFIX)
116 $(PERL_CHK) DOMXML$(PM_SUFFIX)
117 $(PERL_CHK) XDoctype$(PM_SUFFIX)
118 $(TOUCH) $@
119 ## NOTE: When you modify this rule, update |../Util/Makefile|, too.
120
121 $(DOM_LS_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): ls$(DAC_SUFFIX) $(DAC2PM_PL)
122 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
123 --output-file-path="$@"
124 $(PERL_CHK) $@
125
126 $(XP_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): xp$(DAC_SUFFIX) $(DAC2PM_PL)
127 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \
128 --output-file-path="$@"
129 $(PERL_CHK) $@
130
131 $(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL)
132 $(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@
133 $(PERL_CHK) $@
134
135 feature-spec$(DAC_SUFFIX): feature$(DAC_SUFFIX) DOMFeature.dis $(DAC_PL)
136 $(DAC)$@ --input-db-file-name="$<" DOMFeature.dis \
137 --for="$(NS_MANAKAIDOM)ForSpecLatest"
138
139 # $(UTIL_CORE_DAC_FILE)
140 $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy
141 $(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX)
142
143 dummy:
144
145 clean:
146 $(RM) $(GENERATED_FILES)
147 $(RM) .*.tmp *~ .*~ *.BAK .*.BAK
148 $(RM) .core$(PM_SUFFIX)
149
150 ## $Date: 2006/01/07 12:30:53 $
151 ## License: Public Domain.

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24