Initial bash completion
This commit is contained in:
parent
4b853f9c16
commit
8601db8811
2 changed files with 32 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -25,8 +25,15 @@ install: writeimg
|
|||
install -m 0755 $< $(DESTDIR)$(PREFIX)/bin/$<
|
||||
install -m 0644 $<.1 $(DESTDIR)$(PREFIX)/share/man/man1/$<.1
|
||||
|
||||
# Note that this bypasses PREFIX, since
|
||||
# bash does not source /usr/local by default
|
||||
install_bash: writeimg_completion_bash.sh
|
||||
install -d $(DESTDIR)/etc/bash_completion.d
|
||||
install -m 0644 $< $(DESTDIR)/etc/bash_completion.d/$<
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(PREFIX)/bin/writeimg
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/writeimg.1
|
||||
rm -f $(DESTDIR)/etc/bash_completion.d/writeimg*
|
||||
|
||||
.PHONY: clean install uninstall
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue