Hello folks,

I have a ConTeXt Project for a small and simple book, that has the 'basic 
example' project structure with .../images, .../chapters, .../products etc. I 
use a Makefile to comppile the book when in the .../chapters directory, as 
attached below. I use "texexec --pdf" and probably ConTeXt MkII from the MacTeX 
2012 distribution.

I'd like to make an EPUB from this book as well. I suspect that means going 
over to LuaTeX/MkIV and doing extra stuff. I got lost in the ConTeXt 
documentation (for as much as there is, old and new) and would appreciate an 
instruction on how to do this that does not suppose I am a ConTeXt wizard who 
is doing stuff like this daily. Is there such a thing?

Gerben


OPEN=echo
MODE=--mode=standalone
ONCE=--once

.SUFFIXES: .pdf .tex .open

.pdf.open:
        open $<

.tex.pdf:
        texexec --pdf ${MODE} ${ONCE} $<

IMAGEDIR=../images
MPDIR=../mp
PRODUCTSDIR=../products

TEXS=c_loosely.tex c_standard.tex c_problem.tex c_index.tex c_endnotes.tex \
        c_better.tex
OPENS=c_loosely.open c_standard.open c_problem.open c_better.open
PDFS=c_loosely.pdf c_standard.pdf c_problem.pdf c_better.pdf
CDISCRETEIMAGES=
CLOGICIMAGES=
BOOKIMAGES=     ${CDISCRETEIMAGES} ${CLOGICIMAGES}

#.PHONY: $(OPENS)

default:
        make ONCE="--once" book-open

full:
        make ONCE="" book-open

all:    $(PDFS)

clean:
        rm %*

all-open:       $(OPENS)

book-open: book
        open prd_book.pdf

book: prd_book.pdf

prd_book.pdf: ${PRODUCTSDIR}/prd_book.tex $(TEXS) $(BOOKIMAGES)
        make MODE="--mode=editor" ONCE="${ONCE}" ${PRODUCTSDIR}/prd_book.pdf

Attachment: smime.p7s
Description: S/MIME cryptographic signature

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to