28 |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
29 |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
30 |
|
|
31 |
CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all.dac |
UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core.dac |
|
UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/all.dac |
|
32 |
|
|
33 |
DIS_FILES_CORE = DOMMain.dis DOMCore.dis DOMXML.dis DOMLS.dis DOMFeature.dis |
DOM_CORE_DIS_FILES = DOMFeature.dis DOMMain.dis DOMCore.dis DOMXML.dis DOMLS.dis |
34 |
DIS_FILES_HTML = DOMHTML.dis DOMWebForms.dis |
DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis |
35 |
|
DIS_FILES = $(DOM_CORE_DIS_FILES) $(DOM_HTML_DIS_FILES) |
|
DIS_FILES = DOMMetaImpl.dis $(DIS_FILES_CORE) $(DIS_FILES_HTML) |
|
36 |
|
|
37 |
_DIS_FILES = \ |
_DIS_FILES = \ |
38 |
ManakaiDOMLS2003.dis \ |
ManakaiDOMLS2003.dis \ |
39 |
DOMEvents.dis DOMViews.dis |
DOMEvents.dis DOMViews.dis |
40 |
|
|
41 |
GENERATED_FILES = core.dac DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm \ |
GENERATED_FILES = \ |
42 |
html.dac DOMHTML.pm DOMWebForms.pm DOMFeature.pm |
core.dac DOMFeature.pm DOMMain.pm DOMCore.pm DOMXML.pm DOMLS.pm \ |
43 |
BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm |
html.dac DOMHTML.pm DOMWebForms.pm |
44 |
|
|
45 |
all: $(GENERATED_FILES) |
all: $(GENERATED_FILES) |
46 |
|
|
47 |
core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \ |
core.dac: $(UTIL_CORE_DAC_FILE) $(DOM_CORE_DIS_FILES) $(DAC_PL) |
48 |
$(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \ |
$(DAC)$@ --input-db-file-name="$<" DOMLS.dis |
|
$(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis |
|
|
$(CD) $(MANAKAI_LIB_DIR) && $(MAKE) ../lib/Message/DOM/DOMLS.pm |
|
|
$(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMLS.dis |
|
|
|
|
|
html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac |
|
|
$(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis |
|
|
|
|
|
DOMFeature.pm: core.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMFeature" --output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
49 |
|
|
50 |
DOMMain.pm: core.dac $(DAC2PM_PL) |
html.dac: core.dac $(DOM_HTML_DIS_FILES) $(DAC_PL) |
51 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMMain" --output-file-path="$@" |
$(DAC)$@ --input-db-file-name="$<" DOMHTML.dis |
|
$(PERL_CHK) $@ |
|
52 |
|
|
53 |
DOMCore.pm: core.dac $(DAC2PM_PL) |
$(DOM_CORE_DIS_FILES:.dis=.pm): core.dac $(DAC2PM_PL) |
54 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMCore" --output-file-path="$@" |
$(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:.pm=)" --output-file-path="$@" |
55 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
56 |
|
|
57 |
DOMXML.pm: core.dac $(DAC2PM_PL) |
$(DOM_HTML_DIS_FILES:.dis=.pm): html.dac $(DAC2PM_PL) |
58 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMXML" --output-file-path="$@" |
$(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:.pm=)" > $@ |
59 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
60 |
|
|
61 |
DOMLS.pm: core.dac $(DAC2PM_PL) |
# $(UTIL_CORE_DAC_FILE) |
62 |
$(CD) $(MANAKAI_LIB_DIR) && $(MAKE) ../lib/Message/DOM/DOMLS.pm |
$(MANAKAI_LIB_DIR)Message/Util/core.dac: dummy |
63 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMLS" --output-file-path="$@" |
$(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core.dac |
|
$(PERL_CHK) $@ |
|
64 |
|
|
65 |
DOMHTML.pm: html.dac $(DAC2PM_PL) |
dummy: |
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMHTML" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DOMWebForms.pm: html.dac $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)DOMWebForms" > $@ |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
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 \ |
|
|
$(MANAKAI_LIB_DIR)manakai/NaturalLanguage.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_LIB_DIR)Message/Util/ && \ |
|
|
$(MAKE) all.dac |
|
66 |
|
|
67 |
clean: |
clean: |
68 |
$(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~ |
$(RM) $(GENERATED_FILES) .*.tmp *~ .*~ *.BAK .*.BAK |
69 |
|
|