@@ -18,58 +18,44 @@ KINDLE = ${EPUB} -a ebook-format=kf8
1818all : html raw_html pdf
1919# all: clean manpage html raw_html pdf compressed_pdf epub kindle
2020
21- manpage : _build/book.1
21+ manpage :
22+ asciidoctor ${MANPAGE} ${OUTPUT_FOLDER} --out-file=${OUTPUT} .1 ${INPUT} .adoc; \
2223
2324html :
2425 asciidoctor ${HTML} ${REQUIRES} ${OUTPUT_FOLDER} --out-file=${OUTPUT} .html ${INPUT} .adoc; \
2526
26- raw_html : _build/raw_book.html
27-
28- pdf : _build/book.pdf
29-
30- compressed_pdf : _build/compressed_book.pdf
31-
32- epub : _build/book.epub
33-
34- kindle : _build/book.mobi
35-
36- stats :
37- wc -w chapters/* .adoc
38-
39- clean :
40- if [ -d " .asciidoctor" ]; \
41- then rm -r .asciidoctor; \
42- fi ; \
43- if [ -d " ${DIR} " ]; \
44- then rm -r ${DIR} ; \
45- fi ; \
46-
47- # Private targets
48-
49- _build/book.1 :
50- asciidoctor ${MANPAGE} ${OUTPUT_FOLDER} --out-file=${OUTPUT} .1 ${INPUT} .adoc; \
51-
52- _build/raw_book.html :
27+ raw_html :
5328 asciidoctor ${RAW_HTML} ${REQUIRES} ${OUTPUT_FOLDER} --out-file=raw_${OUTPUT} .html ${INPUT} .adoc; \
5429
5530# https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc
5631# check _resources/pdfstyles
57- _build/book. pdf :
32+ pdf :
5833 asciidoctor ${PDF} ${REQUIRES} ${OUTPUT_FOLDER} --out-file=${OUTPUT} .pdf ${INPUT} .adoc; \
5934
6035# Courtesy of
6136# http://www.smartjava.org/content/compress-pdf-mac-using-command-line-free
6237# Requires `brew install ghostscript`
63- _build/compressed_book.pdf : _build/book. pdf
38+ compressed_pdf : pdf
6439 gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=${DIR} /compressed_book.pdf ${DIR} /book.pdf; \
6540
6641# check _resources/epubstyles
67- _build/book. epub :
42+ epub :
6843 asciidoctor ${EPUB} ${REQUIRES} ${OUTPUT_FOLDER} --out-file=${OUTPUT} .epub ${INPUT} .adoc; \
6944
70- _build/book.mobi :
45+ kindle :
7146 asciidoctor ${KINDLE} ${REQUIRES} ${OUTPUT_FOLDER} --out-file=${OUTPUT} .mobi ${INPUT} .adoc; \
7247 if [ -e " ${DIR} /${OUTPUT} -kf8.epub" ]; \
7348 then rm ${DIR} /${OUTPUT} -kf8.epub; \
7449 fi ; \
7550
51+ stats :
52+ wc -w chapters/* .adoc
53+
54+ clean :
55+ if [ -d " .asciidoctor" ]; \
56+ then rm -r .asciidoctor; \
57+ fi ; \
58+ if [ -d " ${DIR} " ]; \
59+ then rm -r ${DIR} ; \
60+ fi ; \
61+
0 commit comments