Skip to content

Commit 075032a

Browse files
Merge pull request #165 from ossf/makefile_update
Extend makefile to simplify debugging
2 parents 9f15e48 + f3adc77 commit 075032a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

makefile

+18-1
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,29 @@ toc.md: secure_software_development_fundamentals.md tocignore
1313
linklist.md: toc.md make_linklist
1414
./make_linklist < toc.md > linklist.md
1515

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+
1625
# This requires wkhtmltopdf because it goes via HTML
1726
# https://plaintextproject.online/articles/2022/04/06/pdf.html
1827
# https://stackoverflow.com/questions/38455078/specifying-papersize-for-md-to-pdf-conversion
1928
# We don't include this because it shows the title twice:
2029
# --metadata title="Secure Software Development Fundamentals"
2130
book.pdf: secure_software_development_fundamentals.md
22-
pandoc -f gfm --pdf-engine=wkhtmltopdf \
31+
$(PANDOC) $(PANDOCFLAGS) --pdf-engine=wkhtmltopdf \
2332
--css=print.css -V geometry:a4paper -o book.pdf \
2433
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

Comments
 (0)