aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f50996bbbb868cccd707b1daa3f419fe679b16a6 (plain)
  1. SPEC=spec.txt
  2. SITE=_site
  3. SPECVERSION=$(shell perl -ne 'print $$1 if /^version: *([0-9.]+)/' $(SPEC))
  4. .PHONY: spec update-site upload-site
  5. spec: spec.html # spec.pdf
  6. spec.md: $(SPEC)
  7. python3 tools/makespec.py markdown > $@
  8. spec.html: spec.txt tools/template.html
  9. python3 tools/makespec.py html > $@
  10. spec.pdf: spec.md tools/template.tex tools/specfilter.hs
  11. pandoc -s $< --template tools/template.tex \
  12. --filter tools/specfilter.hs -o $@ --latex-engine=xelatex --toc \
  13. --number-sections --toc-depth=2 --no-highlight \
  14. -V documentclass=report \
  15. -V classoption=twosides