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
|
|
|
|
|
|
|
|
# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local
|
|
|
|
SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi)
|
|
|
|
|
2019-03-29 15:33:46 +01:00
|
|
|
all: man completion docs/supportedsites.rst
|
2019-03-24 10:36:33 +01:00
|
|
|
|
|
|
|
clean:
|
2019-03-27 22:36:46 +01:00
|
|
|
$(RM) gallery-dl.1 gallery-dl.conf.5 gallery-dl.bash_completion
|
2019-03-24 10:36:33 +01:00
|
|
|
$(RM) -r build/
|
|
|
|
|
2019-03-29 15:33:46 +01:00
|
|
|
install: man completion
|
2019-03-24 10:36:33 +01:00
|
|
|
$(PYTHON) setup.py install
|
|
|
|
|
2019-03-29 15:33:46 +01:00
|
|
|
release: man completion docs/supportedsites.rst
|
2019-03-24 10:36:33 +01:00
|
|
|
scripts/release.sh
|
|
|
|
|
|
|
|
test:
|
|
|
|
scripts/run_tests.sh
|
|
|
|
|
2019-03-29 15:33:46 +01:00
|
|
|
completion: gallery-dl.bash_completion
|
|
|
|
|
|
|
|
man: gallery-dl.1 gallery-dl.conf.5
|
|
|
|
|
|
|
|
.PHONY: all clean install release test completion man
|
2019-03-24 10:36:33 +01:00
|
|
|
|
|
|
|
docs/supportedsites.rst: gallery_dl/*/*.py scripts/supportedsites.py
|
|
|
|
$(PYTHON) scripts/supportedsites.py
|
|
|
|
|
|
|
|
gallery-dl.1: gallery_dl/option.py scripts/man.py
|
|
|
|
$(PYTHON) scripts/man.py
|
|
|
|
|
2019-03-27 22:36:46 +01:00
|
|
|
gallery-dl.conf.5: docs/configuration.rst scripts/man.py
|
|
|
|
$(PYTHON) scripts/man.py
|
|
|
|
|
2019-03-24 10:36:33 +01:00
|
|
|
gallery-dl.bash_completion: gallery_dl/option.py scripts/bash_completion.py
|
|
|
|
$(PYTHON) scripts/bash_completion.py
|