From ec8bb73d1c7674f1511f472dde611c036721448a Mon Sep 17 00:00:00 2001 From: redxef Date: Thu, 20 Oct 2022 12:44:00 +0200 Subject: [PATCH] Add makefile for installation. --- Makefile | 9 +++++++++ README.md | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4e2e896 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +INSTALL_BASE ?= /usr/local + +install: i3toolwait install-modules + install -Dm0755 -oroot -groot $< ${INSTALL_BASE}/bin/$< + +install-modules: requirements.txt + python3 -mpip install --upgrade --requirement $< + +.PHONY: install install-modules diff --git a/README.md b/README.md index 6c11dcb..5118cc7 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,9 @@ Launch a program and move it to the correct workspace. ## Installing -Install all dependencies `python3 -mpip install --upgrade -r requirements.txt` -and copy the script to your path: `cp i3toolwait /usr/local/bin/i3toolwait`. +Use the makefile: `INSTALL_BASE=/usr/local/ make install` or install all dependencies +`python3 -mpip install --upgrade -r requirements.txt` and copy the script to your +path: `cp i3toolwait /usr/local/bin/i3toolwait`. ## Filtering