.PHONY: chore configure requirements-dev.txt requirements.txt

all: chore

chore: requirements.txt requirements-dev.txt

Pipfile.lock: Pipfile
	python3 -m pipenv lock -v

requirements-dev.txt: Pipfile.lock
	python3 -m pipenv requirements --exclude-markers --dev-only > requirements-dev.txt

requirements.txt: Pipfile.lock
	python3 -m pipenv requirements --exclude-markers > requirements.txt

configure: configure.ac
	autoconf

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

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

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

build/doc: docs
	python3 -m pipenv run -v doc

dist:
	python3 -m pipenv run -v dist

clean:
	rm -rvf autom4te.cache/ config.status config.log configure~ dist/ build/
