summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-14 20:05:06 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-14 20:06:21 -0500
commit711269a7eb2e151512bcaf1afcf45b13540d8f8e (patch)
tree6129dd55bb8946f1d059b900e3c971ef1eb745a7 /Makefile
parent9c4b8766cbdc2a4c63a03292b58cf35d981e1321 (diff)
vendor codemirror
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ec6d38..ddfa81c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,10 @@
-all:
+all: bin/edit
+all: static/codemirror/lib/codemirror.js
+
+bin/edit: FORCE
GOPATH=$$PWD go install edit
+static/codemirror/lib/codemirror.js: static/codemirror/rollup.config.js $(shell find static/codemirror/src -name '*.js')
+ cd static/codemirror && npm install && npm run build && rm -rf node_modules
+
+.PHONY: FORCE