2019-03-24 10:36:33 +01:00
|
|
|
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
MANDIR ?= $(PREFIX)/man
|
|
|
|
SHAREDIR ?= $(PREFIX)/share
|
|
|
|
PYTHON ?= /usr/bin/env python3
|
|
|
|
|
|
|
|
|
2023-01-02 19:14:16 +01:00
|
|
|
all: man completion supportedsites options
|
2019-03-24 10:36:33 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -r build/
|
2019-11-09 00:00:40 +01:00
|
|
|
$(RM) -r data/
|
2019-03-24 10:36:33 +01:00
|
|
|
|
2019-03-29 15:33:46 +01:00
|
|
|
install: man completion
|
2019-03-24 10:36:33 +01:00
|
|
|
$(PYTHON) setup.py install
|
|
|
|
|
2021-03-12 03:03:48 +01:00
|
|
|
release: man completion supportedsites
|
2019-03-24 10:36:33 +01:00
|
|
|
scripts/release.sh
|
|
|
|
|
|
|
|
test:
|
2021-10-13 03:10:55 +02:00
|
|
|
scripts/run_tests.py
|
2019-03-24 10:36:33 +01:00
|
|
|
|
2019-04-16 18:23:46 +02:00
|
|
|
executable:
|
|
|
|
scripts/pyinstaller.py
|
|
|
|
|
2022-03-09 18:33:06 +01:00
|
|
|
completion: data/completion/gallery-dl data/completion/_gallery-dl data/completion/gallery-dl.fish
|
2019-03-29 15:33:46 +01:00
|
|
|
|
2019-11-09 00:00:40 +01:00
|
|
|
man: data/man/gallery-dl.1 data/man/gallery-dl.conf.5
|
2019-03-29 15:33:46 +01:00
|
|
|
|
2021-03-12 03:03:48 +01:00
|
|
|
supportedsites: docs/supportedsites.md
|
2019-03-24 10:36:33 +01:00
|
|
|
|
2023-01-02 19:14:16 +01:00
|
|
|
options: docs/options.md
|
|
|
|
|
|
|
|
.PHONY: all clean install release test executable completion man supportedsites options
|
2021-03-12 03:03:48 +01:00
|
|
|
|
|
|
|
docs/supportedsites.md: gallery_dl/*/*.py scripts/supportedsites.py
|
2019-03-24 10:36:33 +01:00
|
|
|
$(PYTHON) scripts/supportedsites.py
|
|
|
|
|
2023-01-02 19:14:16 +01:00
|
|
|
docs/options.md: gallery_dl/option.py scripts/options.py
|
|
|
|
$(PYTHON) scripts/options.py
|
|
|
|
|
2019-11-09 00:00:40 +01:00
|
|
|
data/man/gallery-dl.1: gallery_dl/option.py gallery_dl/version.py scripts/man.py
|
2019-03-24 10:36:33 +01:00
|
|
|
$(PYTHON) scripts/man.py
|
|
|
|
|
2019-11-09 00:00:40 +01:00
|
|
|
data/man/gallery-dl.conf.5: docs/configuration.rst gallery_dl/version.py scripts/man.py
|
2019-03-27 22:36:46 +01:00
|
|
|
$(PYTHON) scripts/man.py
|
|
|
|
|
2020-07-04 18:05:31 +02:00
|
|
|
data/completion/gallery-dl: gallery_dl/option.py scripts/completion_bash.py
|
|
|
|
$(PYTHON) scripts/completion_bash.py
|
|
|
|
|
|
|
|
data/completion/_gallery-dl: gallery_dl/option.py scripts/completion_zsh.py
|
|
|
|
$(PYTHON) scripts/completion_zsh.py
|
2022-03-09 18:33:06 +01:00
|
|
|
|
|
|
|
data/completion/gallery-dl.fish: gallery_dl/option.py scripts/completion_fish.py
|
|
|
|
$(PYTHON) scripts/completion_fish.py
|