aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-12-09 22:28:26 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-12-09 22:28:26 +0100
commit9b98831061153f647ee2952a2dc5b351562183de (patch)
tree4be4ecb19c993cc32f4c09e7c0764b041f09c1ff /Makefile
parent0a2d6af06db880bf4062d444bf8b7e2df6aacef2 (diff)
Makefile updates.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 61b1d18..405fa38 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
SITE=_site
SPECVERSION=$(shell perl -ne 'print $$1 if /^version: *([0-9.]+)/' spec.txt)
-.PHONY: spec clean
+.PHONY: all clean npm
-spec: spec.html # spec.pdf spec.md
+all: spec.html # spec.pdf spec.md
spec.md: spec.txt tools/template.commonmark
lua tools/make_spec.lua commonmark < $< > $@
@@ -17,5 +17,10 @@ spec.tex: spec.txt tools/template.latex
spec.pdf: spec.tex
xelatex $<
+npm:
+ # Do a sanity check first on versions
+ grep -q '"version": *"$(SPECVERSION)' package.json && \
+ npm publish
+
clean:
-rm spec.tex spec.md spec.html