-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
34 lines (23 loc) · 933 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SAXON=java -cp $(HOME)/bin/saxon9he/saxon9he.jar net.sf.saxon.Transform
SAXONFLAGS=
RSH=rsh.xml
all: rsh-pleco.txt rsh-pleco-pinyin.txt rsh-table.txt
rsh-pleco.txt: userdict.xsl $(RSH)
$(SAXON) $(SAXONFLAGS) -o:$@ -s:$(RSH) -xsl:$<
rsh-pleco-pinyin.txt: userdict.xsl $(RSH)
$(SAXON) $(SAXONFLAGS) -o:$@ -s:$(RSH) -xsl:$< ?config-pinyin='true()'
rsh.html: html.xsl $(RSH)
$(SAXON) $(SAXONFLAGS) -o:$@ -s:$(RSH) -xsl:$<
rsh-table.txt: table.xsl $(RSH)
$(SAXON) $(SAXONFLAGS) -o:$@ -s:$(RSH) -xsl:$<
test: heisig.xsd $(RSH)
xmllint --nonet --noout --schema $< $(RSH)
release: heisig-release.zip
%.zip: rsh-pleco.txt rsh-pleco-pinyin.txt rsh-table.txt
zip -9 $@ $^
clean:
rm -f rsh-pleco.txt rsh-pleco-pinyin.txt rsh.html rsh-table.txt heisig-release.zip
table.xsl: util.xsl reading.xml traditional.xml measure.xml surname.xml exclamative.xml
ebook.xsl: util.xsl reading.xml
html.xsl: ebook.xsl
userdict.xsl: ebook.xsl