1 |
wakaba |
1.1 |
MANAKAI_ROOT_DIR = ../
|
2 |
|
|
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/
|
3 |
|
|
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/
|
4 |
|
|
|
5 |
wakaba |
1.7 |
DIS_SUFFIX = .dis
|
6 |
|
|
DAC_SUFFIX = .dae
|
7 |
|
|
DAEM_SUFFIX = .daem
|
8 |
wakaba |
1.5 |
|
9 |
wakaba |
1.1 |
RM = rm -f
|
10 |
|
|
|
11 |
|
|
JAVA = java
|
12 |
|
|
JAVA_JAR = $(JAVA) -jar
|
13 |
|
|
|
14 |
|
|
XALAN_PATH = d:/Program_Files/xalan/xalan.jar
|
15 |
|
|
XALAN = $(JAVA) -cp $(XALAN_PATH) org.apache.xalan.xslt.Process
|
16 |
|
|
|
17 |
wakaba |
1.7 |
PERL_OPTIONS =
|
18 |
wakaba |
1.1 |
PERL = perl
|
19 |
wakaba |
1.7 |
PERL_ = $(PERL) $(PERL_OPTIONS) -I$(MANAKAI_LIB_DIR)
|
20 |
|
|
|
21 |
|
|
DIS_OPTIONS =
|
22 |
|
|
DIS_OPTIONS_ALL = $(DIS_OPTIONS) \
|
23 |
|
|
--search-path-catalog-file-name="$(MANAKAI_LIB_DIR)manakai/dis-catalog" \
|
24 |
|
|
--dis-file-suffix="$(DIS_SUFFIX)" \
|
25 |
|
|
--daem-file-suffix="$(DAEM_SUFFIX)"
|
26 |
|
|
|
27 |
wakaba |
1.1 |
MKDISDUMP_PL = $(MANAKAI_BIN_DIR)mkdisdump.pl
|
28 |
wakaba |
1.8 |
MKDISDUMP_OPTIONS = --with-implementators-note
|
29 |
wakaba |
1.7 |
MKDISDUMP = $(PERL_) $(MKDISDUMP_PL) $(MKDISDUMP_OPTIONS) $(DIS_OPTIONS_ALL)
|
30 |
wakaba |
1.1 |
|
31 |
|
|
DUMP_STYLESHEET_PATH = template/disdump.ja.xsl
|
32 |
|
|
DDLIST_STYLESHEET_PATH = template/ddlist.ja.xsl
|
33 |
|
|
|
34 |
wakaba |
1.3 |
MODULES_FILE_PATH_PREFIX = NAME-modules
|
35 |
wakaba |
1.1 |
HTML_CSS_STYLE_SHEET_URI = style/disdump-style.css
|
36 |
|
|
|
37 |
wakaba |
1.3 |
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\#
|
38 |
|
|
NS_DISLIB = http://suika.fam.cx/~wakaba/archive/2004/dis/
|
39 |
wakaba |
1.8 |
NS_DX = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/DOMException\#
|
40 |
wakaba |
1.3 |
NS_ERROR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/
|
41 |
|
|
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\#
|
42 |
wakaba |
1.8 |
NS_MANAKAIDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#
|
43 |
wakaba |
1.1 |
NS_MDOM = http://suika.fam.cx/~wakaba/archive/2004/8/18/manakai-dom\#ManakaiDOM.
|
44 |
wakaba |
1.3 |
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/
|
45 |
wakaba |
1.1 |
|
46 |
wakaba |
1.9 |
ALL_HTML = dom.html util.html error.html dis.html
|
47 |
wakaba |
1.1 |
|
48 |
wakaba |
1.5 |
DOM_DAC_FILE = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX)
|
49 |
wakaba |
1.8 |
MINIMPL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/DOM/feature-spec$(DAC_SUFFIX)
|
50 |
wakaba |
1.6 |
UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX)
|
51 |
|
|
DIS_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/disdoc$(DAC_SUFFIX)
|
52 |
wakaba |
1.3 |
|
53 |
|
|
all: $(ALL_HTML)
|
54 |
wakaba |
1.1 |
|
55 |
wakaba |
1.3 |
$(ALL_HTML): %.html: %-list.pl.tmp $(DUMP_STYLESHEET_PATH)
|
56 |
|
|
$(PERL) $<
|
57 |
wakaba |
1.1 |
|
58 |
wakaba |
1.3 |
$(ALL_HTML:.html=-list.pl.tmp): %.pl.tmp: %.xml.tmp $(DDLIST_STYLESHEET_PATH)
|
59 |
wakaba |
1.1 |
$(XALAN) -in $< -xsl $(DDLIST_STYLESHEET_PATH) -out $@ -text \
|
60 |
|
|
-param mode perl-script \
|
61 |
|
|
-param xalan-command "$(XALAN)" \
|
62 |
wakaba |
1.3 |
-param modules-file-path-prefix \
|
63 |
|
|
$(MODULES_FILE_PATH_PREFIX:NAME-%=$(<:-list.xml.tmp=)-%) \
|
64 |
wakaba |
1.1 |
-param html-style-sheet-uri $(HTML_CSS_STYLE_SHEET_URI) \
|
65 |
wakaba |
1.3 |
-param source-file-path $(<:-list.xml.tmp=.xml) \
|
66 |
wakaba |
1.1 |
-param disdump-stylesheet-file-path $(DUMP_STYLESHEET_PATH)
|
67 |
|
|
|
68 |
wakaba |
1.3 |
$(ALL_HTML:.html=-list.xml.tmp): %-list.xml.tmp: %.xml $(DUMP_STYLESHEET_PATH)
|
69 |
|
|
$(XALAN) -in $< -xsl $(DUMP_STYLESHEET_PATH) -out $@ -param mode list \
|
70 |
|
|
-param modules-file-path-prefix \
|
71 |
|
|
$(MODULES_FILE_PATH_PREFIX:NAME-%=$(<:.xml=)-%)
|
72 |
|
|
|
73 |
|
|
dom.xml: $(DOM_DAC_FILE)
|
74 |
|
|
$(MKDISDUMP) $< \
|
75 |
|
|
--module-uri="$(NS_MDOM)DOMFeature" \
|
76 |
|
|
--module-uri="$(NS_MDOM)DOMMain" \
|
77 |
|
|
--module-uri="$(NS_MDOM)DOMCore" \
|
78 |
|
|
--module-uri="$(NS_MDOM)DOMXML" \
|
79 |
wakaba |
1.4 |
--module-uri="$(NS_MDOM)DOMLS" \
|
80 |
wakaba |
1.6 |
--module-uri="$(NS_MDOM)GenericLS" \
|
81 |
wakaba |
1.3 |
--with-implementators-note > $@
|
82 |
|
|
|
83 |
|
|
util.xml: $(UTIL_DAC_FILE)
|
84 |
|
|
$(MKDISDUMP) $< \
|
85 |
|
|
--module-uri="$(NS_DISLIB)DISCore" \
|
86 |
|
|
--module-uri="$(NS_DISLIB)DISRDF" \
|
87 |
|
|
--module-uri="$(NS_DISLIB)DISIDL" \
|
88 |
|
|
--module-uri="$(NS_DISLIB)DISLang" \
|
89 |
|
|
--module-uri="$(NS_DISLIB)DISPerl" \
|
90 |
wakaba |
1.6 |
--module-uri="$(NS_DISLIB)DISMarkup" \
|
91 |
|
|
--module-uri="$(NS_DISLIB)XML" \
|
92 |
|
|
--module-uri="$(NS_DISLIB)NaturalLanguage" \
|
93 |
wakaba |
1.9 |
--module-uri="$(NS_DISLIB)Java" \
|
94 |
|
|
--module-uri="$(NS_DISLIB)ECMAScript" \
|
95 |
|
|
--module-uri="$(NS_DISLIB)Document" \
|
96 |
wakaba |
1.3 |
--module-uri="$(NS_UTIL)ManakaiNode" \
|
97 |
wakaba |
1.6 |
--with-implementators-note > $@
|
98 |
|
|
|
99 |
wakaba |
1.8 |
error.xml: $(UTIL_DAC_FILE)
|
100 |
|
|
$(MKDISDUMP) $< \
|
101 |
|
|
--resource-uri="$(NS_DX)ManakaiErrorModules" \
|
102 |
|
|
> $@
|
103 |
|
|
|
104 |
|
|
minimpl.xml: $(MINIMPL_DAC_FILE)
|
105 |
|
|
$(MKDISDUMP) $< \
|
106 |
|
|
--resource-uri="http://suika.fam.cx/~wakaba/archive/2004/dom/feature#spec.Document $(NS_MANAKAIDOM)ForSpecLatest" \
|
107 |
|
|
> $@
|
108 |
|
|
|
109 |
wakaba |
1.6 |
dis.xml: $(DIS_DAC_FILE)
|
110 |
|
|
$(MKDISDUMP) $< \
|
111 |
wakaba |
1.3 |
--module-uri="$(NS_MARKUP)SuikaWikiConfig21" \
|
112 |
wakaba |
1.4 |
--module-uri="$(NS_UTIL)PerlCode" \
|
113 |
wakaba |
1.3 |
--module-uri="$(NS_UTIL)DIS" \
|
114 |
wakaba |
1.4 |
--module-uri="$(NS_DIS)Perl" \
|
115 |
|
|
--module-uri="$(NS_DIS)Value" \
|
116 |
wakaba |
1.6 |
--module-uri="$(NS_DIS)DNLite" \
|
117 |
|
|
--module-uri="$(NS_DIS)DISDoc" \
|
118 |
|
|
--module-uri="$(NS_DIS)DISDump" \
|
119 |
wakaba |
1.3 |
--with-implementators-note > $@
|
120 |
|
|
|
121 |
wakaba |
1.1 |
clean:
|
122 |
wakaba |
1.3 |
$(RM) $(ALL_HTML:.html=-list.pl.tmp) $(ALL_HTML:.html=-list.xml.tmp) \
|
123 |
|
|
$(ALL_HTML:.html=.xml)
|
124 |
wakaba |
1.1 |
$(RM) *~ .*~ *.BAK .*.BAK
|
125 |
|
|
|
126 |
|
|
distclean: clean
|
127 |
|
|
$(RMR) ./Message ./http
|
128 |
|
|
|
129 |
wakaba |
1.9 |
## $Date: 2005/09/30 13:06:13 $
|
130 |
wakaba |
1.1 |
## License: Public Domain
|