It is common convention to have this.
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 9f382b7..797fc4b 100644
--- a/Makefile
+++ b/Makefile
@@ -10,9 +10,9 @@ config.h:
 scroll: scroll.c config.h
 
 install: scroll
-       mkdir -p $(BINDIR) $(MANDIR)/man1
-       cp -f scroll $(BINDIR)
-       cp -f scroll.1 $(MANDIR)/man1
+       mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+       cp -f scroll $(DESTDIR)$(BINDIR)
+       cp -f scroll.1 $(DESTDIR)$(MANDIR)/man1
 
 test: scroll ptty
        # check usage
-- 
2.26.2


Reply via email to