commit 6fa178d5f755086c9b20ace5f2ac0ad8f70976ef parent e5b3a31498323c834340e105c07bbc34015d82d2 Author: Louis Burda <quent.burda@gmail.com> Date: Sun, 21 Mar 2021 11:53:22 +0100 Add install target to Makefile Diffstat:
M | Makefile | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,10 +1,15 @@ CFLAGS = -I. LDLIBS = -lX11 -lm +DESTDIR = $(or $(DESTDIR),/) +BINDIR = $(or $(BINDIR),usr/bin/) all: wmsl sigwmsl -install: all - sudo cp sigwmsl wmsl /usr/bin +install: + cp sigwmsl wmsl $(DESTDIR)/$(BINDIR) + +uninstall: + rm $(DESTDIR)/$(BINDIR) blocks.h: blocks.def.h cp blocks.def.h blocks.h