3 |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
5 |
DIS_SUFFIX = .dis |
DIS_SUFFIX = .dis |
6 |
DAC_SUFFIX = .dae |
DAEM_SUFFIX = .dafm |
7 |
DAEM_SUFFIX = .daem |
DAFX_SUFFIX = .dafx |
8 |
PM_SUFFIX = .pm |
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 |
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. |
28 |
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
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 |
--dis-file-suffix="$(DIS_SUFFIX)" \ |
--dis-file-suffix="$(DIS_SUFFIX)" \ |
31 |
--daem-file-suffix="$(DAEM_SUFFIX)" |
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
32 |
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
33 |
|
|
34 |
DAC_OPTIONS = |
DAF_OPTIONS = |
35 |
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
36 |
DAC = $(PERL_) $(DAC_PL) $(DAC_OPTIONS) $(DIS_OPTIONS_ALL) \ |
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
37 |
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
|
38 |
--output-file-name= |
DOM_FEATURE_DIS_FILES = DOMFeature$(DIS_SUFFIX) GenericLS$(DIS_SUFFIX) |
39 |
|
DOM_CORE_DIS_FILES = DOMMain.dis DOMCore.dis \ |
40 |
DAC2PM_OPTIONS3 = --enable-assert |
TreeCore$(DIS_SUFFIX) Document$(DIS_SUFFIX) \ |
41 |
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
Element$(DIS_SUFFIX) XML$(DIS_SUFFIX) XDoctype$(DIS_SUFFIX) |
42 |
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
DOM_LS_DIS_FILES = SimpleLS$(DIS_SUFFIX) DOMLS$(DIS_SUFFIX) |
43 |
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) $(DIS_OPTIONS_ALL) |
XP_DIS_FILES = XMLParser$(DIS_SUFFIX) |
|
|
|
|
UTIL_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX) |
|
|
|
|
|
DOM_CORE_DIS_FILES = DOMFeature.dis DOMMain.dis DOMCore.dis DOMXML.dis \ |
|
|
DOMLS.dis GenericLS.dis |
|
|
DOM_LS_DIS_FILES = SimpleLS.dis |
|
44 |
DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis |
DOM_HTML_DIS_FILES = DOMHTML.dis DOMWebForms.dis |
45 |
DIS_FILES = $(DOM_CORE_DIS_FILES) $(DOM_LS_DIS_FILES) $(DOM_HTML_DIS_FILES) |
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) \ |
54 |
|
TreeCore$(PM_SUFFIX) Document$(PM_SUFFIX) Element$(PM_SUFFIX) \ |
55 |
|
XML$(PM_SUFFIX) XDoctype$(PM_SUFFIX) \ |
56 |
|
DOMLS$(PM_SUFFIX) XMLParser$(PM_SUFFIX) \ |
57 |
|
SimpleLS$(PM_SUFFIX) \ |
58 |
|
DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX) |
59 |
|
|
60 |
_DIS_FILES = \ |
GENERATED_FILES = $(PM_FILES) |
61 |
ManakaiDOMLS2003.dis \ |
|
62 |
DOMEvents.dis DOMViews.dis |
all: .core$(PM_SUFFIX) $(PM_FILES) |
63 |
|
|
64 |
GENERATED_FILES = \ |
$(PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
65 |
core$(DAC_SUFFIX) DOMFeature$(PM_SUFFIX) DOMMain$(PM_SUFFIX) \ |
$(DAF) --create-perl-module="$(NS_MDOM)$* $@" |
|
DOMCore$(PM_SUFFIX) DOMXML$(PM_SUFFIX) DOMLS$(PM_SUFFIX) \ |
|
|
GenericLS$(PM_SUFFIX) \ |
|
|
ls$(DAC_SUFFIX) SimpleLS$(PM_SUFFIX) \ |
|
|
html$(DAC_SUFFIX) DOMHTML$(PM_SUFFIX) DOMWebForms$(PM_SUFFIX) |
|
|
GENERATED_DAC_FILES = core$(DAC_SUFFIX) ls$(DAC_SUFFIX) html$(DAC_SUFFIX) |
|
|
|
|
|
all: .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX) $(GENERATED_DAC_FILES) |
|
|
|
|
|
core$(DAC_SUFFIX): $(UTIL_CORE_DAC_FILE) $(DOM_CORE_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@.tmp.1 --input-db-file-name="$<" DOMLS.dis |
|
|
$(DAC)$@ --input-db-file-name="$@.tmp.1" GenericLS.dis |
|
|
$(RM) $@.tmp.1 |
|
|
|
|
|
ls$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_LS_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@ --input-db-file-name="$<" SimpleLS.dis |
|
|
|
|
|
html$(DAC_SUFFIX): core$(DAC_SUFFIX) $(DOM_HTML_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@ --input-db-file-name="$<" DOMHTML.dis |
|
|
|
|
|
$(DOM_CORE_DIS_FILES:.dis=$(PM_SUFFIX)): core$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \ |
|
|
--output-file-path="$@" |
|
66 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
67 |
|
|
68 |
.core$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL) |
.core$(PM_SUFFIX): $(DOT_CORE_DIS_FILES) $(DAF_PL) |
69 |
$(DAC2PM) $< \ |
$(DAF) \ |
70 |
--create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_MDOM)DOMFeature DOMFeature$(PM_SUFFIX)" \ |
71 |
|
--create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)" \ |
72 |
--create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_MDOM)DOMMain DOMMain$(PM_SUFFIX)" \ |
73 |
--create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_MDOM)DOMCore DOMCore$(PM_SUFFIX)" \ |
74 |
--create-perl-module="$(NS_MDOM)DOMXML DOMXML$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_MDOM)TreeCore TreeCore$(PM_SUFFIX)" \ |
75 |
--create-perl-module="$(NS_MDOM)DOMLS DOMLS$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_MDOM)Document Document$(PM_SUFFIX)" \ |
76 |
--create-perl-module="$(NS_MDOM)GenericLS GenericLS$(PM_SUFFIX)" |
--create-perl-module="$(NS_MDOM)Element Element$(PM_SUFFIX)" \ |
77 |
|
--create-perl-module="$(NS_MDOM)XML XML$(PM_SUFFIX)" \ |
78 |
|
--create-perl-module="$(NS_MDOM)XDoctype XDoctype$(PM_SUFFIX)" |
79 |
$(PERL_CHK) DOMFeature$(PM_SUFFIX) |
$(PERL_CHK) DOMFeature$(PM_SUFFIX) |
80 |
|
$(PERL_CHK) GenericLS$(PM_SUFFIX) |
81 |
$(PERL_CHK) DOMMain$(PM_SUFFIX) |
$(PERL_CHK) DOMMain$(PM_SUFFIX) |
82 |
$(PERL_CHK) DOMCore$(PM_SUFFIX) |
$(PERL_CHK) DOMCore$(PM_SUFFIX) |
83 |
$(PERL_CHK) DOMXML$(PM_SUFFIX) |
$(PERL_CHK) TreeCore$(PM_SUFFIX) |
84 |
$(PERL_CHK) DOMLS$(PM_SUFFIX) |
$(PERL_CHK) Document$(PM_SUFFIX) |
85 |
$(PERL_CHK) GenericLS$(PM_SUFFIX) |
$(PERL_CHK) Element$(PM_SUFFIX) |
86 |
$(TOUCH) $@ |
$(PERL_CHK) XML$(PM_SUFFIX) |
87 |
|
$(PERL_CHK) XDoctype$(PM_SUFFIX) |
|
$(DOM_LS_DIS_FILES:.dis=$(PM_SUFFIX)): ls$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
.ls$(PM_SUFFIX): ls$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--create-perl-module="$(NS_MDOM)SimpleLS SimpleLS$(PM_SUFFIX)" |
|
|
$(PERL_CHK) SimpleLS$(PM_SUFFIX) |
|
88 |
$(TOUCH) $@ |
$(TOUCH) $@ |
89 |
|
## NOTE: When you modify this rule, update |../Util/Makefile|, too. |
90 |
|
|
91 |
$(DOM_HTML_DIS_FILES:.dis=$(PM_SUFFIX)): html$(DAC_SUFFIX) $(DAC2PM_PL) |
clean: |
92 |
$(DAC2PM) $< --module-uri="$(NS_MDOM)$(@:$(PM_SUFFIX)=)" > $@ |
$(RMALL) $(GENERATED_FILES) |
93 |
$(PERL_CHK) $@ |
$(RMALL) .*.tmp *~ .*~ *.BAK .*.BAK |
94 |
|
$(RMALL) .core$(PM_SUFFIX) |
|
.html$(PM_SUFFIX): html$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--create-perl-module="$(NS_MDOM)DOMHTML DOMHTML$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_MDOM)DOMWebForms DOMWebForms$(PM_SUFFIX)" |
|
|
$(PERL_CHK) DOMHTML$(PM_SUFFIX) |
|
|
$(PERL_CHK) DOMWebForms$(PM_SUFFIX) |
|
|
$(TOUCH) $@ |
|
|
|
|
|
# $(UTIL_CORE_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX): dummy |
|
|
$(CD) $(MANAKAI_LIB_DIR)Message/Util/ && $(MAKE) core$(DAC_SUFFIX) |
|
95 |
|
|
96 |
dummy: |
clean-db: |
97 |
|
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
98 |
|
|
99 |
clean: |
distclean: clean clean-db |
|
$(RM) $(GENERATED_FILES) |
|
|
$(RM) .*.tmp *~ .*~ *.BAK .*.BAK |
|
|
$(RM) .core$(PM_SUFFIX) .ls$(PM_SUFFIX) .html$(PM_SUFFIX) |
|
100 |
|
|
101 |
## $Date$ |
## $Date$ |
102 |
## License: Public Domain. |
## License: Public Domain. |