add bash completion support
This commit is contained in:
parent
3b810ca4d3
commit
2d0adfb7c0
2 changed files with 32 additions and 2 deletions
12
Makefile
12
Makefile
|
@ -2,12 +2,20 @@ NAME=pulseaudio-tcp
|
|||
PREFIX=/usr
|
||||
BINDIR=$(PREFIX)/bin
|
||||
APPDIR=$(PREFIX)/share/applications
|
||||
COMPLETIONDIR=$(PREFIX)/share/bash-completion/completions
|
||||
DESTDIR=
|
||||
|
||||
.PHONY: all install-bin install-desktop install
|
||||
.PHONY: all install-bash install-bin install-desktop install
|
||||
|
||||
all:
|
||||
|
||||
install-bash: $(NAME).bash_completion
|
||||
@install -d -m 755 "$(DESTDIR)$(COMPLETIONDIR)"
|
||||
@install -m 644 \
|
||||
"$(NAME).bash_completion" \
|
||||
"$(DESTDIR)$(COMPLETIONDIR)/$(NAME)"
|
||||
@echo "INFO: Bourne Again Shell completion for $(NAME) was installed to $(COMPLETIONDIR)"
|
||||
|
||||
install-bin: $(NAME)
|
||||
@install -d -m 755 "$(DESTDIR)$(BINDIR)"
|
||||
@install -m 755 "$(NAME)" "$(DESTDIR)$(BINDIR)"/"$(NAME)"
|
||||
|
@ -24,7 +32,7 @@ install-desktop: $(NAME).desktop.in
|
|||
> "$(DESTDIR)$(APPDIR)"/"$(NAME)".desktop
|
||||
@echo "INFO: $(NAME).desktop was installed to $(APPDIR)"
|
||||
|
||||
install: install-bin install-desktop
|
||||
install: install-bash install-bin install-desktop
|
||||
@if test -z "$(DESTDIR)" ; then \
|
||||
if test -n "$$(which update-desktop-database)" ; then \
|
||||
update-desktop-database "$(APPDIR)" ; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue