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