Add initial makefile

This commit is contained in:
3wc 2025-02-14 13:23:13 -05:00
parent 3519233887
commit 56fda8c60e
2 changed files with 35 additions and 2 deletions

View File

@ -16,8 +16,20 @@ Planned features, see __main__.py's comments.
Installation Installation
------------------------------------------------- -------------------------------------------------
Install dependencies:
* Debian: `sudo apt install python3 python3-venv git make`
* Fedora: `sudo dnf install python3 python3-pip git make`
Clone the repo:
``` ```
git clone https://git.autonomic.zone/autonomic-cooperative/multiball.git git clone https://git.autonomic.zone/autonomic-cooperative/multiball.git
cd multiball ```
pip install .
Install, including dependencies:
```
cd multiball
make
``` ```

21
makefile Normal file
View File

@ -0,0 +1,21 @@
default: install
.venv:
python3 -m venv .venv
pip: .venv
@.venv/bin/pip install -e .
$(HOME)/.local/bin/:
@echo "'$(HOME)/.local/bin' was not found; creating it"
mkdir -p $(HOME)/.local/bin
@echo 'Be sure to add this directory to your $$PATH, using e.g.'
@echo "echo $(HOME)/.local/bin >> $(HOME)/.bashrc"
$(HOME)/.local/bin/multiball: $(HOME)/.local/bin/ pip
ln -s $(PWD)/.venv/bin/multiball $(HOME)/.local/bin/multiball
install: $(HOME)/.local/bin/multiball
.PHONY: pip install