Explorar o código

Use DESTDIR in the Makefile.

It is common convention to have this.
parazyd %!s(int64=5) %!d(string=hai) anos
pai
achega
e59f60dbcc
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Makefile

+ 3 - 3
Makefile

@@ -10,9 +10,9 @@ config.h:
 scroll: scroll.c config.h
 scroll: scroll.c config.h
 
 
 install: scroll
 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
 test: scroll ptty
 	# check usage
 	# check usage