1 |
wakaba |
1.1 |
MANAKAI_ROOT_DIR = ../../../ |
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
MANAKAI_LIB_MANAKAI_DIR = $(MANAKAI_LIB_DIR)manakai/ |
5 |
|
|
|
6 |
wakaba |
1.21 |
DIS_SUFFIX = .dis |
7 |
wakaba |
1.38 |
DAEM_SUFFIX = .dafm |
8 |
wakaba |
1.37 |
DAFX_SUFFIX = .dafx |
9 |
wakaba |
1.16 |
PM_SUFFIX = .pm |
10 |
|
|
|
11 |
wakaba |
1.7 |
CD = cd |
12 |
|
|
MAKE = make |
13 |
wakaba |
1.1 |
RM = rm |
14 |
wakaba |
1.39 |
RMALL = $(RM) -fv |
15 |
wakaba |
1.6 |
PERL = perl |
16 |
wakaba |
1.25 |
PERL_OPTIONS = |
17 |
|
|
PERL_OPTIONS_ALL = $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR) |
18 |
|
|
PERL_ = $(PERL) $(PERL_OPTIONS_ALL) |
19 |
wakaba |
1.6 |
PERLC = $(PERL) -c -w |
20 |
wakaba |
1.25 |
PERLC_OPTIONS = |
21 |
|
|
PERLC_OPTIONS_ALL = $(PERLC_OPTIONS) -I$(MANAKAI_LIB_DIR) |
22 |
|
|
PERL_CHK = $(PERLC) $(PERLC_OPTIONS_ALL) |
23 |
wakaba |
1.19 |
TOUCH = touch |
24 |
wakaba |
1.1 |
|
25 |
wakaba |
1.5 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\# |
26 |
wakaba |
1.20 |
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM. |
27 |
|
|
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\# |
28 |
wakaba |
1.5 |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
29 |
|
|
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
30 |
wakaba |
1.6 |
NS_UTIL_ERR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
31 |
wakaba |
1.11 |
NS_UTIL_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
32 |
wakaba |
1.28 |
NS_UTIL_MUF = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Formatter/ |
33 |
wakaba |
1.5 |
|
34 |
wakaba |
1.21 |
DIS_OPTIONS = |
35 |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \ |
36 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \ |
37 |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \ |
38 |
wakaba |
1.37 |
--daem-file-suffix="$(DAEM_SUFFIX)" \ |
39 |
|
|
--dafx-file-suffix="$(DAFX_SUFFIX)" |
40 |
wakaba |
1.21 |
|
41 |
wakaba |
1.37 |
DAF_OPTIONS = |
42 |
|
|
DAF_PL = $(MANAKAI_BIN_DIR)daf.pl |
43 |
|
|
DAF = $(PERL_) $(DAF_PL) $(DAF_OPTIONS) $(DIS_OPTIONS_ALL) |
44 |
|
|
|
45 |
wakaba |
1.28 |
UTIL_CORE_DIS_FILES = ManakaiNode.dis Error/DOMException.dis Error/Core.dis \ |
46 |
|
|
Formatter/Muf2003$(DIS_SUFFIX) |
47 |
wakaba |
1.33 |
UTIL_TEST_DIS_FILES = ManakaiNodeTest$(DIS_SUFFIX) |
48 |
wakaba |
1.24 |
DIS_CORE_DIS_FILES_ = DIS$(DIS_SUFFIX) |
49 |
wakaba |
1.31 |
DIS_CORE_DIS_FILES_DIS = DIS/Perl.dis DIS/Value.dis DIS/DNLite.dis \ |
50 |
|
|
DIS/DPG$(DIS_SUFFIX) |
51 |
wakaba |
1.16 |
DIS_CORE_DIS_FILES = $(DIS_CORE_DIS_FILES_) $(DIS_CORE_DIS_FILES_DIS) |
52 |
wakaba |
1.22 |
DIS_DOC_DIS_FILES = DIS/DISDoc.dis |
53 |
|
|
DIS_DUMP_DIS_FILES = DIS/DISDump.dis |
54 |
wakaba |
1.26 |
DIS_TEST_DIS_FILES = DIS/Test$(DIS_SUFFIX) |
55 |
wakaba |
1.24 |
PC_DIS_FILES = PerlCode$(DIS_SUFFIX) |
56 |
wakaba |
1.26 |
UTIL_DIS_COMMON_DIS_FILE = DIS/common$(DIS_SUFFIX) |
57 |
wakaba |
1.33 |
DIS_FILES = $(UTIL_CORE_DIS_FILES) $(UTIL_TEST_DIS_FILES) \ |
58 |
|
|
$(DIS_CORE_DIS_FILES) \ |
59 |
wakaba |
1.26 |
$(DIS_DOC_DIS_FILES) $(DIS_DUMP_DIS_FILES) $(DIS_TEST_DIS_FILES) \ |
60 |
|
|
$(PC_DIS_FILES) $(UTIL_DIS_COMMON_DIS_FILE) |
61 |
wakaba |
1.15 |
|
62 |
wakaba |
1.38 |
NS_UTIL_PM_FILES = \ |
63 |
|
|
ManakaiNode$(PM_SUFFIX) ManakaiNodeTest$(PM_SUFFIX) \ |
64 |
|
|
PerlCode$(PM_SUFFIX) \ |
65 |
|
|
DIS$(PM_SUFFIX) |
66 |
|
|
NS_UTIL_ERR_PM_FILES = \ |
67 |
|
|
Error/DOMException$(PM_SUFFIX) |
68 |
|
|
NS_UTIL_DIS_PM_FILES = \ |
69 |
|
|
DIS/DNLite$(PM_SUFFIX) DIS/Value$(PM_SUFFIX) \ |
70 |
|
|
DIS/DPG$(PM_SUFFIX) \ |
71 |
|
|
DIS/Perl$(PM_SUFFIX) DIS/DISDoc$(PM_SUFFIX) DIS/DISDump$(PM_SUFFIX) \ |
72 |
|
|
DIS/Test$(PM_SUFFIX) |
73 |
|
|
|
74 |
wakaba |
1.15 |
GENERATED_FILES = \ |
75 |
wakaba |
1.38 |
$(NS_UTIL_PM_FILES) $(NS_UTIL_ERR_PM_FILES) $(NS_UTIL_DIS_PM_FILES) |
76 |
wakaba |
1.1 |
|
77 |
wakaba |
1.24 |
all: PerlCode$(PM_SUFFIX) .discore$(PM_SUFFIX) $(GENERATED_FILES) |
78 |
wakaba |
1.37 |
|
79 |
wakaba |
1.38 |
$(NS_UTIL_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
80 |
|
|
$(DAF) --create-perl-module="$(NS_UTIL)$* $@" |
81 |
wakaba |
1.5 |
$(PERL_CHK) $@ |
82 |
wakaba |
1.6 |
|
83 |
wakaba |
1.38 |
$(NS_UTIL_ERR_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
84 |
|
|
$(DAF) --create-perl-module="$(NS_UTIL_ERR)$(*:Error/%=%) $@" |
85 |
wakaba |
1.33 |
$(PERL_CHK) $@ |
86 |
|
|
|
87 |
wakaba |
1.38 |
$(NS_UTIL_DIS_PM_FILES): %$(PM_SUFFIX): %$(DIS_SUFFIX) $(DAF_PL) |
88 |
|
|
$(DAF) --create-perl-module="$(NS_UTIL_DIS)$(*:DIS/%=%) $@" |
89 |
wakaba |
1.5 |
$(PERL_CHK) $@ |
90 |
wakaba |
1.6 |
|
91 |
wakaba |
1.38 |
.discore$(PM_SUFFIX): $(DIS_CORE_DIS_FILES) $(DAF_PL) |
92 |
|
|
$(DAF) \ |
93 |
|
|
--create-perl-module="$(NS_UTIL)DIS DIS$(PM_SUFFIX)" \ |
94 |
|
|
--create-perl-module="$(NS_UTIL_DIS)Value DIS/Value$(PM_SUFFIX)" \ |
95 |
|
|
--create-perl-module="$(NS_UTIL_DIS)Perl DIS/Perl$(PM_SUFFIX)" \ |
96 |
|
|
--create-perl-module="$(NS_UTIL_DIS)DPG DIS/DPG$(PM_SUFFIX)" \ |
97 |
wakaba |
1.18 |
--create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)" |
98 |
|
|
$(PERL_CHK) DIS$(PM_SUFFIX) |
99 |
|
|
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
100 |
|
|
$(PERL_CHK) DIS/Perl$(PM_SUFFIX) |
101 |
|
|
$(PERL_CHK) DIS/DNLite$(PM_SUFFIX) |
102 |
wakaba |
1.31 |
$(PERL_CHK) DIS/DPG$(PM_SUFFIX) |
103 |
wakaba |
1.19 |
$(TOUCH) $@ |
104 |
wakaba |
1.11 |
|
105 |
wakaba |
1.38 |
.discore-all$(PM_SUFFIX): $(DIS_CORE_DIS_FILES) $(DAF_PL) |
106 |
|
|
$(DAF) \ |
107 |
wakaba |
1.20 |
--create-perl-module="$(NS_UTIL)ManakaiNode ManakaiNode$(PM_SUFFIX)" \ |
108 |
|
|
--create-perl-module="$(NS_UTIL_ERR)DOMException Error/DOMException$(PM_SUFFIX)" \ |
109 |
|
|
--create-perl-module="$(NS_MARKUP)SuikaWikiConfig21 ../Markup/SuikaWikiConfig21$(PM_SUFFIX)" \ |
110 |
|
|
--create-perl-module="$(NS_UTIL)DIS DIS$(PM_SUFFIX)" \ |
111 |
|
|
--create-perl-module="$(NS_UTIL_DIS)Value DIS/Value$(PM_SUFFIX)" \ |
112 |
|
|
--create-perl-module="$(NS_UTIL_DIS)Perl DIS/Perl$(PM_SUFFIX)" \ |
113 |
wakaba |
1.39 |
--create-perl-module="$(NS_UTIL_DIS)DPG DIS/DPG$(PM_SUFFIX)" \ |
114 |
wakaba |
1.20 |
--create-perl-module="$(NS_UTIL_DIS)DNLite DIS/DNLite$(PM_SUFFIX)" |
115 |
|
|
$(PERL_CHK) ../Markup/SuikaWikiConfig21$(PM_SUFFIX) |
116 |
|
|
$(PERL_CHK) DIS$(PM_SUFFIX) |
117 |
|
|
$(PERL_CHK) DIS/Value$(PM_SUFFIX) |
118 |
|
|
$(PERL_CHK) DIS/Perl$(PM_SUFFIX) |
119 |
wakaba |
1.39 |
$(PERL_CHK) DIS/DPG$(PM_SUFFIX) |
120 |
wakaba |
1.20 |
$(PERL_CHK) DIS/DNLite$(PM_SUFFIX) |
121 |
wakaba |
1.39 |
$(TOUCH) .discore$(PM_SUFFIX) |
122 |
wakaba |
1.38 |
$(DAF) \ |
123 |
wakaba |
1.24 |
--create-perl-module="$(NS_UTIL)PerlCode PerlCode$(PM_SUFFIX)" \ |
124 |
wakaba |
1.23 |
--create-perl-module="$(NS_MDOM)DOMFeature ../DOM/DOMFeature$(PM_SUFFIX)" \ |
125 |
wakaba |
1.34 |
--create-perl-module="$(NS_MDOM)GenericLS ../DOM/GenericLS$(PM_SUFFIX)" \ |
126 |
wakaba |
1.23 |
--create-perl-module="$(NS_MDOM)DOMMain ../DOM/DOMMain$(PM_SUFFIX)" \ |
127 |
|
|
--create-perl-module="$(NS_MDOM)DOMCore ../DOM/DOMCore$(PM_SUFFIX)" \ |
128 |
wakaba |
1.29 |
--create-perl-module="$(NS_MDOM)Tree ../DOM/Tree$(PM_SUFFIX)" \ |
129 |
wakaba |
1.23 |
--create-perl-module="$(NS_MDOM)DOMXML ../DOM/DOMXML$(PM_SUFFIX)" \ |
130 |
wakaba |
1.35 |
--create-perl-module="$(NS_MDOM)XDoctype ../DOM/XDoctype$(PM_SUFFIX)" |
131 |
wakaba |
1.24 |
$(PERL_CHK) PerlCode$(PM_SUFFIX) |
132 |
wakaba |
1.23 |
$(PERL_CHK) ../DOM/DOMFeature$(PM_SUFFIX) |
133 |
wakaba |
1.34 |
$(PERL_CHK) ../DOM/GenericLS$(PM_SUFFIX) |
134 |
wakaba |
1.23 |
$(PERL_CHK) ../DOM/DOMMain$(PM_SUFFIX) |
135 |
|
|
$(PERL_CHK) ../DOM/DOMCore$(PM_SUFFIX) |
136 |
wakaba |
1.29 |
$(PERL_CHK) ../DOM/Tree$(PM_SUFFIX) |
137 |
wakaba |
1.23 |
$(PERL_CHK) ../DOM/DOMXML$(PM_SUFFIX) |
138 |
wakaba |
1.32 |
$(PERL_CHK) ../DOM/XDoctype$(PM_SUFFIX) |
139 |
wakaba |
1.20 |
$(TOUCH) $@ |
140 |
wakaba |
1.35 |
$(TOUCH) ../DOM/.core$(PM_SUFFIX) |
141 |
wakaba |
1.20 |
|
142 |
wakaba |
1.1 |
clean: |
143 |
wakaba |
1.39 |
$(RMALL) $(GENERATED_FILES) |
144 |
|
|
$(RMALL) .*.tmp *~ .*~ .discore$(PM_SUFFIX) .discore-all$(PM_SUFFIX) |
145 |
|
|
$(RMALL) Error/*~ Error/.*~ |
146 |
|
|
$(RMALL) Formatter/*~ Formatter/.*~ |
147 |
|
|
$(RMALL) DIS/*~ DIS/.*~ |
148 |
|
|
|
149 |
wakaba |
1.40 |
clean-db: |
150 |
wakaba |
1.39 |
$(RMALL) *$(DAEM_SUFFIX) *$(DAFX_SUFFIX) |
151 |
|
|
$(RMALL) Error/*$(DAEM_SUFFIX) Error/*$(DAFX_SUFFIX) |
152 |
|
|
$(RMALL) Formatter/*$(DAEM_SUFFIX) Formatter/*$(DAFX_SUFFIX) |
153 |
|
|
$(RMALL) DIS/*$(DAEM_SUFFIX) DIS/*$(DAFX_SUFFIX) |
154 |
wakaba |
1.38 |
|
155 |
wakaba |
1.40 |
distclean: clean clean-db |
156 |
|
|
|
157 |
|
|
## $Date: 2006/02/26 14:32:43 $ |
158 |
wakaba |
1.38 |
## License: Public Domain. |