add convenience targets to Makefile

pull/215/head
Mike Fährmann 6 years ago
parent 1384ebf907
commit 0c991a3155
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -8,22 +8,26 @@ PYTHON ?= /usr/bin/env python3
# set SYSCONFDIR to /etc if PREFIX=/usr or PREFIX=/usr/local # 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) SYSCONFDIR = $(shell if [ $(PREFIX) = /usr -o $(PREFIX) = /usr/local ]; then echo /etc; else echo $(PREFIX)/etc; fi)
all: gallery-dl.1 gallery-dl.conf.5 gallery-dl.bash_completion docs/supportedsites.rst all: man completion docs/supportedsites.rst
clean: clean:
$(RM) gallery-dl.1 gallery-dl.conf.5 gallery-dl.bash_completion $(RM) gallery-dl.1 gallery-dl.conf.5 gallery-dl.bash_completion
$(RM) -r build/ $(RM) -r build/
install: gallery-dl.1 gallery-dl.conf.5 gallery-dl.bash_completion install: man completion
$(PYTHON) setup.py install $(PYTHON) setup.py install
release: gallery-dl.1 gallery-dl.conf.5 gallery-dl.bash_completion docs/supportedsites.rst release: man completion docs/supportedsites.rst
scripts/release.sh scripts/release.sh
test: test:
scripts/run_tests.sh scripts/run_tests.sh
.PHONY: all clean install release test completion: gallery-dl.bash_completion
man: gallery-dl.1 gallery-dl.conf.5
.PHONY: all clean install release test completion man
docs/supportedsites.rst: gallery_dl/*/*.py scripts/supportedsites.py docs/supportedsites.rst: gallery_dl/*/*.py scripts/supportedsites.py
$(PYTHON) scripts/supportedsites.py $(PYTHON) scripts/supportedsites.py

@ -80,10 +80,7 @@ parts:
- youtube_dl - youtube_dl
override-build: | override-build: |
# build manpages and bash completion # build manpages and bash completion
make \ make man completion
gallery-dl.1 \
gallery-dl.conf.5 \
gallery-dl.bash_completion
snapcraftctl build snapcraftctl build

@ -26,7 +26,7 @@ TRAVIS_SKIP = {
# temporary issues, etc. # temporary issues, etc.
BROKEN = { BROKEN = {
"mangapark", "mangapark",
"simplyhentai", "nyafuu",
} }

Loading…
Cancel
Save