summaryrefslogtreecommitdiff
path: root/www/Makefile
blob: 18a7107d0546da69973d1a01b452467c691ba0ef (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
32
33
34
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-install: pydist
	pip install dist/*.whl

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