Created by
João Neves
last modified
| # Portable Makefile to convert Org documents into
# EPUB using Pandoc.
# Should be easily extensible to accept other input/output formats.
SOURCE_DOCS!= find . -type f -iname '*.org'
EXPORTED_DOCS:=${SOURCE_DOCS:.org=.epub}
PANDOC:=pandoc
PANDOC_FROM_OPTS:=-f org
PANDOC_EPUB_OPTS:=-t epub3
.PHONY: all
all: ${EXPORTED_DOCS}
.PHONY: clean
clean:
find . -type f -iname '*.epub' -exec rm {} \;
.SUFFIXES: .org .epub
.org.epub:
${PANDOC} ${PANDOC_FROM_OPTS} ${PANDOC_EPUB_OPTS} -o $@ $<
|