From 56fda8c60e81b8b0af729204c13463ffdcb12019 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 14 Feb 2025 13:23:13 -0500 Subject: [PATCH] Add initial makefile --- README.txt | 16 ++++++++++++++-- makefile | 21 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 makefile diff --git a/README.txt b/README.txt index dd23618..49cf05c 100644 --- a/README.txt +++ b/README.txt @@ -16,8 +16,20 @@ Planned features, see __main__.py's comments. 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 -cd multiball -pip install . +``` + +Install, including dependencies: + +``` +cd multiball +make ``` diff --git a/makefile b/makefile new file mode 100644 index 0000000..88a754c --- /dev/null +++ b/makefile @@ -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 +