install bash completion into share/bash-completion/completions
This commit is contained in:
13
Makefile
13
Makefile
@@ -5,13 +5,10 @@ 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)
|
||||
|
||||
all: man completion docs/supportedsites.rst
|
||||
|
||||
clean:
|
||||
$(RM) gallery-dl.1 gallery-dl.conf.5 gallery-dl.bash_completion
|
||||
$(RM) -r build/
|
||||
|
||||
install: man completion
|
||||
@@ -26,20 +23,20 @@ test:
|
||||
executable:
|
||||
scripts/pyinstaller.py
|
||||
|
||||
completion: gallery-dl.bash_completion
|
||||
completion: build/completion/gallery-dl
|
||||
|
||||
man: gallery-dl.1 gallery-dl.conf.5
|
||||
man: build/man/gallery-dl.1 build/man/gallery-dl.conf.5
|
||||
|
||||
.PHONY: all clean install release test executable completion man
|
||||
|
||||
docs/supportedsites.rst: gallery_dl/*/*.py scripts/supportedsites.py
|
||||
$(PYTHON) scripts/supportedsites.py
|
||||
|
||||
gallery-dl.1: gallery_dl/option.py scripts/man.py
|
||||
build/man/gallery-dl.1: gallery_dl/option.py gallery_dl/version.py scripts/man.py
|
||||
$(PYTHON) scripts/man.py
|
||||
|
||||
gallery-dl.conf.5: docs/configuration.rst scripts/man.py
|
||||
build/man/gallery-dl.conf.5: docs/configuration.rst gallery_dl/version.py scripts/man.py
|
||||
$(PYTHON) scripts/man.py
|
||||
|
||||
gallery-dl.bash_completion: gallery_dl/option.py scripts/bash_completion.py
|
||||
build/completion/gallery-dl: gallery_dl/option.py scripts/bash_completion.py
|
||||
$(PYTHON) scripts/bash_completion.py
|
||||
|
||||
Reference in New Issue
Block a user