Add makefile for installation.

This commit is contained in:
redxef 2022-10-20 12:44:00 +02:00
parent ec8fd5171f
commit ec8bb73d1c
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
2 changed files with 12 additions and 2 deletions

9
Makefile Normal file
View file

@ -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

View file

@ -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