-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 876 Bytes
/
Makefile
File metadata and controls
20 lines (16 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all: date cover pdf
date:
touch main.adoc
cover:
libreoffice --headless --convert-to svg --outdir image data/sys-hier.odp
libreoffice --headless --convert-to svg --outdir image data/file-sys-hier.odp
libreoffice --headless --convert-to png --outdir /tmp data/cover.odg
libreoffice --headless --convert-to pdf --outdir /tmp data/cover.odg
magick /tmp/cover.png -crop 671x873+0+0 image/cover-back.png
magick /tmp/cover.png -crop 671x873+738+0 image/cover-front.png
mupdf /tmp/cover.pdf || evince /tmp/cover.pdf &
pdf:
asciidoctor-pdf -a pdf-style=default-notoserif-cjk-tc-pdf-1 -r asciidoctor-pdf-cjk -r ./remove-section-trailing-dot.rb main.adoc -o /tmp/book.pdf
mupdf /tmp/book.pdf || evince /tmp/book.pdf &
next:
asciidoctor-pdf -a scripts=cjk -a pdf-theme=face/default-notoserif-cjk-tc-theme.yml -r ./remove-section-trailing-dot.rb main.adoc -o /tmp/book.pdf