-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
54 lines (37 loc) · 882 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
all: gitbook pdf
word :
Rscript --quiet _render.R "bookdown::word_document2"
gitbook:
Rscript --quiet _render.R "bookdown::gitbook"
pdf:
Rscript --quiet _render.R "bookdown::pdf_book" ;\
cp docs/pharmapk.pdf ./pdf-"$$(date +"%H-%M")".pdf ;\
ls *.pdf
epub:
Rscript --quiet _render.R "bookdown::epub_book"
cppdf:
cp docs/basic.pdf ./pdf-"$$(date +"%H-%M")".pdf
pdfcp:
cp references/book-basic-1.pdf docs/
crop:
sh _shell/_crop.sh ; cp docs/basic.pdf basic-no-crop.pdf
allindex: indexko indexen
index:
Rscript _index/_make_index.R
print:
cat _shell/_index_en.sh
indexko:
sh -x _index.sh
indexen:
sh -x _shell/_index_en.sh
soclean: clean del
clean:
rm -rf docs _bookdown_files basic.*
del:
rm pdf-*.pdf tmp-*.pdf
check:
sh _shell/_check.sh
serve:
Rscript -e "bookdown::serve_book()"
a5:
magick -density 300 -page A5 basic-crop.pdf basic-crop-A5.pdf