@@ -13,12 +13,29 @@ toc.md: secure_software_development_fundamentals.md tocignore
13
13
linklist.md : toc.md make_linklist
14
14
./make_linklist < toc.md > linklist.md
15
15
16
+ # Generate user-viewable versions.
17
+ # NOTE: This is intended to help develop and debug the course.
18
+ # If you simply want to *learn* the material, this is a terrible way to do it.
19
+ # Instead, take the free course, it's available here:
20
+ # https://training.linuxfoundation.org/training/developing-secure-software-lfd121/
21
+
22
+ PANDOC = pandoc
23
+ PANDOCFLAGS = -f gfm-tex_math_dollars
24
+
16
25
# This requires wkhtmltopdf because it goes via HTML
17
26
# https://plaintextproject.online/articles/2022/04/06/pdf.html
18
27
# https://stackoverflow.com/questions/38455078/specifying-papersize-for-md-to-pdf-conversion
19
28
# We don't include this because it shows the title twice:
20
29
# --metadata title="Secure Software Development Fundamentals"
21
30
book.pdf : secure_software_development_fundamentals.md
22
- pandoc -f gfm --pdf-engine=wkhtmltopdf \
31
+ $( PANDOC ) $( PANDOCFLAGS ) --pdf-engine=wkhtmltopdf \
23
32
--css=print.css -V geometry:a4paper -o book.pdf \
24
33
secure_software_development_fundamentals.md
34
+
35
+ secure_software_development_fundamentals.html : \
36
+ secure_software_development_fundamentals.md
37
+ $(PANDOC) $(PANDOCFLAGS) -t html $< > $@
38
+
39
+ html : secure_software_development_fundamentals.html
40
+
41
+ .PHONY : all lint html
0 commit comments