| 1 |
|
| 2 |
XSLT=xsltproc |
| 3 |
XSLT_OPTION=--catalogs --nonet |
| 4 |
|
| 5 |
DOCBOOKXSL=http://docbook.sourceforge.net/release/xsl/current |
| 6 |
HTMLHELP_XSLT=$(DOCBOOKXSL)/htmlhelp/htmlhelp.xsl |
| 7 |
#HTML-XSLT=$(DOCBOOKXSL)/html/docbook.xsl |
| 8 |
HTML_XSLT=$(DOCBOOKXSL)/xhtml/docbook.xsl |
| 9 |
FO_XSLT=$(DOCBOOKXSL)/fo/docbook.xsl |
| 10 |
|
| 11 |
HHC="/cygdrive/c/Program Files/HTML Help Workshop/hhc.exe" |
| 12 |
|
| 13 |
ZIPFILE=kev-tombo-doc |
| 14 |
|
| 15 |
# For some reason, the FOP stuff does not work, I get Java Exceptions |
| 16 |
# I'm trying to use the FOP jar from the Forrest installation. Perhaps |
| 17 |
# I need others? or I need to include other jars in the CLASSPATH? |
| 18 |
FOPCP=c:\bin\forrest\WEB-INF\lib\fop-0.20.5.jar |
| 19 |
FOP=java -jar $(FOPCP) org.apache.fop.apps.CommandLineStarter |
| 20 |
|
| 21 |
# ------------------------------------------------------------------- |
| 22 |
# Generic Rules |
| 23 |
# ------------------------------------------------------------------- |
| 24 |
|
| 25 |
# Generic rule to build .html from .xml |
| 26 |
%.html: %.xml |
| 27 |
$(XSLT) --output $@ $(HTML_XSLT) $< |
| 28 |
# tidy -asxhtml -utf8 -im $@ 2>nul: |
| 29 |
|
| 30 |
# Generic rule to build .chm from .hpp |
| 31 |
%.chm: %.hhp |
| 32 |
-$(HHC) $< |
| 33 |
# -hhc $< |
| 34 |
|
| 35 |
# ------------------------------------------------------------------- |
| 36 |
# ------------------------------------------------------------------- |
| 37 |
|
| 38 |
all: htmlhelp |
| 39 |
|
| 40 |
htmlhelp: UserGuide_en.chm UserGuide_jp.chm |
| 41 |
|
| 42 |
UserGuide_en.chm: UserGuide_en.hhp |
| 43 |
|
| 44 |
UserGuide_jp.chm: UserGuide_jp.hhp |
| 45 |
|
| 46 |
html: UserGuide_en.html |
| 47 |
|
| 48 |
fo: UserGuide_en.fo |
| 49 |
|
| 50 |
pdf: UserGuide_en.pdf |
| 51 |
|
| 52 |
UserGuide_en.pdf: UserGuide_en.fo |
| 53 |
$(FOP) UserGuide_en.fo UserGuide_en.pdf |
| 54 |
|
| 55 |
UserGuide_en.hhp: UserGuide_en.xml htmlhelp_en.xsl |
| 56 |
$(XSLT) $(XSLT_OPTION) htmlhelp_en.xsl $< |
| 57 |
|
| 58 |
UserGuide_jp.hhp: UserGuide_jp.xml htmlhelp_jp.xsl |
| 59 |
$(XSLT) $(XSLT_OPTION) htmlhelp_jp.xsl $< |
| 60 |
|
| 61 |
UserGuide_en.fo: UserGuide_en.xml |
| 62 |
$(XSLT) $(FO_XSLT) $< >$@ |
| 63 |
|
| 64 |
test: UserGuide_jp.xml CEHelp.xsl |
| 65 |
$(XSLT) $(XSLT_OPTION) CEHelp.xsl $< |
| 66 |
|
| 67 |
clean: |
| 68 |
rm -f *.html *.hhp *.hhk *.hhc *.fo *.htp |
| 69 |
|
| 70 |
zip: |
| 71 |
zip -9 $(ZIPFILE) * |