summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorFilippo Valsorda <[email protected]>2012-09-26 00:10:39 +0200
committerFilippo Valsorda <[email protected]>2012-09-26 00:10:39 +0200
commit0e841bdc54c68076d82c29d541683eb844d19794 (patch)
treea326c788be84f8560082b7a0d3d8897b20cd5afb /Makefile
parent225dceb0468a0608e9805479b927f6fb8cb94067 (diff)
downloadyoutube-dl-0e841bdc54c68076d82c29d541683eb844d19794.tar.gz
youtube-dl-0e841bdc54c68076d82c29d541683eb844d19794.zip
add PREFIX option to make install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c167d01c4..21b346905 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
all: youtube-dl youtube-dl.exe README.md youtube-dl.1 youtube-dl.bash-completion LATEST_VERSION
+PREFIX=/usr/local
install: youtube-dl youtube-dl.1 youtube-dl.bash-completion
- install -m 755 --owner root --group root youtube-dl /usr/local/bin/
- install -m 644 --owner root --group root youtube-dl.1 /usr/local/man/man1
+ install -m 755 --owner root --group root youtube-dl $(PREFIX)/bin/
+ install -m 644 --owner root --group root youtube-dl.1 $(PREFIX)/man/man1
install -m 644 --owner root --group root youtube-dl.bash-completion /etc/bash_completion.d/youtube-dl
.PHONY: all install