Use DESTDIR in the Makefile. - scroll - scrollbackbuffer program for st
HTML git clone git://git.suckless.org/scroll
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e59f60dbcc68c453d450e12b678b6ae9455aa293
DIR parent 1dfa7e759525944d50614caf96ce0acf8b52abeb
HTML Author: parazyd <parazyd@dyne.org>
Date: Mon, 4 May 2020 00:26:15 +0200
Use DESTDIR in the Makefile.
It is common convention to have this.
Diffstat:
M Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git 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