Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 628 Bytes
SOURCE_FILE_NAME = redis.md
BOOK_FILE_NAME = redis
PDF_BUILDER = pandoc
PDF_BUILDER_FLAGS = \
--latex-engine xelatex \
--template ../common/pdf-template.tex \
--listings
EPUB_BUILDER = pandoc
EPUB_BUILDER_FLAGS = \
--epub-cover-image
MOBI_BUILDER = kindlegen
en/redis.pdf:
cd en && $(PDF_BUILDER) $(PDF_BUILDER_FLAGS) $(SOURCE_FILE_NAME) -o $(BOOK_FILE_NAME).pdf
en/redis.epub: en/title.png en/title.txt en/redis.md
$(EPUB_BUILDER) $(EPUB_BUILDER_FLAGS) $^ -o $@
en/redis.mobi: en/redis.epub
$(MOBI_BUILDER) $^
clean:
rm -f */$(BOOK_FILE_NAME).pdf
rm -f */$(BOOK_FILE_NAME).epub
rm -f */$(BOOK_FILE_NAME).mobi