Skip to content

Commit d7d3a07

Browse files
committed
Makefile: add pdf generation
1 parent 53126eb commit d7d3a07

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.back
2+
*.pdf

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,20 @@ ghpages_action:
3636
sudo apt update
3737
sudo ${APT_INSTALL} pandoc
3838
${MAKE} ghpages
39+
40+
pdf:
41+
pandoc README.md \
42+
--output codeincomplete.pdf \
43+
--standalone \
44+
--table-of-contents \
45+
--toc-depth=3 \
46+
--number-sections \
47+
--from gfm \
48+
--to pdf \
49+
--wrap=none \
50+
-V geometry:a4paper \
51+
-V geometry:margin=2.5cm \
52+
-V fontsize=12pt \
53+
--variable=date:"DATE: `date '+%Y-%m-%d'`" \
54+
--variable=author:"VERSION: `git describe --broken --dirty --always`" \
55+
--metadata title="Code Incomplete"

0 commit comments

Comments
 (0)