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