add list of command-line options as docs/options.md (#3464)

This commit is contained in:
Mike Fährmann
2023-01-02 19:14:16 +01:00
parent 4611237f8c
commit 7de6b7f489
3 changed files with 447 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ SHAREDIR ?= $(PREFIX)/share
PYTHON ?= /usr/bin/env python3
all: man completion supportedsites
all: man completion supportedsites options
clean:
$(RM) -r build/
@@ -30,11 +30,16 @@ man: data/man/gallery-dl.1 data/man/gallery-dl.conf.5
supportedsites: docs/supportedsites.md
.PHONY: all clean install release test executable completion man supportedsites
options: docs/options.md
.PHONY: all clean install release test executable completion man supportedsites options
docs/supportedsites.md: gallery_dl/*/*.py scripts/supportedsites.py
$(PYTHON) scripts/supportedsites.py
docs/options.md: gallery_dl/option.py scripts/options.py
$(PYTHON) scripts/options.py
data/man/gallery-dl.1: gallery_dl/option.py gallery_dl/version.py scripts/man.py
$(PYTHON) scripts/man.py