forked from signalapp/libsignal-protocol-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (21 loc) · 585 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ESLINT ?= ./node_modules/.bin/eslint
GRUNT ?= ./node_modules/.bin/grunt
KARMA ?= ./node_modules/.bin/karma
.PHONY: clean
clean:
rm -rf node_modules
node_modules: package.json package-lock.json
npm i
.PHONY: eslint
eslint: node_modules
$(ESLINT) src/**/*.js test/**/*.js Gruntfile.js
test: eslint
$(KARMA) start karma.conf.js $(ARGS)
.PHONY: check
check: dist test
dist/libsignal-protocol.js:: node_modules
$(GRUNT) build
dist: dist/libsignal-protocol.js
build/curve25519_compiled.js:: node_modules Gruntfile.js
$(GRUNT) compile
compile: build/curve25519_compiled.js