Add initial makefile
This commit is contained in:
parent
3519233887
commit
56fda8c60e
16
README.txt
16
README.txt
@ -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
21
makefile
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user