ee3337b8f0
PR: ports/214296 Submitted by: jhale
38 lines
1.7 KiB
Text
38 lines
1.7 KiB
Text
--- Makefile.orig 2016-11-01 19:43:06 UTC
|
|
+++ Makefile
|
|
@@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share
|
|
PYTHON ?= /usr/bin/env python
|
|
|
|
# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
|
|
-SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi)
|
|
+SYSCONFDIR ?= $(PREFIX)/etc
|
|
|
|
install: youtube-dl youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtube-dl.fish
|
|
install -d $(DESTDIR)$(BINDIR)
|
|
@@ -20,11 +20,11 @@ install: youtube-dl youtube-dl.1 youtube
|
|
install -d $(DESTDIR)$(MANDIR)/man1
|
|
install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1
|
|
install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
|
|
- install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl
|
|
+ install -m 644 youtube-dl.bash-completion $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/youtube-dl.sh
|
|
install -d $(DESTDIR)$(SHAREDIR)/zsh/site-functions
|
|
install -m 644 youtube-dl.zsh $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_youtube-dl
|
|
- install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions
|
|
- install -m 644 youtube-dl.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/youtube-dl.fish
|
|
+ install -d $(DESTDIR)$(SHAREDIR)/fish/completions
|
|
+ install -m 644 youtube-dl.fish $(DESTDIR)$(SHAREDIR)/fish/completions/youtube-dl.fish
|
|
|
|
codetest:
|
|
flake8 .
|
|
@@ -68,11 +68,6 @@ supportedsites:
|
|
README.txt: README.md
|
|
pandoc -f markdown -t plain README.md -o README.txt
|
|
|
|
-youtube-dl.1: README.md
|
|
- $(PYTHON) devscripts/prepare_manpage.py youtube-dl.1.temp.md
|
|
- pandoc -s -f markdown -t man youtube-dl.1.temp.md -o youtube-dl.1
|
|
- rm -f youtube-dl.1.temp.md
|
|
-
|
|
youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in
|
|
$(PYTHON) devscripts/bash-completion.py
|
|
|