aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-31 09:39:34 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-31 09:43:56 -0600
commitb424602ebc2dc26a3c974ee2a87ab745821491b6 (patch)
tree8ebaa2f38efb82a87160ab17f559e672e769f47e /Makefile
parentae313911153b9c9ca8bef8ded97b95c0c2f49624 (diff)
add DESTDIR
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 70c31d3..48a0aa7 100644
--- a/Makefile
+++ b/Makefile
@@ -15,11 +15,11 @@ clean:
rm -f dwl *.o *-protocol.h *-protocol.c
install: dwl
- install -Dm755 dwl $(PREFIX)/bin/dwl
- install -Dm644 dwl.1 $(MANDIR)/man1/dwl.1
+ install -Dm755 dwl $(DESTDIR)$(PREFIX)/bin/dwl
+ install -Dm644 dwl.1 $(DESTDIR)$(MANDIR)/man1/dwl.1
uninstall:
- rm -f $(PREFIX)/bin/dwl $(MANDIR)/man1/dwl.1
+ rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1
.PHONY: all clean install uninstall