summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c027f5c)
Instead of hardcoded xsltproc path and using zip ourselves, just use
xmlto, which delegates epub post-process to a script which handles all
this for us (doing the same thing). Left previous commit in, so have
something to revert to if adding cover art or the like proves annoying
with xmlto in the way.
Added *.epub to "make clean"
@echo "** One other possible target is 'exim.8'".
exit 1
@echo "** One other possible target is 'exim.8'".
exit 1
-EPUB_DOCBOOK= /usr/local/share/xsl/docbook/epub/docbook.xsl
-
############################# EVERYTHING ###############################
#
# Generate all the documentation files...
############################# EVERYTHING ###############################
#
# Generate all the documentation files...
makeinfo -o filter.info filter.texinfo
filter.epub: filter-epub.xml
makeinfo -o filter.info filter.texinfo
filter.epub: filter-epub.xml
- rm -rf book-filter
- mkdir book-filter
- xsltproc -o book-filter/ $(EPUB_DOCBOOK) filter-epub.xml
- echo "application/epub+zip" > book-filter/mimetype
- ( cd book-filter; zip -XqD ../filter.epub mimetype )
- ( cd book-filter; zip -Xr9D ../filter.epub META-INF OEBPS )
+ xmlto epub filter-epub.xml
+ mv filter-epub.epub filter.epub
########################################################################
########################################################################
makeinfo -o spec.info --no-split spec.texinfo
spec.epub: spec-epub.xml
makeinfo -o spec.info --no-split spec.texinfo
spec.epub: spec-epub.xml
- rm -rf book-spec
- mkdir book-spec
- xsltproc -o book-spec/ $(EPUB_DOCBOOK) spec-epub.xml
- echo "application/epub+zip" > book-spec/mimetype
- ( cd book-spec; zip -XqD ../spec.epub mimetype )
- ( cd book-spec; zip -Xr9D ../spec.epub META-INF OEBPS )
+ xmlto epub spec-epub.xml
+ mv spec-epub.epub spec.epub
########################################################################
########################################################################
*.fo *.pdf *.ps \
filter*.html spec*.html test*.html \
filter*.txt spec*.txt test*.txt \
*.fo *.pdf *.ps \
filter*.html spec*.html test*.html \
filter*.txt spec*.txt test*.txt \
- *.info* *.texinfo *.texi
+ *.info* *.texinfo *.texi \
+ *.epub
########################################################################
# vim: set ts=4 :
########################################################################
# vim: set ts=4 :