summaryrefslogtreecommitdiff
path: root/www/Makefile
blob: 53ba4ce4a7f14ccc3d477bb21010e061417b40bf (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
30
31
build:
	npm install
	npm run build:production

build-dev:
	npm run watch 

clean:
	rm -rf public
	rm -rf node_modules

py-pkg:
	touch leap/bitmask_www/__init__.py
	cp -r public/ leap/bitmask_www

pydist: pydist-clean build py-pkg
	python setup.py bdist_wheel

pydist-dev: pydist-clean build py-pkg
	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