aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 12881133f7c0b1eb2448be4941bc6e64c1f5e8b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
test: all
	cd solo-tool-project/test && ../../venv/bin/pytest *test.py
	cd cli-project/test && ../../venv/bin/pytest *test.py

all: venv .git/hooks/pre-commit

clean:
	rm -rf venv

.git/hooks/pre-commit: pre-commit
	install -m 755 pre-commit .git/hooks/pre-commit

venv: venv/touchfile

venv/touchfile: requirements.txt solo-tool-project/pyproject.toml cli-project/pyproject.toml gui-project/pyproject.toml
	rm -rf venv
	python -m venv venv
	./venv/bin/pip install -r requirements.txt
	touch venv/touchfile

.PHONY: all test clean