Skip to content

Commit

Permalink
Makefile updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Dec 9, 2016
1 parent 0a2d6af commit 9b98831
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions 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 < $< > $@
Expand All @@ -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

0 comments on commit 9b98831

Please sign in to comment.