envvar overrideable PREFIX, BINDIR, MANDIR, PYTHON
authorrubicks <rubicks00@gmail.com>
Thu, 14 Aug 2014 15:01:23 +0000 (11:01 -0400)
committerrubicks <rubicks00@gmail.com>
Thu, 14 Aug 2014 15:01:23 +0000 (11:01 -0400)
Makefile

index c079761efa9b2e60887575f4cd7626d0abe469a2..088a9320bddfd367babd928bc96c71f3eaa4d9de 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,10 @@ clean:
 cleanall: clean
        rm -f youtube-dl youtube-dl.exe
 
-PREFIX=/usr/local
-BINDIR=$(PREFIX)/bin
-MANDIR=$(PREFIX)/man
-PYTHON=/usr/bin/env python
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+MANDIR ?= $(PREFIX)/man
+PYTHON ?= /usr/bin/env python
 
 # set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
 ifeq ($(PREFIX),/usr)