-
-
Notifications
You must be signed in to change notification settings - Fork 351
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 666 Bytes
/
Makefile
File metadata and controls
29 lines (20 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SITE=_site
SPECVERSION=$(shell perl -ne 'print $$1 if /^version: *([0-9.]+)/' spec.txt)
.PHONY: all clean npm
all: spec.html # spec.pdf spec.md
spec.md: spec.txt tools/template.commonmark
lua tools/make_spec.lua commonmark < $< > $@
spec.html: spec.txt tools/template.html
lua tools/make_spec.lua html < $< > $@
spec.tex: spec.txt tools/template.latex
lua tools/make_spec.lua latex < $< > $@
spec.pdf: spec.tex
xelatex $<
spec.json: spec.txt
python3 test/spec_tests.py --dump-tests < $< > $@
npm:
# Do a sanity check first on versions
grep -q '"version": *"$(SPECVERSION)' package.json && \
npm publish
clean:
-rm spec.tex spec.md spec.html