summaryrefslogtreecommitdiff
path: root/www/Makefile
blob: e3a791d2fc6628144563bab0d19b9788035f3d09 (plain)
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
build:
	npm install
	npm run build:production

build-dev:
	npm run watch 

clean:
	rm -rf public
	rm -rf node_modules

pydist: pydist-clean build
	touch leap/bitmask_www/__init__.py
	cp -r public/ leap/bitmask_www
	python setup.py bdist_wheel

pydist-dev:
	pip install -e .

pydist-clean:
	rm -rf build dist
	rm -rf leap/bitmask_www/*

all: clean build pydist

.PHONY: clean build install all