.PHONY: chore configure

chore: configure Pipfile.lock requirements-dev.txt

Pipfile.lock: .venv Pipfile
	.venv/bin/pipenv lock

requirements-dev.txt: .venv Pipfile.lock
	.venv/bin/pipenv requirements --dev-only > requirements-dev.txt

configure: configure.ac
	autoconf

.venv: requirements-dev.txt
	python3 -m venv .venv
	.venv/bin/python3 -m pip install --upgrade pip
	.venv/bin/pip install -r requirements-dev.txt

test-reports: test-reports/unit test-reports/static

test-reports/unit:
	python3 -m pipenv run -v test-unit

test-reports/integration:
	python3 -m pipenv run -v test-integration

test-reports/static:
	python3 -m pipenv run -v test-static

build: .venv/bin/pipenv
	.venv/bin/pipenv run build

