summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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