4 |
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
5 |
|
|
6 |
DIS_SUFFIX = .dis |
DIS_SUFFIX = .dis |
7 |
DAC_SUFFIX = .dae |
DAEM_SUFFIX = .dafm |
|
DAEM_SUFFIX = .daem |
|
8 |
DAFX_SUFFIX = .dafx |
DAFX_SUFFIX = .dafx |
9 |
PM_SUFFIX = .pm |
PM_SUFFIX = .pm |
10 |
|
|
37 |
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
38 |
--dafx-file-suffix="$(DAFX_SUFFIX)" |
--dafx-file-suffix="$(DAFX_SUFFIX)" |
39 |
|
|
|
DAC_OPTIONS = |
|
|
DAC_PL = $(MANAKAI_BIN_DIR)dac.pl |
|
|
DAC = $(PERL_) $(DAC_PL) $(DAC_OPTIONS) $(DIS_OPTIONS_ALL) \ |
|
|
--db-base-directory-path="$(MANAKAI_ROOT_DIR)" \ |
|
|
--output-file-name= |
|
|
|
|
40 |
DAF_OPTIONS = |
DAF_OPTIONS = |
41 |
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
42 |
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
43 |
|
|
|
DAC2PM_OPTIONS3 = --enable-assert |
|
|
DAC2PM_OPTIONS = $(DAC2PM_OPTIONS3) |
|
|
DAC2PM_PL = $(MANAKAI_BIN_DIR)dac2pm.pl |
|
|
DAC2PM = $(PERL_) $(DAC2PM_PL) $(DAC2PM_OPTIONS) $(DIS_OPTIONS_ALL) |
|
|
|
|
|
CORE_DAC_FILE = $(MANAKAI_LIB_DIR)manakai/all$(DAC_SUFFIX) |
|
|
DOM_CORE_DAC_FILE = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX) |
|
|
SWCFG_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Markup/all$(DAC_SUFFIX) |
|
|
|
|
44 |
UTIL_CORE_DIS_FILES = ManakaiNode.dis Error/DOMException.dis Error/Core.dis \ |
UTIL_CORE_DIS_FILES = ManakaiNode.dis Error/DOMException.dis Error/Core.dis \ |
45 |
Formatter/Muf2003$(DIS_SUFFIX) |
Formatter/Muf2003$(DIS_SUFFIX) |
46 |
UTIL_TEST_DIS_FILES = ManakaiNodeTest$(DIS_SUFFIX) |
UTIL_TEST_DIS_FILES = ManakaiNodeTest$(DIS_SUFFIX) |
58 |
$(DIS_DOC_DIS_FILES) $(DIS_DUMP_DIS_FILES) $(DIS_TEST_DIS_FILES) \ |
$(DIS_DOC_DIS_FILES) $(DIS_DUMP_DIS_FILES) $(DIS_TEST_DIS_FILES) \ |
59 |
$(PC_DIS_FILES) $(UTIL_DIS_COMMON_DIS_FILE) |
$(PC_DIS_FILES) $(UTIL_DIS_COMMON_DIS_FILE) |
60 |
|
|
61 |
|
NS_UTIL_PM_FILES = \ |
62 |
|
ManakaiNode$(PM_SUFFIX) ManakaiNodeTest$(PM_SUFFIX) \ |
63 |
|
PerlCode$(PM_SUFFIX) \ |
64 |
|
DIS$(PM_SUFFIX) |
65 |
|
NS_UTIL_ERR_PM_FILES = \ |
66 |
|
Error/DOMException$(PM_SUFFIX) |
67 |
|
NS_UTIL_DIS_PM_FILES = \ |
68 |
|
DIS/DNLite$(PM_SUFFIX) DIS/Value$(PM_SUFFIX) \ |
69 |
|
DIS/DPG$(PM_SUFFIX) \ |
70 |
|
DIS/Perl$(PM_SUFFIX) DIS/DISDoc$(PM_SUFFIX) DIS/DISDump$(PM_SUFFIX) \ |
71 |
|
DIS/Test$(PM_SUFFIX) |
72 |
|
|
73 |
GENERATED_FILES = \ |
GENERATED_FILES = \ |
74 |
core$(DAC_SUFFIX) ManakaiNode$(PM_SUFFIX) Error/DOMException$(PM_SUFFIX) \ |
$(NS_UTIL_PM_FILES) $(NS_UTIL_ERR_PM_FILES) $(NS_UTIL_DIS_PM_FILES) |
|
coretest$(DAC_SUFFIX) ManakaiNodeTest$(PM_SUFFIX) \ |
|
|
pc$(DAC_SUFFIX) PerlCode$(PM_SUFFIX) \ |
|
|
discore$(DAC_SUFFIX) DIS$(PM_SUFFIX) \ |
|
|
DIS/Perl$(PM_SUFFIX) DIS/Value$(PM_SUFFIX) \ |
|
|
DIS/DNLite$(PM_SUFFIX) DIS/DPG$(PM_SUFFIX) \ |
|
|
disdoc$(DAC_SUFFIX) DIS/DISDoc$(PM_SUFFIX) \ |
|
|
disdump$(DAC_SUFFIX) DIS/DISDump$(PM_SUFFIX) \ |
|
|
distest$(DAC_SUFFIX) DIS/Test$(PM_SUFFIX) |
|
|
GENERATED_DAC_FILES = core$(DAC_SUFFIX) coretest$(DAC_SUFFIX) \ |
|
|
discore$(DAC_SUFFIX) \ |
|
|
disdoc$(DAC_SUFFIX) disdump$(DAC_SUFFIX) distest$(DAC_SUFFIX) \ |
|
|
dpg$(DAC_SUFFIX) |
|
75 |
|
|
76 |
all: PerlCode$(PM_SUFFIX) .discore$(PM_SUFFIX) $(GENERATED_FILES) |
all: PerlCode$(PM_SUFFIX) .discore$(PM_SUFFIX) $(GENERATED_FILES) |
77 |
|
|
78 |
a.daf: |
$(NS_UTIL_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
79 |
$(DAF) --create-perl-module="$(NS_UTIL)ManakaiNode a.pm" |
$(DAF) --create-perl-module="$(NS_UTIL)$* $@" |
|
b.daf: |
|
|
$(DAF) --create-perl-module="$(NS_UTIL_ERR)DOMException b.pm" |
|
|
c.daf: |
|
|
$(DAF) --create-perl-module="$(NS_MDOM)DOMFeature c.pm" |
|
|
d.daf: |
|
|
$(DAF) --create-perl-module="$(NS_UTIL)PerlCode d.pm" |
|
|
|
|
|
core$(DAC_SUFFIX): $(CORE_DAC_FILE) $(UTIL_CORE_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@.1.tmp --input-db-file-name="$<" ManakaiNode.dis |
|
|
$(DAC)$@ --input-db-file-name="$@.1.tmp" Error/DOMException.dis |
|
|
$(RM) $@.1.tmp |
|
|
|
|
|
coretest$(DAC_SUFFIX): core$(DAC_SUFFIX) $(UTIL_TEST_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@ --input-db-file-name="$<" ManakaiNodeTest.dis |
|
|
|
|
|
pc$(DAC_SUFFIX): $(SWCFG_DAC_FILE) $(PC_DIS_FILES) $(DAC_PL) |
|
|
$(DAC)$@ --input-db-file-name="$<" PerlCode$(DIS_SUFFIX) |
|
|
|
|
|
discore$(DAC_SUFFIX): pc$(DAC_SUFFIX) $(DIS_CORE_DIS_FILES) $(DAC_PL) \ |
|
|
$(UTIL_DIS_COMMON_DIS_FILE) |
|
|
$(DAC)$@ --input-db-file-name="$<" DIS/DNLite.dis |
|
|
|
|
|
disdoc$(DAC_SUFFIX): discore$(DAC_SUFFIX) $(DIS_DOC_DIS_FILES) $(DAC_PL) \ |
|
|
$(UTIL_DIS_COMMON_DIS_FILE) |
|
|
$(DAC)$@ --input-db-file-name="$<" DIS/DISDoc.dis |
|
|
|
|
|
disdump$(DAC_SUFFIX): $(DOM_CORE_DAC_FILE) $(DIS_DUMP_DIS_FILES) $(DAC_PL) \ |
|
|
$(UTIL_DIS_COMMON_DIS_FILE) |
|
|
$(DAC)$@ --input-db-file-name="$<" DIS/DISDump.dis |
|
|
|
|
|
distest$(DAC_SUFFIX): discore$(DAC_SUFFIX) $(DIS_TEST_DIS_FILES) $(DAC_PL) \ |
|
|
$(UTIL_DIS_COMMON_DIS_FILE) |
|
|
$(DAC)$@ --input-db-file-name="$<" DIS/Test.dis |
|
|
|
|
|
ManakaiNode$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)ManakaiNode" \ |
|
|
--output-file-path="$@" |
|
80 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
81 |
|
|
82 |
Error/DOMException$(PM_SUFFIX): core$(DAC_SUFFIX) $(DAC2PM_PL) |
$(NS_UTIL_ERR_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
83 |
$(DAC2PM) $< \ |
$(DAF) --create-perl-module="$(NS_UTIL_ERR)$(*:Error/%=%) $@" |
|
--module-uri="$(NS_UTIL_ERR)DOMException" \ |
|
|
--output-file-path="$@" |
|
84 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
85 |
|
|
86 |
$(UTIL_TEST_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): \ |
$(NS_UTIL_DIS_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
87 |
%$(PM_SUFFIX): coretest$(DAC_SUFFIX) \ |
$(DAF) --create-perl-module="$(NS_UTIL_DIS)$(*:DIS/%=%) $@" |
|
$(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)$*" \ |
|
|
--output-file-path="$@" |
|
88 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
89 |
|
|
90 |
$(DIS_CORE_DIS_FILES_:.dis=$(PM_SUFFIX)): %$(PM_SUFFIX): discore$(DAC_SUFFIX) \ |
.discore$(PM_SUFFIX): $(DIS_CORE_DIS_FILES) $(DAF_PL) |
91 |
$(DAC2PM_PL) |
$(DAF) \ |
92 |
$(DAC2PM) $< \ |
--create-perl-module="$(NS_UTIL)DIS DIS$(PM_SUFFIX)" \ |
93 |
--module-uri="$(NS_UTIL)$*" \ |
--create-perl-module="$(NS_UTIL_DIS)Value DIS/Value$(PM_SUFFIX)" \ |
94 |
--output-file-path="$@" |
--create-perl-module="$(NS_UTIL_DIS)Perl DIS/Perl$(PM_SUFFIX)" \ |
95 |
$(PERL_CHK) $@ |
--create-perl-module="$(NS_UTIL_DIS)DPG DIS/DPG$(PM_SUFFIX)" \ |
|
|
|
|
$(DIS_CORE_DIS_FILES_DIS:.dis=$(PM_SUFFIX)): %$(PM_SUFFIX): \ |
|
|
discore$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_DIS)$(*:DIS/%=%)" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
.discore$(PM_SUFFIX): discore$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--create-perl-module="$(NS_UTIL)DIS DIS$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_UTIL_DIS)Value DIS/Value$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_UTIL_DIS)Perl DIS/Perl$(PM_SUFFIX)" \ |
|
|
--create-perl-module="$(NS_UTIL_DIS)DPG DIS/DPG$(PM_SUFFIX)" \ |
|
96 |
--create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)" |
--create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)" |
97 |
$(PERL_CHK) DIS$(PM_SUFFIX) |
$(PERL_CHK) DIS$(PM_SUFFIX) |
98 |
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
101 |
$(PERL_CHK) DIS/DPG$(PM_SUFFIX) |
$(PERL_CHK) DIS/DPG$(PM_SUFFIX) |
102 |
$(TOUCH) $@ |
$(TOUCH) $@ |
103 |
|
|
104 |
$(PC_DIS_FILES:$(DIS_SUFFIX)=$(PM_SUFFIX)): %$(PM_SUFFIX): \ |
.discore-all$(PM_SUFFIX): $(DIS_CORE_DIS_FILES) $(DAF_PL) |
105 |
pc$(DAC_SUFFIX) $(DAC2PM_PL) |
$(DAF) \ |
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL)$*" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
.discore-all$(PM_SUFFIX): discore$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
106 |
--create-perl-module="$(NS_UTIL)ManakaiNode ManakaiNode$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_UTIL)ManakaiNode ManakaiNode$(PM_SUFFIX)" \ |
107 |
--create-perl-module="$(NS_UTIL_ERR)DOMException Error/DOMException$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_UTIL_ERR)DOMException Error/DOMException$(PM_SUFFIX)" \ |
108 |
--create-perl-module="$(NS_MARKUP)SuikaWikiConfig21 ../Markup/SuikaWikiConfig21$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_MARKUP)SuikaWikiConfig21 ../Markup/SuikaWikiConfig21$(PM_SUFFIX)" \ |
115 |
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
116 |
$(PERL_CHK) DIS/Perl$(PM_SUFFIX) |
$(PERL_CHK) DIS/Perl$(PM_SUFFIX) |
117 |
$(PERL_CHK) DIS/DNLite$(PM_SUFFIX) |
$(PERL_CHK) DIS/DNLite$(PM_SUFFIX) |
118 |
$(DAC2PM) $< \ |
$(DAF) \ |
119 |
--create-perl-module="$(NS_UTIL)PerlCode PerlCode$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_UTIL)PerlCode PerlCode$(PM_SUFFIX)" \ |
120 |
--create-perl-module="$(NS_UTIL_DIS)DPG DIS/DPG$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_UTIL_DIS)DPG DIS/DPG$(PM_SUFFIX)" \ |
121 |
--create-perl-module="$(NS_MDOM)DOMFeature ../DOM/DOMFeature$(PM_SUFFIX)" \ |
--create-perl-module="$(NS_MDOM)DOMFeature ../DOM/DOMFeature$(PM_SUFFIX)" \ |
138 |
$(TOUCH) .discore$(PM_SUFFIX) |
$(TOUCH) .discore$(PM_SUFFIX) |
139 |
$(TOUCH) ../DOM/.core$(PM_SUFFIX) |
$(TOUCH) ../DOM/.core$(PM_SUFFIX) |
140 |
|
|
|
DIS/DISDoc$(PM_SUFFIX): disdoc$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_DIS)DISDoc" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DIS/DISDump$(PM_SUFFIX): disdump$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_DIS)DISDump" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
DIS/Test$(PM_SUFFIX): distest$(DAC_SUFFIX) $(DAC2PM_PL) |
|
|
$(DAC2PM) $< \ |
|
|
--module-uri="$(NS_UTIL_DIS)Test" \ |
|
|
--output-file-path="$@" |
|
|
$(PERL_CHK) $@ |
|
|
|
|
|
# $(CORE_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)manakai/all$(DAC_SUFFIX): dummy |
|
|
$(CD) $(MANAKAI_LIB_DIR)manakai/ && $(MAKE) all$(DAC_SUFFIX) |
|
|
|
|
|
# $(SWCFG_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)Message/Markup/all$(DAC_SUFFIX): dummy |
|
|
$(CD) $(MANAKAI_LIB_DIR)Message/Markup/ && $(MAKE) all$(DAC_SUFFIX) |
|
|
|
|
|
# $(DOM_CORE_DAC_FILE) |
|
|
$(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX): dummy |
|
|
$(CD) $(MANAKAI_LIB_DIR)Message/DOM/ && $(MAKE) core$(DAC_SUFFIX) |
|
|
|
|
|
dummy: |
|
|
|
|
141 |
clean: |
clean: |
142 |
$(RM) $(GENERATED_FILES) |
$(RM) $(GENERATED_FILES) |
143 |
$(RM) .*.tmp .discore$(PM_SUFFIX) .discore-all$(PM_SUFFIX) |
$(RM) .*.tmp .discore$(PM_SUFFIX) .discore-all$(PM_SUFFIX) |
144 |
|
|
145 |
|
## $Date$ |
146 |
|
## License: Public Domain. |