|
MANAKAI_ROOT_DIR = ../../../ |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
|
|
|
|
|
CD = cd |
|
|
MAKE = make |
|
1 |
RM = rm |
RM = rm |
2 |
PERL = perl |
RMALL = $(RM) -fv |
|
PERL_OPTIONS3 = -I$(MANAKAI_LIB_DIR) |
|
|
PERL_OPTIONS = $(PERL_OPTIONS3) |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS) |
|
|
PERLC = $(PERL) -c -w |
|
|
PERLC_OPTIONS3 = $(PERL_OPTIONS) |
|
|
PERLC_OPTIONS = $(PERLC_OPTIONS3) |
|
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS) |
|
|
|
|
|
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM. |
|
|
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
|
|
|
|
|
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
|
|
DAC = $(PERL_) $(DAC_PL) \ |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
|
|
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
|
|
--output-file-name= |
|
|
|
|
|
DAC2PM_OPTIONS3 = --enable-assert |
|
|
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
|
|
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
|
|
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) |
|
|
|
|
|
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) |
|
|
|
|
|
_DIS_FILES = \ |
|
|
DOMLS.dis ManakaiDOMLS2003.dis \ |
|
|
DOMEvents.dis DOMViews.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 = core.dac DOMMain.pm DOMCore.pm DOMXML.pm \ |
|
|
html.dac DOMHTML.pm DOMWebForms.pm |
|
|
BOOT_GENERATED_FILES = boot.dac DOMMetaImpl.pm |
|
|
|
|
|
all: $(GENERATED_FILES) |
|
|
|
|
|
core.dac: $(DIS_FILES_CORE) $(DAC_PL) $(CORE_DAC_FILE) \ |
|
|
$(MANAKAI_LIB_DIR)Message/Util/ManakaiNode.dis \ |
|
|
$(MANAKAI_LIB_DIR)Message/Util/Error/DOMException.dis |
|
|
$(DAC)$@ --input-db-file-name="$(CORE_DAC_FILE)" DOMXML.dis |
|
3 |
|
|
4 |
html.dac: $(DIS_FILES_HTML) $(DAC_PL) core.dac |
GENERATED_FILES = |
|
$(DAC)$@ --input-db-file-name="core.dac" DOMHTML.dis |
|
5 |
|
|
6 |
DOMMain.pm: core.dac $(DAC2PM_PL) |
all: |
|
$(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" > $@ |
|
|
$(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 |
|
|
$(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 |
|
7 |
|
|
8 |
clean: |
clean: |
9 |
$(RM) $(GENERATED_FILES) $(BOOT_GENERATED_FILES) .*.tmp *~ .*~ |
$(RMALL) $(GENERATED_FILES) .*.tmp *~ .*~ *.BAK .*.BAK |
|
|
|
|
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) $@ |
|
10 |
|
|
11 |
DOMLS.pm: ls.cdis $(CDIS2PM_PL) |
distclean: clean |
|
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
|
|
--module-name=DOMLS > $@ |
|
|
$(PERL_CHK) $@ |
|
12 |
|
|
13 |
ManakaiDOMLS2003.pm: ls.cdis $(CDIS2PM_PL) |
## $Date$ |
14 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)ManakaiDOMLatest" \ |
## License: Public Domain. |
|
--module-name=ManakaiDOMLS2003 > $@ |
|
|
$(PERL_CHK) $@ |
|