summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-11-11 16:58:49 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-11-11 16:58:49 -0800
commit96a4c15fa45c8093055bbfcffc7572ac801ecc62 (patch)
treee81131fdc16fa8f8e00eeca34d0e12d8cb7bb29d /Makefile
parentc3db8b1dbdd65e046899d72cb9f6cd5843fe45a9 (diff)
Added npm target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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