Lines 1-4
Link Here
|
1 |
--- Makefile.orig 2016-11-01 19:43:06 UTC |
1 |
--- Makefile.orig 2018-05-09 02:36:21 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share |
3 |
@@ -12,7 +12,7 @@ SHAREDIR ?= $(PREFIX)/share |
4 |
PYTHON ?= /usr/bin/env python |
4 |
PYTHON ?= /usr/bin/env python |
Lines 7-15
Link Here
|
7 |
-SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi) |
7 |
-SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi) |
8 |
+SYSCONFDIR ?= $(PREFIX)/etc |
8 |
+SYSCONFDIR ?= $(PREFIX)/etc |
9 |
|
9 |
|
10 |
install: youtube-dl youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtube-dl.fish |
10 |
# set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2 |
11 |
install -d $(DESTDIR)$(BINDIR) |
11 |
MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi) |
12 |
@@ -20,11 +20,11 @@ install: youtube-dl youtube-dl.1 youtube |
12 |
@@ -23,11 +23,11 @@ install: youtube-dl youtube-dl.1 youtube |
13 |
install -d $(DESTDIR)$(MANDIR)/man1 |
13 |
install -d $(DESTDIR)$(MANDIR)/man1 |
14 |
install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1 |
14 |
install -m 644 youtube-dl.1 $(DESTDIR)$(MANDIR)/man1 |
15 |
install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d |
15 |
install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d |
Lines 24-36
Link Here
|
24 |
|
24 |
|
25 |
codetest: |
25 |
codetest: |
26 |
flake8 . |
26 |
flake8 . |
27 |
@@ -68,11 +68,6 @@ supportedsites: |
27 |
@@ -87,11 +87,6 @@ supportedsites: |
28 |
README.txt: README.md |
28 |
README.txt: README.md |
29 |
pandoc -f markdown -t plain README.md -o README.txt |
29 |
pandoc -f $(MARKDOWN) -t plain README.md -o README.txt |
30 |
|
30 |
|
31 |
-youtube-dl.1: README.md |
31 |
-youtube-dl.1: README.md |
32 |
- $(PYTHON) devscripts/prepare_manpage.py youtube-dl.1.temp.md |
32 |
- $(PYTHON) devscripts/prepare_manpage.py youtube-dl.1.temp.md |
33 |
- pandoc -s -f markdown -t man youtube-dl.1.temp.md -o youtube-dl.1 |
33 |
- pandoc -s -f $(MARKDOWN) -t man youtube-dl.1.temp.md -o youtube-dl.1 |
34 |
- rm -f youtube-dl.1.temp.md |
34 |
- rm -f youtube-dl.1.temp.md |
35 |
- |
35 |
- |
36 |
youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in |
36 |
youtube-dl.bash-completion: youtube_dl/*.py youtube_dl/*/*.py devscripts/bash-completion.in |