Lines 1-9
Link Here
|
1 |
--- Makefile.orig 2021-03-15 00:24:39 UTC |
1 |
--- Makefile.orig 2021-10-22 20:47:18 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -1,7 +1,8 @@ |
3 |
@@ -1,14 +1,15 @@ |
4 |
-all: yt-dlp doc pypi-files |
4 |
-all: lazy-extractors yt-dlp doc pypi-files |
5 |
+#all: yt-dlp doc pypi-files |
5 |
+#all: lazy-extractors yt-dlp doc pypi-files |
6 |
+all: yt-dlp completions |
6 |
+all: lazy-extractors yt-dlp |
7 |
clean: clean-test clean-dist clean-cache |
7 |
clean: clean-test clean-dist clean-cache |
8 |
completions: completion-bash completion-fish completion-zsh |
8 |
completions: completion-bash completion-fish completion-zsh |
9 |
-doc: README.md CONTRIBUTING.md issuetemplates supportedsites |
9 |
-doc: README.md CONTRIBUTING.md issuetemplates supportedsites |
Lines 11-17
Link Here
|
11 |
ot: offlinetest |
11 |
ot: offlinetest |
12 |
tar: yt-dlp.tar.gz |
12 |
tar: yt-dlp.tar.gz |
13 |
|
13 |
|
14 |
@@ -32,17 +33,23 @@ SHAREDIR ?= $(PREFIX)/share |
14 |
# Keep this list in sync with MANIFEST.in |
|
|
15 |
# intended use: when building a source distribution, |
16 |
# make pypi-files && python setup.py sdist |
17 |
-pypi-files: AUTHORS Changelog.md LICENSE README.md README.txt supportedsites completions yt-dlp.1 devscripts/* test/* |
18 |
+#pypi-files: AUTHORS Changelog.md LICENSE README.md README.txt supportedsites completions yt-dlp.1 devscripts/* test/* |
19 |
|
20 |
.PHONY: all clean install test tar pypi-files completions ot offlinetest codetest supportedsites |
21 |
|
22 |
@@ -35,17 +36,23 @@ SHAREDIR ?= $(PREFIX)/share |
15 |
PYTHON ?= /usr/bin/env python3 |
23 |
PYTHON ?= /usr/bin/env python3 |
16 |
|
24 |
|
17 |
# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local |
25 |
# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local |
Lines 22-46
Link Here
|
22 |
# set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2 |
30 |
# 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) |
31 |
MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi) |
24 |
|
32 |
|
25 |
-install: yt-dlp yt-dlp.1 completions |
33 |
-install: lazy-extractors yt-dlp yt-dlp.1 completions |
26 |
+#install: yt-dlp yt-dlp.1 completions |
34 |
+install: lazy-extractors yt-dlp completions |
27 |
+install: yt-dlp completions |
35 |
install -Dm755 yt-dlp $(DESTDIR)$(BINDIR)/yt-dlp |
28 |
install -Dm755 yt-dlp $(DESTDIR)$(BINDIR) |
36 |
- install -Dm644 yt-dlp.1 $(DESTDIR)$(MANDIR)/man1/yt-dlp.1 |
29 |
- install -Dm644 yt-dlp.1 $(DESTDIR)$(MANDIR)/man1 |
|
|
30 |
- install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp |
37 |
- install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp |
31 |
+ install -d $(DESTDIR)$(SYSCONFDIR)/bash_completion.d |
38 |
+# install -Dm644 yt-dlp.1 $(DESTDIR)$(MANDIR)/man1/yt-dlp.1 |
32 |
+# install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp |
39 |
+# install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SHAREDIR)/bash-completion/completions/yt-dlp |
|
|
40 |
+ mkdir -p $(DESTDIR)$(SYSCONFDIR)/bash_completion.d |
33 |
+ install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/yt-dlp |
41 |
+ install -Dm644 completions/bash/yt-dlp $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/yt-dlp |
34 |
+ install -d $(DESTDIR)$(SHAREDIR)/zsh/site-functions |
42 |
+ mkdir -p $(DESTDIR)$(SHAREDIR)/zsh/site-functions |
35 |
install -Dm644 completions/zsh/_yt-dlp $(DESTDIR)$(SHAREDIR)/zsh/site-functions/_yt-dlp |
43 |
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 |
44 |
- install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d/yt-dlp.fish |
37 |
+ install -d $(DESTDIR)$(SYSCONFDIR)/fish/completions |
45 |
+# install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SHAREDIR)/fish/vendor_completions.d/yt-dlp.fish |
38 |
+# install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SYSCONFDIR)/fish/vendor_completions.d/yt-dlp.fish |
46 |
+ mkdir -p $(DESTDIR)$(SYSCONFDIR)/fish/completions |
39 |
+ install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/yt-dlp.fish |
47 |
+ install -Dm644 completions/fish/yt-dlp.fish $(DESTDIR)$(SYSCONFDIR)/fish/completions/yt-dlp.fish |
40 |
|
48 |
|
41 |
codetest: |
49 |
codetest: |
42 |
flake8 . |
50 |
flake8 . |
43 |
@@ -74,36 +81,37 @@ yt-dlp: yt_dlp/*.py yt_dlp/*/*.py |
51 |
@@ -65,37 +72,38 @@ yt-dlp: yt_dlp/*.py yt_dlp/*/*.py |
44 |
done |
52 |
done |
45 |
touch -t 200001010101 zip/yt_dlp/*.py zip/yt_dlp/*/*.py |
53 |
touch -t 200001010101 zip/yt_dlp/*.py zip/yt_dlp/*/*.py |
46 |
mv zip/yt_dlp/__main__.py zip/ |
54 |
mv zip/yt_dlp/__main__.py zip/ |
Lines 63-80
Link Here
|
63 |
+#CONTRIBUTING.md: README.md |
71 |
+#CONTRIBUTING.md: README.md |
64 |
+# $(PYTHON) devscripts/make_contributing.py README.md CONTRIBUTING.md |
72 |
+# $(PYTHON) devscripts/make_contributing.py README.md CONTRIBUTING.md |
65 |
|
73 |
|
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 |
74 |
-issuetemplates: devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.yml .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.yml .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.yml .github/ISSUE_TEMPLATE_tmpl/4_bug_report.yml .github/ISSUE_TEMPLATE_tmpl/5_feature_request.yml 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 |
75 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.yml .github/ISSUE_TEMPLATE/1_broken_site.yml |
68 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.md .github/ISSUE_TEMPLATE/2_site_support_request.md |
76 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.yml .github/ISSUE_TEMPLATE/2_site_support_request.yml |
69 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.md .github/ISSUE_TEMPLATE/3_site_feature_request.md |
77 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.yml .github/ISSUE_TEMPLATE/3_site_feature_request.yml |
70 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/4_bug_report.md .github/ISSUE_TEMPLATE/4_bug_report.md |
78 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/4_bug_report.yml .github/ISSUE_TEMPLATE/4_bug_report.yml |
71 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/5_feature_request.md .github/ISSUE_TEMPLATE/5_feature_request.md |
79 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/5_feature_request.yml .github/ISSUE_TEMPLATE/5_feature_request.yml |
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 |
80 |
- $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/6_question.yml .github/ISSUE_TEMPLATE/6_question.yml |
73 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.md .github/ISSUE_TEMPLATE/1_broken_site.md |
81 |
+#issuetemplates: devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.yml .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.yml .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.yml .github/ISSUE_TEMPLATE_tmpl/4_bug_report.yml .github/ISSUE_TEMPLATE_tmpl/5_feature_request.yml yt_dlp/version.py |
74 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.md .github/ISSUE_TEMPLATE/2_site_support_request.md |
82 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/1_broken_site.yml .github/ISSUE_TEMPLATE/1_broken_site.yml |
75 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.md .github/ISSUE_TEMPLATE/3_site_feature_request.md |
83 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/2_site_support_request.yml .github/ISSUE_TEMPLATE/2_site_support_request.yml |
76 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/4_bug_report.md .github/ISSUE_TEMPLATE/4_bug_report.md |
84 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/3_site_feature_request.yml .github/ISSUE_TEMPLATE/3_site_feature_request.yml |
77 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/5_feature_request.md .github/ISSUE_TEMPLATE/5_feature_request.md |
85 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/4_bug_report.yml .github/ISSUE_TEMPLATE/4_bug_report.yml |
|
|
86 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/5_feature_request.yml .github/ISSUE_TEMPLATE/5_feature_request.yml |
87 |
+# $(PYTHON) devscripts/make_issue_template.py .github/ISSUE_TEMPLATE_tmpl/6_question.yml .github/ISSUE_TEMPLATE/6_question.yml |
78 |
|
88 |
|
79 |
supportedsites: |
89 |
supportedsites: |
80 |
$(PYTHON) devscripts/make_supportedsites.py supportedsites.md |
90 |
$(PYTHON) devscripts/make_supportedsites.py supportedsites.md |