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 = .dac |
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 = $(PERL) $(PERL_OPTIONS) $(MKDISDUMP_PL) |
19 |
|
|
20 |
DUMP_STYLESHEET_PATH = template/disdump.ja.xsl |
DUMP_STYLESHEET_PATH = template/disdump.ja.xsl |
21 |
DDLIST_STYLESHEET_PATH = template/ddlist.ja.xsl |
DDLIST_STYLESHEET_PATH = template/ddlist.ja.xsl |
22 |
|
|
23 |
MODULES_FILE_PATH_PREFIX = core-modules |
MODULES_FILE_PATH_PREFIX = NAME-modules |
24 |
HTML_CSS_STYLE_SHEET_URI = style/disdump-style.css |
HTML_CSS_STYLE_SHEET_URI = style/disdump-style.css |
25 |
|
|
26 |
|
NS_DIS = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/DIS\# |
27 |
|
NS_DISLIB = http://suika.fam.cx/~wakaba/archive/2004/dis/ |
28 |
|
NS_ERROR = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/Error/ |
29 |
|
NS_MARKUP = http://suika.fam.cx/~wakaba/archive/2005/manakai/Markup\# |
30 |
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. |
31 |
|
NS_UTIL = http://suika.fam.cx/~wakaba/archive/2005/manakai/Util/ |
32 |
|
|
33 |
all: doc-filelist.pl.tmp doc.xml $(DUMP_STYLESHEET_PATH) |
ALL_HTML = dom.html util.html |
|
$(PERL) doc-filelist.pl.tmp |
|
34 |
|
|
35 |
doc.xml: |
DOM_DAC_FILE = $(MANAKAI_LIB_DIR)Message/DOM/core$(DAC_SUFFIX) |
36 |
$(MKDISDUMP) $(MANAKAI_LIB_DIR)Message/DOM/core.dac \ |
#UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/disdoc$(DAC_SUFFIX) |
37 |
--module-uri="$(NS_MDOM)DOMCore" \ |
UTIL_DAC_FILE = $(MANAKAI_LIB_DIR)Message/Util/discore$(DAC_SUFFIX) |
|
--module-uri="$(NS_MDOM)DOMMain" \ |
|
|
--module-uri="$(NS_MDOM)DOMFeature" \ |
|
|
--with-implementators-note > $@ |
|
38 |
|
|
39 |
doc-filelist.xml.tmp: doc.xml $(DUMP_STYLESHEET_PATH) |
all: $(ALL_HTML) |
|
$(XALAN) -in $< -xsl $(DUMP_STYLESHEET_PATH) -out $@ -param mode list \ |
|
|
-param modules-file-path-prefix $(MODULES_FILE_PATH_PREFIX) |
|
40 |
|
|
41 |
doc-filelist.pl.tmp: doc-filelist.xml.tmp $(DDLIST_STYLESHEET_PATH) |
$(ALL_HTML): %.html: %-list.pl.tmp $(DUMP_STYLESHEET_PATH) |
42 |
|
$(PERL) $< |
43 |
|
|
44 |
|
$(ALL_HTML:.html=-list.pl.tmp): %.pl.tmp: %.xml.tmp $(DDLIST_STYLESHEET_PATH) |
45 |
$(XALAN) -in $< -xsl $(DDLIST_STYLESHEET_PATH) -out $@ -text \ |
$(XALAN) -in $< -xsl $(DDLIST_STYLESHEET_PATH) -out $@ -text \ |
46 |
-param mode perl-script \ |
-param mode perl-script \ |
47 |
-param xalan-command "$(XALAN)" \ |
-param xalan-command "$(XALAN)" \ |
48 |
-param modules-file-path-prefix $(MODULES_FILE_PATH_PREFIX) \ |
-param modules-file-path-prefix \ |
49 |
|
$(MODULES_FILE_PATH_PREFIX:NAME-%=$(<:-list.xml.tmp=)-%) \ |
50 |
-param html-style-sheet-uri $(HTML_CSS_STYLE_SHEET_URI) \ |
-param html-style-sheet-uri $(HTML_CSS_STYLE_SHEET_URI) \ |
51 |
-param source-file-path doc.xml \ |
-param source-file-path $(<:-list.xml.tmp=.xml) \ |
52 |
-param disdump-stylesheet-file-path $(DUMP_STYLESHEET_PATH) |
-param disdump-stylesheet-file-path $(DUMP_STYLESHEET_PATH) |
53 |
|
|
54 |
|
$(ALL_HTML:.html=-list.xml.tmp): %-list.xml.tmp: %.xml $(DUMP_STYLESHEET_PATH) |
55 |
|
$(XALAN) -in $< -xsl $(DUMP_STYLESHEET_PATH) -out $@ -param mode list \ |
56 |
|
-param modules-file-path-prefix \ |
57 |
|
$(MODULES_FILE_PATH_PREFIX:NAME-%=$(<:.xml=)-%) |
58 |
|
|
59 |
|
dom.xml: $(DOM_DAC_FILE) |
60 |
|
$(MKDISDUMP) $< \ |
61 |
|
--module-uri="$(NS_MDOM)DOMFeature" \ |
62 |
|
--module-uri="$(NS_MDOM)DOMMain" \ |
63 |
|
--module-uri="$(NS_MDOM)DOMCore" \ |
64 |
|
--module-uri="$(NS_MDOM)DOMXML" \ |
65 |
|
--module-uri="$(NS_MDOM)DOMLS" \ |
66 |
|
--with-implementators-note > $@ |
67 |
|
|
68 |
|
util.xml: $(UTIL_DAC_FILE) |
69 |
|
$(MKDISDUMP) $< \ |
70 |
|
--module-uri="$(NS_DISLIB)DISCore" \ |
71 |
|
--module-uri="$(NS_DISLIB)DISRDF" \ |
72 |
|
--module-uri="$(NS_DISLIB)DISIDL" \ |
73 |
|
--module-uri="$(NS_DISLIB)DISLang" \ |
74 |
|
--module-uri="$(NS_DISLIB)DISPerl" \ |
75 |
|
--module-uri="$(NS_UTIL)ManakaiNode" \ |
76 |
|
--module-uri="$(NS_ERROR)Core" \ |
77 |
|
--module-uri="$(NS_ERROR)DOMException" \ |
78 |
|
--module-uri="$(NS_MARKUP)SuikaWikiConfig21" \ |
79 |
|
--module-uri="$(NS_UTIL)PerlCode" \ |
80 |
|
--module-uri="$(NS_UTIL)DIS" \ |
81 |
|
--module-uri="$(NS_DIS)Perl" \ |
82 |
|
--module-uri="$(NS_DIS)Value" \ |
83 |
|
--with-implementators-note > $@ |
84 |
|
# --module-uri="$(NS_DIS)DISDoc" \ |
85 |
|
# --module-uri="$(NS_DIS)DISDump" \ |
86 |
|
|
87 |
clean: |
clean: |
88 |
$(RM) doc-filelist.pl.tmp doc-filelist.xml.tmp |
$(RM) $(ALL_HTML:.html=-list.pl.tmp) $(ALL_HTML:.html=-list.xml.tmp) \ |
89 |
|
$(ALL_HTML:.html=.xml) |
90 |
$(RM) *~ .*~ *.BAK .*.BAK |
$(RM) *~ .*~ *.BAK .*.BAK |
91 |
|
|
92 |
distclean: clean |
distclean: clean |
93 |
$(RMR) ./Message ./http |
$(RMR) ./Message ./http |
94 |
|
|
95 |
|
## $Date$ |
96 |
## License: Public Domain |
## License: Public Domain |