Added
Link Here
|
1 |
--- Makefile.orig 2021-03-15 00:24:39 UTC |
2 |
+++ Makefile |
3 |
@@ -1,7 +1,8 @@ |
4 |
-all: yt-dlp doc pypi-files |
5 |
+#all: yt-dlp doc pypi-files |
6 |
+all: yt-dlp completions |
7 |
clean: clean-test clean-dist clean-cache |
8 |
completions: completion-bash completion-fish completion-zsh |
9 |
-doc: README.md CONTRIBUTING.md issuetemplates supportedsites |
10 |
+#doc: README.md CONTRIBUTING.md issuetemplates supportedsites |
11 |
ot: offlinetest |
12 |
tar: yt-dlp.tar.gz |
13 |
|
14 |
@@ -32,17 +33,23 @@ SHAREDIR ?= $(PREFIX)/share |
15 |
PYTHON ?= /usr/bin/env python3 |
16 |
|
17 |
# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local |
18 |
-SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi) |
19 |
+#SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi) |
20 |
+SYSCONFDIR = $(PREFIX)/etc |
21 |
|
22 |
# set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2 |
23 |
MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi) |
24 |
|
25 |
-install: yt-dlp yt-dlp.1 completions |
26 |
+#install: yt-dlp yt-dlp.1 completions |
27 |
+install: yt-dlp completions |
28 |
install -Dm755 yt-dlp $(DESTDIR)$(BINDIR) |
29 |
- install -Dm644 yt-dlp.1 $(DESTDIR)$(MANDIR)/man1 |
30 |
- install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp |
31 |
+ install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d |
32 |
+# install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp |
33 |
+ install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/yt-dlp |
34 |
+ install -d $(DESTDIR)$(SHAREDIR)/zsh/site-functions |
35 |
install -Dm644 completions/zsh/_yt-dlp $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_yt-dlp |
36 |
- install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d/yt-dlp.fish |
37 |
+ install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions |
38 |
+# install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SYSCONFDIR)/fish/vendor_completions.d/yt-dlp.fish |
39 |
+ install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/yt-dlp.fish |
40 |
|
41 |
codetest: |
42 |
flake8 . |
43 |
@@ -74,36 +81,37 @@ yt-dlp: yt_dlp/*.py yt_dlp/*/*.py |
44 |
done |
45 |
touch -t 200001010101 zip/yt_dlp/*.py zip/yt_dlp/*/*.py |
46 |
mv zip/yt_dlp/__main__.py zip/ |
47 |
- cd zip ; zip -q ../yt-dlp yt_dlp/*.py yt_dlp/*/*.py __main__.py |
48 |
+# cd zip ; zip -q ../yt-dlp yt_dlp/*.py yt_dlp/*/*.py __main__.py |
49 |
+ cd zip ; bsdtar -a -cf ../yt-dlp.zip yt_dlp/*.py yt_dlp/*/*.py __main__.py |
50 |
rm -rf zip |
51 |
echo '#!$(PYTHON)' > yt-dlp |
52 |
cat yt-dlp.zip >> yt-dlp |
53 |
rm yt-dlp.zip |
54 |
chmod a+x yt-dlp |
55 |
|
56 |
-README.md: yt_dlp/*.py yt_dlp/*/*.py |
57 |
- COLUMNS=80 $(PYTHON) yt_dlp/__main__.py --help | $(PYTHON) devscripts/make_readme.py |
58 |
+#README.md: yt_dlp/*.py yt_dlp/*/*.py |
59 |
+# COLUMNS=80 $(PYTHON) yt_dlp/__main__.py --help | $(PYTHON) devscripts/make_readme.py |
60 |
|
61 |
-CONTRIBUTING.md: README.md |
62 |
- $(PYTHON) devscripts/make_contributing.py README.md CONTRIBUTING.md |
63 |
+#CONTRIBUTING.md: README.md |
64 |
+# $(PYTHON) devscripts/make_contributing.py README.md CONTRIBUTING.md |
65 |
|
66 |
-issuetemplates: devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.md .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.md .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.md .github/ISSUE_TEMPLATE_tmpl/4_bug_report.md .github/ISSUE_TEMPLATE_tmpl/5_feature_request.md yt_dlp/version.py |
67 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.md .github/ISSUE_TEMPLATE/1_broken_site.md |
68 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.md .github/ISSUE_TEMPLATE/2_site_support_request.md |
69 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.md .github/ISSUE_TEMPLATE/3_site_feature_request.md |
70 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/4_bug_report.md .github/ISSUE_TEMPLATE/4_bug_report.md |
71 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/5_feature_request.md .github/ISSUE_TEMPLATE/5_feature_request.md |
72 |
+#issuetemplates: devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.md .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.md .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.md .github/ISSUE_TEMPLATE_tmpl/4_bug_report.md .github/ISSUE_TEMPLATE_tmpl/5_feature_request.md yt_dlp/version.py |
73 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.md .github/ISSUE_TEMPLATE/1_broken_site.md |
74 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.md .github/ISSUE_TEMPLATE/2_site_support_request.md |
75 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.md .github/ISSUE_TEMPLATE/3_site_feature_request.md |
76 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/4_bug_report.md .github/ISSUE_TEMPLATE/4_bug_report.md |
77 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/5_feature_request.md .github/ISSUE_TEMPLATE/5_feature_request.md |
78 |
|
79 |
supportedsites: |
80 |
$(PYTHON) devscripts/make_supportedsites.py supportedsites.md |
81 |
|
82 |
-README.txt: README.md |
83 |
- pandoc -f $(MARKDOWN) -t plain README.md -o README.txt |
84 |
+#README.txt: README.md |
85 |
+# pandoc -f $(MARKDOWN) -t plain README.md -o README.txt |
86 |
|
87 |
-yt-dlp.1: README.md |
88 |
- $(PYTHON) devscripts/prepare_manpage.py yt-dlp.1.temp.md |
89 |
- pandoc -s -f $(MARKDOWN) -t man yt-dlp.1.temp.md -o yt-dlp.1 |
90 |
- rm -f yt-dlp.1.temp.md |
91 |
+#yt-dlp.1: README.md |
92 |
+# $(PYTHON) devscripts/prepare_manpage.py yt-dlp.1.temp.md |
93 |
+# pandoc -s -f $(MARKDOWN) -t man yt-dlp.1.temp.md -o yt-dlp.1 |
94 |
+# rm -f yt-dlp.1.temp.md |
95 |
|
96 |
completions/bash/yt-dlp: yt_dlp/*.py yt_dlp/*/*.py devscripts/bash-completion.in |
97 |
mkdir -p completions/bash |