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