Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/working_draft' into 557-normativ…
Browse files Browse the repository at this point in the history
…e-reqs-update-preview
  • Loading branch information
ijurica committed Dec 18, 2024
2 parents 16160b1 + 381b8e1 commit 77677cf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions specification/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PANDOC=$(shell which pandoc)
MARKDOWNPP=../vendored/bin/markdown-pp
PYMARKDOWNLNT=$(shell which pymarkdownlnt)
WKHTMLTOPDF=$(shell which wkhtmltopdf)
ifeq ($(STYLE),)
STYLE="working_draft"
endif
Expand All @@ -11,12 +12,13 @@ SPEC_SOURCE_MDFILES=$(filter-out %.mdpp, $(SPEC_SOURCE_FILES))
export TOCDEPTH=2
all: spec.md spec.pdf spec.html

spec.pdf: spec.md
$(PANDOC) spec.md -o $@ -f gfm --css=styles/${STYLE}.css $(PDF_MARGINS) $(PDF_FOOTER) --pdf-engine=wkhtmltopdf

spec.html:
spec.html: spec.md
$(PANDOC) spec.md -o $@ -f gfm -s --css=styles/${STYLE}_html.css

spec.pdf: spec.html
$(PANDOC) spec.md -o spec_pdf.html -f gfm -s --css=styles/${STYLE}.css $(PDF_MARGINS)
$(WKHTMLTOPDF) --enable-local-file-access --footer-right "[page] of [topage]" --footer-font-name "Palatino" --footer-font-size 8 spec_pdf.html $@

spec.md: $(SPEC_SOURCE_FILES)
ifneq ("$(wildcard versions/${STYLE}.md)","")
cp versions/${STYLE}.md version.md
Expand All @@ -37,4 +39,4 @@ endif
$(PYMARKDOWNLNT) --config markdownlnt.cfg scan $@

clean:
rm -f spec.pdf spec.html spec.md version.md
rm -f spec.pdf spec.html spec.md spec_pdf.md version.md

0 comments on commit 77677cf

Please sign in to comment.