1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-24 19:52:32 +01:00
gallery-dl/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/man
SHAREDIR ?= $(PREFIX)/share
PYTHON ?= /usr/bin/env python3
2019-03-29 15:33:46 +01:00
all: man completion docs/supportedsites.rst
clean:
$(RM) -r build/
$(RM) -r data/
2019-03-29 15:33:46 +01:00
install: man completion
$(PYTHON) setup.py install
2019-03-29 15:33:46 +01:00
release: man completion docs/supportedsites.rst
scripts/release.sh
test:
scripts/run_tests.sh
2019-04-16 18:23:46 +02:00
executable:
scripts/pyinstaller.py
2020-07-04 18:05:31 +02:00
completion: data/completion/gallery-dl data/completion/_gallery-dl
2019-03-29 15:33:46 +01:00
man: data/man/gallery-dl.1 data/man/gallery-dl.conf.5
2019-03-29 15:33:46 +01:00
2019-04-16 18:23:46 +02:00
.PHONY: all clean install release test executable completion man
docs/supportedsites.rst: gallery_dl/*/*.py scripts/supportedsites.py
$(PYTHON) scripts/supportedsites.py
data/man/gallery-dl.1: gallery_dl/option.py gallery_dl/version.py scripts/man.py
$(PYTHON) scripts/man.py
data/man/gallery-dl.conf.5: docs/configuration.rst gallery_dl/version.py scripts/man.py
$(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