| 1 | |
| 2 | |
| 3 | @@ -22,23 +22,23 @@
|
| 4 | install-completions: install-bash-completion install-zsh-completion install-fish-completion
|
| 5 |
|
| 6 | install-bash-completion:
|
| 7 | - install -m644 auto-completion/bash/pdd.bash $(PREFIX)/share/bash-completion/compilations/pdd
|
| 8 | + install -Dm644 auto-completion/bash/pdd.bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/pdd
|
| 9 |
|
| 10 | install-fish-completion:
|
| 11 | - install -m644 auto-completion/fish/pdd.fish -t $(PREFIX)/share/fish/vendor_completions.d
|
| 12 | + install -Dm644 auto-completion/fish/pdd.fish -t $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d
|
| 13 |
|
| 14 | install-zsh-completion:
|
| 15 | cp pdd pdd.py
|
| 16 | auto-completion/zsh/zsh_completion.py
|
| 17 | - install -m644 _pdd -t $(PREFIX)/share/zsh/site-functions
|
| 18 | + install -Dm644 _pdd -t $(DESTDIR)$(PREFIX)/share/zsh/site-functions
|
| 19 |
|
| 20 | uninstall:
|
| 21 | rm -f $(BINDIR)/pdd
|
| 22 | rm -f $(MANDIR)/pdd.1.gz
|
| 23 | rm -rf $(DOCDIR)
|
| 24 | - rm -rf $(PREFIX)/share/bash-completion/compilations/pdd
|
| 25 | - rm -rf $(PREFIX)/share/fish/vendor_completions.d/pdd.fish
|
| 26 | - rm -rf $(PREFIX)/share/zsh/site-functions/_pdd
|
| 27 | + rm -rf $(DESTDIR)$(PREFIX)/share/bash-completion/completions/pdd
|
| 28 | + rm -rf $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d/pdd.fish
|
| 29 | + rm -rf $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_pdd
|
| 30 |
|
| 31 | check:
|
| 32 | @python3 -m pytest test.py
|