From 96a4c15fa45c8093055bbfcffc7572ac801ecc62 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 11 Nov 2014 16:58:49 -0800 Subject: Added npm target. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7007dff..b383ec7 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ BUILDDIR=build FUZZCHARS?=2000000 # for fuzztest PROG?=$(BUILDDIR)/src/cmark -.PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site check +.PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site check npm debug all: check mkdir -p $(BUILDDIR); cd build; cmake .. -DCMAKE_BUILD_TYPE=Release; make @@ -90,6 +90,9 @@ update-site: spec.html js/commonmark.js upload-site: spec.html make -C $(SITE) upload +npm: + cd js; npm publish + distclean: clean -rm -f js/commonmark.js -rm -rf *.dSYM -- cgit v1.2.3