|
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) |
CD = cd |
6 |
PERL_CHK = $(PERL) -c -w |
MAKE = make |
7 |
|
RM = rm |
8 |
|
PERL = perl |
9 |
|
PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR) |
10 |
|
PERL_OPTIONS = $(PERL_OPTIONS3) |
11 |
|
PERL_ = $(PERL) $(PERL_OPTIONS) |
12 |
|
PERLC = $(PERL) -c -w |
13 |
|
PERLC_OPTIONS3 = $(PERL_OPTIONS) |
14 |
|
PERLC_OPTIONS = $(PERLC_OPTIONS3) |
15 |
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
16 |
|
|
17 |
|
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM. |
18 |
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
19 |
|
|
20 |
|
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
21 |
|
DAC = $(PERL_) $(DAC_PL) \ |
22 |
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
23 |
|
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
24 |
|
--output-file-name= |
25 |
|
|
26 |
|
DAC2PM_OPTIONS3 = --enable-assert |
27 |
|
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
28 |
|
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
29 |
|
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
30 |
|
|
31 |
|
CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac |
32 |
|
UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac |
33 |
|
|
34 |
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis |
35 |
DISC = $(PERL) $(DISC_PL) -I=$(MANAKAI_LIB_MANAKAI_DIR) |
DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis |
|
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
|
|
CDIS2PM = $(PERL) $(CDIS2PM_PL) |
|
|
DIS2POD_PL = ../../../bin/dis2pm.pl |
|
|
DIS2POD = $(PERL) $(DIS2POD_PL) --output-pod=only |
|
36 |
|
|
37 |
IDL2DIS_PL = idl2dis.pl |
DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML) |
|
IDL2DIS = $(PERL) $(IDL2DIS_PL) |
|
38 |
|
|
39 |
DIS_FILES = DOMMain.dis DOMCore.dis DOMXML.dis \ |
_DIS_FILES = \ |
40 |
DOMLS.dis ManakaiDOMLS2003.dis \ |
DOMLS.dis ManakaiDOMLS2003.dis \ |
41 |
DOMEvents.dis |
DOMEvents.dis DOMViews.dis |
42 |
|
|
43 |
GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis \ |
GENERATED_FILES_DOMLATEST = core.cdis ev.cdis ls.cdis html.cdis \ |
44 |
DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \ |
DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm ManakaiDOMLS2003.pm \ |
45 |
DOMEvents.pm |
DOMEvents.pm DOMViews.pm \ |
46 |
GENERATED_FILES = $(MAIN_CDIS_FILE) $(GENERATED_FILES_DOMLATEST) |
DOMHTML.pm DOMWebForms.pm \ |
47 |
|
meta.cdis DOMMetaImpl.dis |
48 |
|
|
49 |
|
GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm \ |
50 |
|
html.dac DOMHTML.pm DOMWebForms.pm |
51 |
|
BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm |
52 |
|
|
53 |
|
all: $(GENERATED_FILES) |
54 |
|
|
55 |
|
core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \ |
56 |
|
$(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \ |
57 |
|
$(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis |
58 |
|
$(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMXML.dis |
59 |
|
|
60 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac |
61 |
|
$(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis |
62 |
|
|
63 |
all: dom |
DOMMain.pm: core.dac $(DAC2PM_PL) |
64 |
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" > $@ |
65 |
|
$(PERL_CHK) $@ |
66 |
|
|
67 |
dom: dom-latest |
DOMCore.pm: core.dac $(DAC2PM_PL) |
68 |
dom-latest: DOMMain.pm-chk DOMCore.pm-chk \ |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" > $@ |
69 |
$(GENERATED_FILES_DOMLATEST) |
$(PERL_CHK) $@ |
|
|
|
|
core.cdis: DOMCore.dis DOMMain.dis DOMXML.dis $(DISC_PL) |
|
|
$(DISC) DOMCore.dis --output-file-name=$@ |
|
|
|
|
|
ev.cdis: core.cdis DOMEvents.dis $(DISC_PL) |
|
|
$(DISC) DOMEvents.dis --input-cdis-file-name=$< \ |
|
|
--output-file-name=$@ |
|
|
|
|
|
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 |
|
|
|
|
|
DOMMain.pm: core.cdis $(CDIS2PM_PL) |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMCommon" \ |
|
|
--module-name=DOMMain > $@ |
|
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMMain >> $@ |
|
70 |
|
|
71 |
DOMMain.pm-chk: DOMMain.pm |
DOMXML.pm: core.dac $(DAC2PM_PL) |
72 |
$(PERL_CHK) $< |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" > $@ |
73 |
|
$(PERL_CHK) $@ |
74 |
|
|
75 |
DOMCore.pm: core.cdis $(CDIS2PM_PL) |
DOMHTML.pm: html.dac $(DAC2PM_PL) |
76 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@ |
77 |
--module-name=DOMCore > $@ |
$(PERL_CHK) $@ |
78 |
|
|
79 |
|
DOMWebForms.pm: html.dac $(DAC2PM_PL) |
80 |
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@ |
81 |
|
$(PERL_CHK) $@ |
82 |
|
|
83 |
DOMCore.pm-chk: DOMCore.pm |
boot: $(BOOT_GENERATED_FILES) |
|
$(PERL_CHK) $< |
|
84 |
|
|
85 |
DOMXML.pm: core.cdis $(CDIS2PM_PL) |
boot.dac: DOMMetaImpl.dis DOMBoot.dis $(DAC_PL) $(UTIL_DAC_FILE) |
86 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(DAC)$@ --input-db-file-name="$(UTIL_DAC_FILE)" DOMMetaImpl.dis |
87 |
--module-name=DOMXML > $@ |
|
88 |
|
DOMMetaImpl.pm: boot.dac $(DAC2PM_PL) |
89 |
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMetaImpl" \ |
90 |
|
--output-file-path="$@" |
91 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
92 |
|
|
93 |
|
# $(CORE_DAC_FILE) |
94 |
|
$(MANAKAI_LIB_DIR)manakai/all.dac: \ |
95 |
|
$(MANAKAI_LIB_DIR)manakai/DISCore.dis \ |
96 |
|
$(MANAKAI_LIB_DIR)manakai/DISRDF.dis \ |
97 |
|
$(MANAKAI_LIB_DIR)manakai/DISLang.dis \ |
98 |
|
$(MANAKAI_LIB_DIR)manakai/DISIDL.dis \ |
99 |
|
$(MANAKAI_LIB_DIR)manakai/DISPerl.dis \ |
100 |
|
$(MANAKAI_LIB_DIR)manakai/XML.dis \ |
101 |
|
$(MANAKAI_LIB_DIR)manakai/DISMarkup.dis |
102 |
|
$(CD) $(MANAKAI_LIB_DIR)manakai/ && \ |
103 |
|
$(MAKE) all.dac |
104 |
|
|
105 |
|
# $(UTIL_DAC_FILE) |
106 |
|
$(MANAKAI_LIB_DIR)Message/Util/all.dac: \ |
107 |
|
DOMMetaImpl.dis DOMBoot.dis |
108 |
|
$(CD) $(MANAKAI_ROOT_DIR)Message/Util/ && \ |
109 |
|
$(MAKE) all.dac |
110 |
|
|
111 |
|
clean: |
112 |
|
$(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~ |
113 |
|
|
114 |
DOMEvents.pm: ev.cdis $(CDIS2PM_PL) |
DOMEvents.pm: ev.cdis $(CDIS2PM_PL) |
115 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
116 |
--module-name=DOMEvents > $@ |
--module-name=DOMEvents > $@ |
117 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
118 |
|
|
119 |
|
DOMViews.pm: ev.cdis $(CDIS2PM_PL) |
120 |
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
121 |
|
--module-name=DOMViews > $@ |
122 |
|
$(PERL_CHK) $@ |
123 |
|
|
124 |
DOMLS.pm: ls.cdis $(CDIS2PM_PL) |
DOMLS.pm: ls.cdis $(CDIS2PM_PL) |
125 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
126 |
--module-name=DOMLS > $@ |
--module-name=DOMLS > $@ |
130 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
131 |
--module-name=ManakaiDOMLS2003 > $@ |
--module-name=ManakaiDOMLS2003 > $@ |
132 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
|
|
|
|
clean: |
|
|
$(RM) $(GENERATED_FILES) .*.tmp |
|
|
|
|