aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 61b1d18ffdf340b18d079a39dd40886e80368f44 (plain)
  1. SITE=_site
  2. SPECVERSION=$(shell perl -ne 'print $$1 if /^version: *([0-9.]+)/' spec.txt)
  3. .PHONY: spec clean
  4. spec: spec.html # spec.pdf spec.md
  5. spec.md: spec.txt tools/template.commonmark
  6. lua tools/make_spec.lua commonmark < $< > $@
  7. spec.html: spec.txt tools/template.html
  8. lua tools/make_spec.lua html < $< > $@
  9. spec.tex: spec.txt tools/template.latex
  10. lua tools/make_spec.lua latex < $< > $@
  11. spec.pdf: spec.tex
  12. xelatex $<
  13. clean:
  14. -rm spec.tex spec.md spec.html