commit e59f60dbcc68c453d450e12b678b6ae9455aa293
Author:     parazyd <[email protected]>
AuthorDate: Mon May 4 00:26:15 2020 +0200
Commit:     Jan Klemkow <[email protected]>
CommitDate: Mon May 4 08:53:19 2020 +0200

    Use DESTDIR in the Makefile.
    
    It is common convention to have this.

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

Reply via email to