3 |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
5 |
|
|
6 |
|
DIS_SUFFIX = .dis |
7 |
|
DAEM_SUFFIX = .dafm |
8 |
|
DAFX_SUFFIX = .dafx |
9 |
|
PM_SUFFIX = .pm |
10 |
|
|
11 |
|
CD = cd |
12 |
|
MAKE = make |
13 |
RM = rm |
RM = rm |
14 |
PERL = perl -I$(MANAKAI_LIB_DIR) |
PERL = perl |
15 |
PERL_CHK = $(PERL) -c -w |
PERL_OPTIONS = |
16 |
|
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
17 |
|
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
18 |
|
PERLC = $(PERL) -c -w |
19 |
|
PERLC_OPTIONS = |
20 |
|
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
21 |
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
22 |
|
TOUCH = touch |
23 |
|
|
24 |
DISC_PL = $(MANAKAI_BIN_DIR)disc.pl |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
25 |
DISC = $(PERL) $(DISC_PL) \ |
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM. |
26 |
-I=$(MANAKAI_LIB_MANAKAI_DIR) \ |
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\# |
27 |
-I=$(MANAKAI_LIB_DIR)Message/Util/Error/ \ |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
28 |
-I=$(MANAKAI_LIB_DIR)Message/DOM/ |
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
29 |
CDIS2PM_OPTIONS = --enable-assert |
NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
30 |
## TODO: Official release should remove this option. |
NS_UTIL_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
31 |
CDIS2PM_PL = ../../../bin/cdis2pm.pl |
NS_UTIL_MUF = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Formatter/ |
32 |
CDIS2PM = $(PERL) $(CDIS2PM_PL) $(CDIS2PM_OPTIONS) |
|
33 |
|
DIS_OPTIONS = |
34 |
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
35 |
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
36 |
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
37 |
|
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
38 |
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
39 |
|
|
40 |
|
DAF_OPTIONS = |
41 |
|
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
42 |
|
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
43 |
|
|
44 |
|
UTIL_CORE_DIS_FILES = ManakaiNode.dis Error/DOMException.dis Error/Core.dis \ |
45 |
|
Formatter/Muf2003$(DIS_SUFFIX) |
46 |
|
UTIL_TEST_DIS_FILES = ManakaiNodeTest$(DIS_SUFFIX) |
47 |
|
DIS_CORE_DIS_FILES_ = DIS$(DIS_SUFFIX) |
48 |
|
DIS_CORE_DIS_FILES_DIS = DIS/Perl.dis DIS/Value.dis DIS/DNLite.dis \ |
49 |
|
DIS/DPG$(DIS_SUFFIX) |
50 |
|
DIS_CORE_DIS_FILES = $(DIS_CORE_DIS_FILES_) $(DIS_CORE_DIS_FILES_DIS) |
51 |
|
DIS_DOC_DIS_FILES = DIS/DISDoc.dis |
52 |
|
DIS_DUMP_DIS_FILES = DIS/DISDump.dis |
53 |
|
DIS_TEST_DIS_FILES = DIS/Test$(DIS_SUFFIX) |
54 |
|
PC_DIS_FILES = PerlCode$(DIS_SUFFIX) |
55 |
|
UTIL_DIS_COMMON_DIS_FILE = DIS/common$(DIS_SUFFIX) |
56 |
|
DIS_FILES = $(UTIL_CORE_DIS_FILES) $(UTIL_TEST_DIS_FILES) \ |
57 |
|
$(DIS_CORE_DIS_FILES) \ |
58 |
|
$(DIS_DOC_DIS_FILES) $(DIS_DUMP_DIS_FILES) $(DIS_TEST_DIS_FILES) \ |
59 |
|
$(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 |
DIS_FILES = ManakaiNode.dis |
GENERATED_FILES = \ |
74 |
GENERATED_FILES = mnode.cdis ManakaiNode.pm |
$(NS_UTIL_PM_FILES) $(NS_UTIL_ERR_PM_FILES) $(NS_UTIL_DIS_PM_FILES) |
75 |
|
|
76 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
all: PerlCode$(PM_SUFFIX) .discore$(PM_SUFFIX) $(GENERATED_FILES) |
77 |
|
|
78 |
all: $(GENERATED_FILES) |
$(NS_UTIL_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
79 |
|
$(DAF) --create-perl-module="$(NS_UTIL)$* $@" |
80 |
|
$(PERL_CHK) $@ |
81 |
|
|
82 |
mnode.cdis: ManakaiNode.dis $(DISC_PL) |
$(NS_UTIL_ERR_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
83 |
$(DISC) $< --output-file-name=$@ |
$(DAF) --create-perl-module="$(NS_UTIL_ERR)$(*:Error/%=%) $@" |
84 |
|
$(PERL_CHK) $@ |
85 |
|
|
86 |
ManakaiNode.pm: mnode.cdis $(CDIS2PM_PL) |
$(NS_UTIL_DIS_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
87 |
$(CDIS2PM) $< --for="$(NS_MANAKAIDOM)Perl" \ |
$(DAF) --create-perl-module="$(NS_UTIL_DIS)$(*:DIS/%=%) $@" |
|
--module-name=ManakaiNode > $@ |
|
88 |
$(PERL_CHK) $@ |
$(PERL_CHK) $@ |
89 |
|
|
90 |
|
.discore$(PM_SUFFIX): $(DIS_CORE_DIS_FILES) $(DAF_PL) |
91 |
|
$(DAF) \ |
92 |
|
--create-perl-module="$(NS_UTIL)DIS DIS$(PM_SUFFIX)" \ |
93 |
|
--create-perl-module="$(NS_UTIL_DIS)Value DIS/Value$(PM_SUFFIX)" \ |
94 |
|
--create-perl-module="$(NS_UTIL_DIS)Perl DIS/Perl$(PM_SUFFIX)" \ |
95 |
|
--create-perl-module="$(NS_UTIL_DIS)DPG DIS/DPG$(PM_SUFFIX)" \ |
96 |
|
--create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)" |
97 |
|
$(PERL_CHK) DIS$(PM_SUFFIX) |
98 |
|
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
99 |
|
$(PERL_CHK) DIS/Perl$(PM_SUFFIX) |
100 |
|
$(PERL_CHK) DIS/DNLite$(PM_SUFFIX) |
101 |
|
$(PERL_CHK) DIS/DPG$(PM_SUFFIX) |
102 |
|
$(TOUCH) $@ |
103 |
|
|
104 |
|
.discore-all$(PM_SUFFIX): $(DIS_CORE_DIS_FILES) $(DAF_PL) |
105 |
|
$(DAF) \ |
106 |
|
--create-perl-module="$(NS_UTIL)ManakaiNode ManakaiNode$(PM_SUFFIX)" \ |
107 |
|
--create-perl-module="$(NS_UTIL_ERR)DOMException Error/DOMException$(PM_SUFFIX)" \ |
108 |
|
--create-perl-module="$(NS_MARKUP)SuikaWikiConfig21 ../Markup/SuikaWikiConfig21$(PM_SUFFIX)" \ |
109 |
|
--create-perl-module="$(NS_UTIL)DIS DIS$(PM_SUFFIX)" \ |
110 |
|
--create-perl-module="$(NS_UTIL_DIS)Value DIS/Value$(PM_SUFFIX)" \ |
111 |
|
--create-perl-module="$(NS_UTIL_DIS)Perl DIS/Perl$(PM_SUFFIX)" \ |
112 |
|
--create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)" |
113 |
|
$(PERL_CHK) ../Markup/SuikaWikiConfig21$(PM_SUFFIX) |
114 |
|
$(PERL_CHK) DIS$(PM_SUFFIX) |
115 |
|
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
116 |
|
$(PERL_CHK) DIS/Perl$(PM_SUFFIX) |
117 |
|
$(PERL_CHK) DIS/DNLite$(PM_SUFFIX) |
118 |
|
$(DAF) \ |
119 |
|
--create-perl-module="$(NS_UTIL)PerlCode PerlCode$(PM_SUFFIX)" \ |
120 |
|
--create-perl-module="$(NS_UTIL_DIS)DPG DIS/DPG$(PM_SUFFIX)" \ |
121 |
|
--create-perl-module="$(NS_MDOM)DOMFeature ../DOM/DOMFeature$(PM_SUFFIX)" \ |
122 |
|
--create-perl-module="$(NS_MDOM)GenericLS ../DOM/GenericLS$(PM_SUFFIX)" \ |
123 |
|
--create-perl-module="$(NS_MDOM)DOMMain ../DOM/DOMMain$(PM_SUFFIX)" \ |
124 |
|
--create-perl-module="$(NS_MDOM)DOMCore ../DOM/DOMCore$(PM_SUFFIX)" \ |
125 |
|
--create-perl-module="$(NS_MDOM)Tree ../DOM/Tree$(PM_SUFFIX)" \ |
126 |
|
--create-perl-module="$(NS_MDOM)DOMXML ../DOM/DOMXML$(PM_SUFFIX)" \ |
127 |
|
--create-perl-module="$(NS_MDOM)XDoctype ../DOM/XDoctype$(PM_SUFFIX)" |
128 |
|
$(PERL_CHK) PerlCode$(PM_SUFFIX) |
129 |
|
$(PERL_CHK) DIS/DPG$(PM_SUFFIX) |
130 |
|
$(PERL_CHK) ../DOM/DOMFeature$(PM_SUFFIX) |
131 |
|
$(PERL_CHK) ../DOM/GenericLS$(PM_SUFFIX) |
132 |
|
$(PERL_CHK) ../DOM/DOMMain$(PM_SUFFIX) |
133 |
|
$(PERL_CHK) ../DOM/DOMCore$(PM_SUFFIX) |
134 |
|
$(PERL_CHK) ../DOM/Tree$(PM_SUFFIX) |
135 |
|
$(PERL_CHK) ../DOM/DOMXML$(PM_SUFFIX) |
136 |
|
$(PERL_CHK) ../DOM/XDoctype$(PM_SUFFIX) |
137 |
|
$(TOUCH) $@ |
138 |
|
$(TOUCH) .discore$(PM_SUFFIX) |
139 |
|
$(TOUCH) ../DOM/.core$(PM_SUFFIX) |
140 |
|
|
141 |
clean: |
clean: |
142 |
$(RM) $(GENERATED_FILES) .*.tmp |
$(RM) $(GENERATED_FILES) |
143 |
|
$(RM) .*.tmp .discore$(PM_SUFFIX) .discore-all$(PM_SUFFIX) |
144 |
|
|
145 |
|
## $Date$ |
146 |
|
## License: Public Domain. |