summaryrefslogtreecommitdiff
path: root/www/Makefile
blob: 5075a071bb3873e14b442f53ee9ce17e3eabafe3 (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
27
28
29
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/*

uninstall:
	pip uninstall leap.bitmask_www

all: clean build pydist

.PHONY: clean build install all