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 |
|
DAEM_SUFFIX = .dafm |
7 |
|
DAFX_SUFFIX = .dafx |
8 |
|
PM_SUFFIX = .pm |
9 |
|
|
10 |
CD = cd |
CD = cd |
11 |
MAKE = make |
MAKE = make |
12 |
RM = rm |
RM = rm |
13 |
|
RMALL = $(RM) -fv |
14 |
PERL = perl |
PERL = perl |
15 |
PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR) |
PERL_OPTIONS = |
16 |
PERL_OPTIONS = $(PERL_OPTIONS3) |
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
17 |
PERL_ = $(PERL) $(PERL_OPTIONS) |
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
18 |
PERLC = $(PERL) -c -w |
PERLC = $(PERL) -c -w |
19 |
PERLC_OPTIONS3 = $(PERL_OPTIONS) |
PERLC_OPTIONS = |
20 |
PERLC_OPTIONS = $(PERLC_OPTIONS3) |
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
21 |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
22 |
|
TOUCH = touch |
23 |
|
|
24 |
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. |
25 |
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\# |
26 |
|
|
27 |
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
DIS_OPTIONS = |
28 |
DAC = $(PERL_) $(DAC_PL) \ |
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
29 |
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
30 |
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
--dis-file-suffix="$(DIS_SUFFIX)" \ |
31 |
--output-file-name= |
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
32 |
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
33 |
DAC2PM_OPTIONS3 = --enable-assert |
|
34 |
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
DAF_OPTIONS = |
35 |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
36 |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
37 |
|
|
38 |
CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac |
DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX) |
39 |
UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac |
DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis \ |
40 |
|
TreeCore$(DIS_SUFFIX) Document$(DIS_SUFFIX) \ |
41 |
DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis |
Element$(DIS_SUFFIX) XML$(DIS_SUFFIX) XDoctype$(DIS_SUFFIX) |
42 |
DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis |
DOM_LS_DIS_FILES = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) |
43 |
|
XP_DIS_FILES = XMLParser$(DIS_SUFFIX) |
44 |
DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML) |
DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis |
45 |
|
DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \ |
46 |
_DIS_FILES = \ |
$(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES) |
47 |
DOMLS.dis ManakaiDOMLS2003.dis \ |
DOT_CORE_DIS_FILES = \ |
48 |
DOMEvents.dis DOMViews.dis |
$(DOM_FEATURE_DIS_FILES) \ |
49 |
|
$(DOM_CORE_DIS_FILES) |
50 |
GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \ |
|
51 |
DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \ |
PM_FILES = \ |
52 |
DOMEvents.pm DOMViews.pm \ |
DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \ |
53 |
DOMHTML.pm DOMWebForms.pm \ |
DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) \ |
54 |
meta.cdis DOMMetaImpl.dis |
TreeCore$(PM_SUFFIX) Document$(PM_SUFFIX) Element$(PM_SUFFIX) \ |
55 |
|
XML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \ |
56 |
GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm \ |
DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \ |
57 |
html.dac DOMHTML.pm DOMWebForms.pm |
SimpleLS$(PM_SUFFIX) \ |
58 |
BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm |
DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX) |
59 |
|
|
60 |
all: $(GENERATED_FILES) |
GENERATED_FILES = $(PM_FILES) |
61 |
|
|
62 |
core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \ |
all: .core$(PM_SUFFIX) $(PM_FILES) |
63 |
$(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \ |
|
64 |
$(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis |
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
65 |
$(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMXML.dis |
$(DAF) --create-perl-module="$(NS_MDOM)$* $@" |
66 |
|
$(PERL_CHK) $@ |
67 |
html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac |
|
68 |
$(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis |
.core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL) |
69 |
|
$(DAF) \ |
70 |
DOMMain.pm: core.dac $(DAC2PM_PL) |
--create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \ |
71 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@ |
--create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)" \ |
72 |
$(PERL_CHK) $@ |
--create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \ |
73 |
|
--create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \ |
74 |
DOMCore.pm: core.dac $(DAC2PM_PL) |
--create-perl-module="$(NS_MDOM)TreeCore TreeCore$(PM_SUFFIX)" \ |
75 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@ |
--create-perl-module="$(NS_MDOM)Document Document$(PM_SUFFIX)" \ |
76 |
$(PERL_CHK) $@ |
--create-perl-module="$(NS_MDOM)Element Element$(PM_SUFFIX)" \ |
77 |
|
--create-perl-module="$(NS_MDOM)XML XML$(PM_SUFFIX)" \ |
78 |
DOMXML.pm: core.dac $(DAC2PM_PL) |
--create-perl-module="$(NS_MDOM)XDoctype XDoctype$(PM_SUFFIX)" |
79 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@ |
$(PERL_CHK) DOMFeature$(PM_SUFFIX) |
80 |
$(PERL_CHK) $@ |
$(PERL_CHK) GenericLS$(PM_SUFFIX) |
81 |
|
$(PERL_CHK) DOMMain$(PM_SUFFIX) |
82 |
DOMHTML.pm: html.dac $(DAC2PM_PL) |
$(PERL_CHK) DOMCore$(PM_SUFFIX) |
83 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@ |
$(PERL_CHK) TreeCore$(PM_SUFFIX) |
84 |
$(PERL_CHK) $@ |
$(PERL_CHK) Document$(PM_SUFFIX) |
85 |
|
$(PERL_CHK) Element$(PM_SUFFIX) |
86 |
DOMWebForms.pm: html.dac $(DAC2PM_PL) |
$(PERL_CHK) XML$(PM_SUFFIX) |
87 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@ |
$(PERL_CHK) XDoctype$(PM_SUFFIX) |
88 |
$(PERL_CHK) $@ |
$(TOUCH) $@ |
89 |
|
## NOTE: When you modify this rule, update |../Util/Makefile|, too. |
|
boot: $(BOOT_GENERATED_FILES) |
|
|
|
|
|
boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE) |
|
|
$(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis |
|
|
|
|
|
DOMMetaImpl.pm: boot.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
# $(CORE_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)manakai/all.dac: \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISCore.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISRDF.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISLang.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISIDL.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISPerl.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/XML.dis \ |
|
|
$(MANAKAI_LIB_DIR)manakai/DISMarkup.dis |
|
|
$(CD) $(MANAKAI_LIB_DIR)manakai/ && \ |
|
|
$(MAKE) all.dac |
|
|
|
|
|
# $(UTIL_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)Message/Util/all.dac: \ |
|
|
DOMMetaImpl.dis DOMBoot.dis |
|
|
$(CD) $(MANAKAI_ROOT_DIR)Message/Util/ && \ |
|
|
$(MAKE) all.dac |
|
90 |
|
|
91 |
clean: |
clean: |
92 |
$(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~ |
$(RMALL) $(GENERATED_FILES) |
93 |
|
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
94 |
|
$(RMALL) .core$(PM_SUFFIX) |
95 |
|
|
96 |
DOMEvents.pm: ev.cdis $(CDIS2PM_PL) |
clean-db: |
97 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
|
--module-name=DOMEvents > $@ |
|
|
$(PERL_CHK) $@ |
|
98 |
|
|
99 |
DOMViews.pm: ev.cdis $(CDIS2PM_PL) |
distclean: clean clean-db |
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMViews > $@ |
|
|
$(PERL_CHK) $@ |
|
100 |
|
|
101 |
DOMLS.pm: ls.cdis $(CDIS2PM_PL) |
## $Date$ |
102 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
## License: Public Domain. |
|
--module-name=DOMLS > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=ManakaiDOMLS2003 > $@ |
|
|
$(PERL_CHK) $@ |
|