|
LS = ls |
|
|
MAKE = make |
|
|
RM = rm |
|
|
SED = sed |
|
|
XARGS = xargs |
|
|
|
|
1 |
MANAKAI_ROOT_DIR = ../../../ |
MANAKAI_ROOT_DIR = ../../../ |
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/ |
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
|
4 |
|
|
5 |
PERL = perl -I$(MANAKAI_LIB_DIR) |
DIS_SUFFIX = .dis |
6 |
PERL_CHK = $(PERL) -c -w |
DAEM_SUFFIX = .dafm |
7 |
|
DAFX_SUFFIX = .dafx |
8 |
|
PM_SUFFIX = .pm |
9 |
|
|
10 |
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
CD = cd |
11 |
DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR) \ |
MAKE = make |
12 |
-I=$(MANAKAI_LIB_DIR)Message/Util/ \ |
RM = rm |
13 |
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ |
PERL = perl |
14 |
CDIS2PM_OPTIONS = --enable-assert |
PERL_OPTIONS = |
15 |
## TODO: Official release should remove this option. |
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
16 |
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
17 |
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
PERLC = $(PERL) -c -w |
18 |
DIS2POD_PL = ../../../bin/dis2pm.pl |
PERLC_OPTIONS = |
19 |
DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only |
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
20 |
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
21 |
IDL2DIS_PL = idl2dis.pl |
TOUCH = touch |
|
IDL2DIS = $(PERL) $(IDL2DIS_PL) |
|
|
|
|
|
DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \ |
|
|
DOMLS.dis ManakaiDOMLS2003.dis \ |
|
|
DOMEvents.dis DOMViews.dis \ |
|
|
DOMHTML.dis DOMWebForms.dis \ |
|
|
DOMMetaImpl.dis |
|
|
|
|
|
GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \ |
|
|
DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \ |
|
|
DOMEvents.pm DOMViews.pm \ |
|
|
DOMHTML.pm DOMWebForms.pm \ |
|
|
meta.cdis DOMMetaImpl.dis |
|
|
GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) |
|
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\# |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
25 |
|
|
26 |
all: dom |
DIS_OPTIONS = |
27 |
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
28 |
dom: dom-latest |
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
29 |
dom-latest: $(GENERATED_FILES_DOMLATEST) |
--dis-file-suffix="$(DIS_SUFFIX)" \ |
30 |
|
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
31 |
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
32 |
|
|
33 |
|
DAF_OPTIONS = |
34 |
|
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
35 |
|
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
36 |
|
|
37 |
|
DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX) |
38 |
|
DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \ |
39 |
|
Tree$(DIS_SUFFIX) \ |
40 |
|
XDoctype$(DIS_SUFFIX) |
41 |
|
DOM_LS_DIS_FILES = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) \ |
42 |
|
ManakaiDOMLS2003$(DIS_SUFFIX) |
43 |
|
XP_DIS_FILES = XMLParser$(DIS_SUFFIX) |
44 |
|
DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis |
45 |
|
DIS_FILES = $(DOM_FEATURE_DIS_FILES) $(DOM_CORE_DIS_FILES) \ |
46 |
|
$(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) $(XP_DIS_FILES) |
47 |
|
DOT_CORE_DIS_FILES = \ |
48 |
|
$(DOM_FEATURE_DIS_FILES) \ |
49 |
|
$(DOM_CORE_DIS_FILES) |
50 |
|
|
51 |
|
PM_FILES = \ |
52 |
|
DOMFeature$(PM_SUFFIX) GenericLS$(PM_SUFFIX) \ |
53 |
|
DOMMain$(PM_SUFFIX) DOMCore$(PM_SUFFIX) Tree$(PM_SUFFIX) \ |
54 |
|
DOMXML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \ |
55 |
|
DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \ |
56 |
|
SimpleLS$(PM_SUFFIX) ManakaiDOMLS2003$(PM_SUFFIX) \ |
57 |
|
DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX) |
58 |
|
|
59 |
|
GENERATED_FILES = $(PM_FILES) |
60 |
|
|
61 |
|
all: .core$(PM_SUFFIX) $(PM_FILES) |
62 |
|
|
63 |
|
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
64 |
|
$(DAF) --create-perl-module="$(NS_MDOM)$* $@" |
65 |
|
$(PERL_CHK) $@ |
66 |
|
|
67 |
|
.core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL) |
68 |
|
$(DAF) \ |
69 |
|
--create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \ |
70 |
|
--create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)" \ |
71 |
|
--create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \ |
72 |
|
--create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \ |
73 |
|
--create-perl-module="$(NS_MDOM)Tree Tree$(PM_SUFFIX)" \ |
74 |
|
--create-perl-module="$(NS_MDOM)DOMXML DOMXML$(PM_SUFFIX)" \ |
75 |
|
--create-perl-module="$(NS_MDOM)XDoctype XDoctype$(PM_SUFFIX)" |
76 |
|
$(PERL_CHK) DOMFeature$(PM_SUFFIX) |
77 |
|
$(PERL_CHK) GenericLS$(PM_SUFFIX) |
78 |
|
$(PERL_CHK) DOMMain$(PM_SUFFIX) |
79 |
|
$(PERL_CHK) DOMCore$(PM_SUFFIX) |
80 |
|
$(PERL_CHK) Tree$(PM_SUFFIX) |
81 |
|
$(PERL_CHK) DOMXML$(PM_SUFFIX) |
82 |
|
$(PERL_CHK) XDoctype$(PM_SUFFIX) |
83 |
|
$(TOUCH) $@ |
84 |
|
## NOTE: When you modify this rule, update |../Util/Makefile|, too. |
85 |
|
|
|
meta.cdis: DOMBoot.dis DOMMetaImpl.dis $(DISC_PL) |
|
|
$(DISC) DOMBoot.dis --output-file-name=.$@.1.tmp \ |
|
|
--for="$(NS_MANAKAIDOM)ManakaiDOM1" |
|
|
$(DISC) DOMMetaImpl.dis --input-cdis-file-name=.$@.1.tmp \ |
|
|
--output-file-name=$@ |
|
|
$(RM) .$@.1.tmp |
|
|
|
|
|
core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL) |
|
|
$(DISC) DOMCore.dis --output-file-name=$@ |
|
|
|
|
|
ev.cdis: core.cdis DOMEvents.dis DOMViews.dis $(DISC_PL) |
|
|
$(DISC) DOMEvents.dis --input-cdis-file-name=$< \ |
|
|
--output-file-name=.$@.1.tmp |
|
|
$(DISC) DOMViews.dis --input-cdis-file-name=.$@.1.tmp \ |
|
|
--output-file-name=$@ |
|
|
$(RM) .$@.1.tmp |
|
|
|
|
|
ls.cdis: ev.cdis DOMLS.dis ManakaiDOMLS2003.dis $(DISC_PL) |
|
|
$(DISC) DOMLS.dis --input-cdis-file-name=$< \ |
|
|
--output-file-name=.$@.1.tmp |
|
|
$(DISC) ManakaiDOMLS2003.dis --input-cdis-file-name=.$@.1.tmp \ |
|
|
--output-file-name=$@ |
|
|
$(RM) .$@.1.tmp |
|
|
|
|
|
html.cdis: ls.cdis DOMHTML.dis DOMWebForms.dis $(DISC_PL) |
|
|
$(DISC) DOMHTML.dis --input-cdis-file-name=$< \ |
|
|
--output-file-name=.$@.1.tmp |
|
|
$(DISC) DOMWebForms.dis --input-cdis-file-name=.$@.1.tmp \ |
|
|
--output-file-name=$@ |
|
|
$(RM) .$@.1.tmp |
|
|
|
|
|
DOMMetaImpl.pm: meta.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMMetaImpl > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMMain.pm: core.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \ |
|
|
--module-name=DOMMain --nooutput-module-version > $@ |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMMain >> $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMCore.pm: core.cdis DOMMain.pm $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMCore > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMXML.pm: core.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMXML > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMEvents.pm: ev.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMEvents > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
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) $@ |
|
|
|
|
|
ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=ManakaiDOMLS2003 > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMHTML.pm: html.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMHTML > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMWebForms.pm: html.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMWebForms > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
86 |
clean: |
clean: |
87 |
$(RM) $(GENERATED_FILES) .*.tmp |
$(RM) $(GENERATED_FILES) |
88 |
|
$(RM) .*.tmp *~ .*~ *.BAK .*.BAK |
89 |
|
$(RM) .core$(PM_SUFFIX) |
90 |
|
|
91 |
|
## $Date$ |
92 |
|
## License: Public Domain. |