2 |
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
MANAKAI_BIN_DIR = $(MANAKAI_ROOT_DIR)bin/ |
3 |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
MANAKAI_LIB_DIR = $(MANAKAI_ROOT_DIR)lib/ |
4 |
|
|
5 |
|
DAC_SUFFIX = .dad |
6 |
|
|
7 |
RM = rm -f |
RM = rm -f |
8 |
|
|
9 |
JAVA = java |
JAVA = java |
12 |
XALAN_PATH = d:/Program_Files/xalan/xalan.jar |
XALAN_PATH = d:/Program_Files/xalan/xalan.jar |
13 |
XALAN = $(JAVA) -cp $(XALAN_PATH) org.apache.xalan.xslt.Process |
XALAN = $(JAVA) -cp $(XALAN_PATH) org.apache.xalan.xslt.Process |
14 |
|
|
15 |
|
PERL_OPTIONS = -I$(MANAKAI_LIB_DIR) |
16 |
PERL = perl |
PERL = perl |
17 |
MKDISDUMP_PL = $(MANAKAI_BIN_DIR)mkdisdump.pl |
MKDISDUMP_PL = $(MANAKAI_BIN_DIR)mkdisdump.pl |
18 |
MKDISDUMP = $(PERL) -I$(MANAKAI_LIB_DIR) $(MKDISDUMP_PL) |
MKDISDUMP_OPTIONS = |
19 |
|
MKDISDUMP = $(PERL) $(PERL_OPTIONS) $(MKDISDUMP_PL) $(MKDISDUMP_OPTIONS) |
20 |
|
|
21 |
DUMP_STYLESHEET_PATH = template/disdump.ja.xsl |
DUMP_STYLESHEET_PATH = template/disdump.ja.xsl |
22 |
DDLIST_STYLESHEET_PATH = template/ddlist.ja.xsl |
DDLIST_STYLESHEET_PATH = template/ddlist.ja.xsl |
23 |
|
|
24 |
MODULES_FILE_PATH_PREFIX = core-modules |
MODULES_FILE_PATH_PREFIX = NAME-modules |
25 |
HTML_CSS_STYLE_SHEET_URI = style/disdump-style.css |
HTML_CSS_STYLE_SHEET_URI = style/disdump-style.css |
26 |
|
|
27 |
|
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
28 |
|
NS_DISLIB = http://suika.fam.cx/~wakaba/archive/2004/dis/ |
29 |
|
NS_ERROR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
30 |
|
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\# |
31 |
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. |
32 |
|
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
33 |
|
|
34 |
all: doc-filelist.pl.tmp doc.xml $(DUMP_STYLESHEET_PATH) |
ALL_HTML = dom.html util.html |
|
$(PERL) doc-filelist.pl.tmp |
|
35 |
|
|
36 |
doc.xml: |
DOM_DAC_FILE = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX) |
37 |
$(MKDISDUMP) $(MANAKAI_LIB_DIR)Message/DOM/core.dac \ |
UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/core$(DAC_SUFFIX) |
38 |
--module-uri="$(NS_MDOM)DOMCore" \ |
DIS_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/disdoc$(DAC_SUFFIX) |
|
--module-uri="$(NS_MDOM)DOMMain" \ |
|
|
--module-uri="$(NS_MDOM)DOMFeature" \ |
|
|
--with-implementators-note > $@ |
|
39 |
|
|
40 |
doc-filelist.xml.tmp: doc.xml $(DUMP_STYLESHEET_PATH) |
all: $(ALL_HTML) |
41 |
$(XALAN) -in $< -xsl $(DUMP_STYLESHEET_PATH) -out $@ -param mode list \ |
|
42 |
-param modules-file-path-prefix $(MODULES_FILE_PATH_PREFIX) |
$(ALL_HTML): %.html: %-list.pl.tmp $(DUMP_STYLESHEET_PATH) |
43 |
|
$(PERL) $< |
44 |
|
|
45 |
doc-filelist.pl.tmp: doc-filelist.xml.tmp $(DDLIST_STYLESHEET_PATH) |
$(ALL_HTML:.html=-list.pl.tmp): %.pl.tmp: %.xml.tmp $(DDLIST_STYLESHEET_PATH) |
46 |
$(XALAN) -in $< -xsl $(DDLIST_STYLESHEET_PATH) -out $@ -text \ |
$(XALAN) -in $< -xsl $(DDLIST_STYLESHEET_PATH) -out $@ -text \ |
47 |
-param mode perl-script \ |
-param mode perl-script \ |
48 |
-param xalan-command "$(XALAN)" \ |
-param xalan-command "$(XALAN)" \ |
49 |
-param modules-file-path-prefix $(MODULES_FILE_PATH_PREFIX) \ |
-param modules-file-path-prefix \ |
50 |
|
$(MODULES_FILE_PATH_PREFIX:NAME-%=$(<:-list.xml.tmp=)-%) \ |
51 |
-param html-style-sheet-uri $(HTML_CSS_STYLE_SHEET_URI) \ |
-param html-style-sheet-uri $(HTML_CSS_STYLE_SHEET_URI) \ |
52 |
-param source-file-path doc.xml \ |
-param source-file-path $(<:-list.xml.tmp=.xml) \ |
53 |
-param disdump-stylesheet-file-path $(DUMP_STYLESHEET_PATH) |
-param disdump-stylesheet-file-path $(DUMP_STYLESHEET_PATH) |
54 |
|
|
55 |
|
$(ALL_HTML:.html=-list.xml.tmp): %-list.xml.tmp: %.xml $(DUMP_STYLESHEET_PATH) |
56 |
|
$(XALAN) -in $< -xsl $(DUMP_STYLESHEET_PATH) -out $@ -param mode list \ |
57 |
|
-param modules-file-path-prefix \ |
58 |
|
$(MODULES_FILE_PATH_PREFIX:NAME-%=$(<:.xml=)-%) |
59 |
|
|
60 |
|
dom.xml: $(DOM_DAC_FILE) |
61 |
|
$(MKDISDUMP) $< \ |
62 |
|
--module-uri="$(NS_MDOM)DOMFeature" \ |
63 |
|
--module-uri="$(NS_MDOM)DOMMain" \ |
64 |
|
--module-uri="$(NS_MDOM)DOMCore" \ |
65 |
|
--module-uri="$(NS_MDOM)DOMXML" \ |
66 |
|
--module-uri="$(NS_MDOM)DOMLS" \ |
67 |
|
--module-uri="$(NS_MDOM)GenericLS" \ |
68 |
|
--with-implementators-note > $@ |
69 |
|
|
70 |
|
util.xml: $(UTIL_DAC_FILE) |
71 |
|
$(MKDISDUMP) $< \ |
72 |
|
--module-uri="$(NS_DISLIB)DISCore" \ |
73 |
|
--module-uri="$(NS_DISLIB)DISRDF" \ |
74 |
|
--module-uri="$(NS_DISLIB)DISIDL" \ |
75 |
|
--module-uri="$(NS_DISLIB)DISLang" \ |
76 |
|
--module-uri="$(NS_DISLIB)DISPerl" \ |
77 |
|
--module-uri="$(NS_DISLIB)DISMarkup" \ |
78 |
|
--module-uri="$(NS_DISLIB)XML" \ |
79 |
|
--module-uri="$(NS_DISLIB)NaturalLanguage" \ |
80 |
|
--module-uri="$(NS_UTIL)ManakaiNode" \ |
81 |
|
--module-uri="$(NS_ERROR)Core" \ |
82 |
|
--module-uri="$(NS_ERROR)DOMException" \ |
83 |
|
--with-implementators-note > $@ |
84 |
|
|
85 |
|
dis.xml: $(DIS_DAC_FILE) |
86 |
|
$(MKDISDUMP) $< \ |
87 |
|
--module-uri="$(NS_MARKUP)SuikaWikiConfig21" \ |
88 |
|
--module-uri="$(NS_UTIL)PerlCode" \ |
89 |
|
--module-uri="$(NS_UTIL)DIS" \ |
90 |
|
--module-uri="$(NS_DIS)Perl" \ |
91 |
|
--module-uri="$(NS_DIS)Value" \ |
92 |
|
--module-uri="$(NS_DIS)DNLite" \ |
93 |
|
--module-uri="$(NS_DIS)DISDoc" \ |
94 |
|
--module-uri="$(NS_DIS)DISDump" \ |
95 |
|
--with-implementators-note > $@ |
96 |
|
|
97 |
clean: |
clean: |
98 |
$(RM) doc-filelist.pl.tmp doc-filelist.xml.tmp |
$(RM) $(ALL_HTML:.html=-list.pl.tmp) $(ALL_HTML:.html=-list.xml.tmp) \ |
99 |
|
$(ALL_HTML:.html=.xml) |
100 |
$(RM) *~ .*~ *.BAK .*.BAK |
$(RM) *~ .*~ *.BAK .*.BAK |
101 |
|
|
102 |
distclean: clean |
distclean: clean |
103 |
$(RMR) ./Message ./http |
$(RMR) ./Message ./http |
104 |
|
|
105 |
|
## $Date$ |
106 |
## License: Public Domain |
## License: Public Domain |