29 lines
642 B
Makefile
29 lines
642 B
Makefile
setup-venv:
|
|
python3 -m venv .venv
|
|
bash setup_venv.sh
|
|
exit
|
|
enter-venv:
|
|
bash enter_venv.sh
|
|
setup-python:
|
|
mkdir -p gen/python
|
|
protoc --python_out=gen/python crs.proto
|
|
protoc --python_out=gen/python pins.proto
|
|
protoc --python_out=gen/python ct.proto
|
|
cp gen/python/crs_pb2.py src/root_store_gen
|
|
cp gen/python/pins_pb2.py src/root_store_gen
|
|
cp gen/python/ct_pb2.py src/root_store_gen
|
|
exit
|
|
build-packed-data:
|
|
mkdir -p out/PKIMetadata
|
|
make setup-venv
|
|
make setup-python
|
|
clean:
|
|
rm -rf out/
|
|
start-server: start-httpmitm
|
|
|
|
start-httpmitm:
|
|
cd httpmitm; npm install; node proxy.js
|
|
|
|
start-dmbackend:
|
|
bash httpmitm/dmbackend/start_server.sh
|