summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-24 21:14:49 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-24 21:14:49 -0800
commit9fb444cfffefe51967ae93b2dcca5ac2dd283abd (patch)
tree8b3bca88b008056637fe3dca12e9aa57ee547d79 /Makefile
parent1caeda5b537c5cd30f4fc2bf078a00265473894c (diff)
Makefile: Added update-spec target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f7a9335..50057bf 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ VERSION?=$(SPECVERSION)
RELEASE?=CommonMark-$(VERSION)
INSTALL_PREFIX?=/usr/local
-.PHONY: all cmake_build spec leakcheck clean fuzztest dingus upload test update-site upload-site debug mingw archive bench astyle
+.PHONY: all cmake_build spec leakcheck clean fuzztest dingus upload test update-site upload-site debug mingw archive bench astyle update-spec
all: cmake_build man/man3/cmark.3
@@ -79,6 +79,10 @@ $(SRCDIR)/case_fold_switch.inc: $(DATADIR)/CaseFolding-3.2.0.txt
$(SRCDIR)/scanners.c: $(SRCDIR)/scanners.re
re2c --case-insensitive -b -i --no-generation-date -o $@ $<
+update-spec:
+ curl 'https://raw.githubusercontent.com/jgm/CommonMark/master/spec.txt'\
+ > $(SPEC)
+
test: $(SPEC) cmake_build
make -C $(BUILDDIR) test || (cat $(BUILDDIR)/Testing/Temporary/LastTest.log && exit 1)