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