2 |
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
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 |
CD = cd |
11 |
MAKE = make |
MAKE = make |
12 |
RM = rm |
RM = rm |
18 |
PERLC_OPTIONS3 = $(PERL_OPTIONS) |
PERLC_OPTIONS3 = $(PERL_OPTIONS) |
19 |
PERLC_OPTIONS = $(PERLC_OPTIONS3) |
PERLC_OPTIONS = $(PERLC_OPTIONS3) |
20 |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
21 |
|
TOUCH = touch |
22 |
|
|
23 |
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM. |
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\# |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
25 |
|
|
26 |
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
DIS_OPTIONS = |
27 |
DAC = $(PERL_) $(DAC_PL) \ |
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
28 |
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
--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)" \ |
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
36 |
--output-file-name= |
--output-file-name= |
37 |
|
|
38 |
DAC2PM_OPTIONS3 = --enable-assert |
DAC2PM_OPTIONS3 = --enable-assert |
39 |
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
40 |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
41 |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) $(DIS_OPTIONS_ALL) |
|
|
|
|
CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac |
|
|
UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac |
|
|
|
|
|
DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis |
|
|
DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis |
|
|
|
|
|
DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML) |
|
42 |
|
|
43 |
_DIS_FILES = \ |
UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX) |
|
DOMLS.dis ManakaiDOMLS2003.dis \ |
|
|
DOMEvents.dis DOMViews.dis |
|
44 |
|
|
45 |
GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \ |
DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) |
46 |
DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \ |
DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \ |
47 |
DOMEvents.pm DOMViews.pm \ |
DOMLS.dis GenericLS.dis |
48 |
DOMHTML.pm DOMWebForms.pm \ |
DOM_LS_DIS_FILES = SimpleLS.dis |
49 |
meta.cdis DOMMetaImpl.dis |
DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis |
50 |
|
DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \ |
51 |
|
$(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) |
52 |
|
|
53 |
|
GENERATED_FILES = \ |
54 |
|
feature$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) \ |
55 |
|
core$(DAC_SUFFIX) DOMMain$(PM_SUFFIX) \ |
56 |
|
DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \ |
57 |
|
GenericLS$(PM_SUFFIX) \ |
58 |
|
ls$(DAC_SUFFIX) SimpleLS$(PM_SUFFIX) \ |
59 |
|
html$(DAC_SUFFIX) DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX) |
60 |
|
GENERATED_DAC_FILES = feature$(DAC_SUFFIX) \ |
61 |
|
core$(DAC_SUFFIX) ls$(DAC_SUFFIX) html$(DAC_SUFFIX) |
62 |
|
|
63 |
|
all: .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX) $(GENERATED_DAC_FILES) |
64 |
|
|
65 |
|
feature$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_FEATURE_DIS_FILES) $(DAC_PL) |
66 |
|
$(DAC)$@ --input-db-file-name="$<" DOMFeature.dis |
67 |
|
|
68 |
|
core$(DAC_SUFFIX): feature$(DAC_SUFFIX) $(DOM_CORE_DIS_FILES) $(DAC_PL) |
69 |
|
$(DAC)$@.tmp.1 --input-db-file-name="$<" DOMLS.dis |
70 |
|
$(DAC)$@ --input-db-file-name="$@.tmp.1" GenericLS.dis |
71 |
|
$(RM) $@.tmp.1 |
72 |
|
|
73 |
GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm \ |
ls$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_LS_DIS_FILES) $(DAC_PL) |
74 |
html.dac DOMHTML.pm DOMWebForms.pm |
$(DAC)$@ --input-db-file-name="$<" SimpleLS.dis |
|
BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm |
|
75 |
|
|
76 |
all: $(GENERATED_FILES) |
html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL) |
77 |
|
$(DAC)$@ --input-db-file-name="$<" DOMHTML.dis |
78 |
|
|
79 |
core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \ |
$(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL) |
80 |
$(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \ |
$(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \ |
81 |
$(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis |
--output-file-path="$@" |
|
$(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMXML.dis |
|
|
|
|
|
html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac |
|
|
$(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis |
|
|
|
|
|
DOMMain.pm: core.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMCore.pm: core.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMXML.pm: core.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMHTML.pm: html.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMWebForms.pm: html.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@ |
|
82 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
83 |
|
|
84 |
boot: $(BOOT_GENERATED_FILES) |
.core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL) |
85 |
|
$(DAC2PM) $< \ |
86 |
|
--create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \ |
87 |
|
--create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \ |
88 |
|
--create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \ |
89 |
|
--create-perl-module="$(NS_MDOM)DOMXML DOMXML$(PM_SUFFIX)" \ |
90 |
|
--create-perl-module="$(NS_MDOM)DOMLS DOMLS$(PM_SUFFIX)" \ |
91 |
|
--create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)" |
92 |
|
$(PERL_CHK) DOMFeature$(PM_SUFFIX) |
93 |
|
$(PERL_CHK) DOMMain$(PM_SUFFIX) |
94 |
|
$(PERL_CHK) DOMCore$(PM_SUFFIX) |
95 |
|
$(PERL_CHK) DOMXML$(PM_SUFFIX) |
96 |
|
$(PERL_CHK) DOMLS$(PM_SUFFIX) |
97 |
|
$(PERL_CHK) GenericLS$(PM_SUFFIX) |
98 |
|
$(TOUCH) $@ |
99 |
|
|
100 |
boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE) |
$(DOM_LS_DIS_FILES:.dis=$(PM_SUFFIX)): ls$(DAC_SUFFIX) $(DAC2PM_PL) |
101 |
$(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis |
$(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \ |
|
|
|
|
DOMMetaImpl.pm: boot.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" \ |
|
102 |
--output-file-path="$@" |
--output-file-path="$@" |
103 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
104 |
|
|
105 |
# $(CORE_DAC_FILE) |
.ls$(PM_SUFFIX): ls$(DAC_SUFFIX) $(DAC2PM_PL) |
106 |
$(MANAKAI_LIB_DIR)manakai/all.dac: \ |
$(DAC2PM) $< \ |
107 |
$(MANAKAI_LIB_DIR)manakai/DISCore.dis \ |
--create-perl-module="$(NS_MDOM)SimpleLS SimpleLS$(PM_SUFFIX)" |
108 |
$(MANAKAI_LIB_DIR)manakai/DISRDF.dis \ |
$(PERL_CHK) SimpleLS$(PM_SUFFIX) |
109 |
$(MANAKAI_LIB_DIR)manakai/DISLang.dis \ |
$(TOUCH) $@ |
110 |
$(MANAKAI_LIB_DIR)manakai/DISIDL.dis \ |
|
111 |
$(MANAKAI_LIB_DIR)manakai/DISPerl.dis \ |
$(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL) |
112 |
$(MANAKAI_LIB_DIR)manakai/XML.dis \ |
$(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@ |
113 |
$(MANAKAI_LIB_DIR)manakai/DISMarkup.dis |
$(PERL_CHK) $@ |
114 |
$(CD) $(MANAKAI_LIB_DIR)manakai/ && \ |
|
115 |
$(MAKE) all.dac |
.html$(PM_SUFFIX): html$(DAC_SUFFIX) $(DAC2PM_PL) |
116 |
|
$(DAC2PM) $< \ |
117 |
# $(UTIL_DAC_FILE) |
--create-perl-module="$(NS_MDOM)DOMHTML DOMHTML$(PM_SUFFIX)" \ |
118 |
$(MANAKAI_LIB_DIR)Message/Util/all.dac: \ |
--create-perl-module="$(NS_MDOM)DOMWebForms DOMWebForms$(PM_SUFFIX)" |
119 |
DOMMetaImpl.dis DOMBoot.dis |
$(PERL_CHK) DOMHTML$(PM_SUFFIX) |
120 |
$(CD) $(MANAKAI_LIB_DIR)Message/Util/ && \ |
$(PERL_CHK) DOMWebForms$(PM_SUFFIX) |
121 |
$(MAKE) all.dac |
$(TOUCH) $@ |
122 |
|
|
123 |
|
feature-spec$(DAC_SUFFIX): feature$(DAC_SUFFIX) DOMFeature.dis $(DAC_PL) |
124 |
|
$(DAC)$@ --input-db-file-name="$<" DOMFeature.dis \ |
125 |
|
--for="$(NS_MANAKAIDOM)ForSpecLatest" |
126 |
|
|
127 |
|
# $(UTIL_CORE_DAC_FILE) |
128 |
|
$(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy |
129 |
|
$(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX) |
130 |
|
|
131 |
clean: |
dummy: |
|
$(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~ |
|
132 |
|
|
133 |
DOMEvents.pm: ev.cdis $(CDIS2PM_PL) |
clean: |
134 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(RM) $(GENERATED_FILES) |
135 |
--module-name=DOMEvents > $@ |
$(RM) .*.tmp *~ .*~ *.BAK .*.BAK |
136 |
$(PERL_CHK) $@ |
$(RM) .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX) |
|
|
|
|
DOMViews.pm: ev.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMViews > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMLS.pm: ls.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMLS > $@ |
|
|
$(PERL_CHK) $@ |
|
137 |
|
|
138 |
ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL) |
## $Date$ |
139 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
## License: Public Domain. |
|
--module-name=ManakaiDOMLS2003 > $@ |
|
|
$(PERL_CHK) $@ |
|