This commit is contained in:
JJJHolscher 2023-07-23 17:34:22 +02:00
parent 62228bb061
commit 86c52e35b6
2 changed files with 20 additions and 0 deletions

20
makefile Normal file
View File

@ -0,0 +1,20 @@
pwd = $(shell pwd)
name = $(notdir $(pwd))
symlink = ${HOME}/.local/bin/break-timer
venv = $(pwd)/.venv/bin/python
$(symlink): $(venv)
echo "#!/bin/sh\n$(venv) $(pwd)/src/main.py \"\$$@\"" > $(symlink)
chmod +x $(symlink)
$(venv): requirements.txt
python -m venv --prompt $(name) .venv
. .venv/bin/activate; \
pip install --upgrade pip; \
pip install -r requirements.txt
clean:
rm -r .venv
rm $(symlink)