makefile
This commit is contained in:
parent
62228bb061
commit
86c52e35b6
20
makefile
Normal file
20
makefile
Normal 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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user