diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-06-18 14:52:35 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-06-18 15:58:36 +0200 |
commit | c99514eba879b318c25e0736064a5412ecc8fd28 (patch) | |
tree | 22a63aa0b82548249bfa0124debb9da6e10ed69f /sqv | |
parent | 022521a0f24143eb124ba4e1ec2f98bea04d170c (diff) |
Improve install target.
- Add explicit build-release and install targets.
- Explicitly build the crates.
- Move installation to the crate's Makefile.
- This allows building of Sequoia's individual parts, e.g. by using
'make -Copenpgp-ffi install'.
Diffstat (limited to 'sqv')
-rw-r--r-- | sqv/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sqv/Makefile b/sqv/Makefile index 4f3d9524..7d07b106 100644 --- a/sqv/Makefile +++ b/sqv/Makefile @@ -24,6 +24,15 @@ build-release: install: build-release $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin $(INSTALL) -t $(DESTDIR)$(PREFIX)/bin $(CARGO_TARGET_DIR)/release/sqv + $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/zsh/site-functions + $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/zsh/site-functions \ + $(CARGO_TARGET_DIR)/_sqv + $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions + $(INSTALL) $(CARGO_TARGET_DIR)/sqv.bash \ + $(DESTDIR)$(PREFIX)/share/bash-completion/completions/sqv + $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/fish/completions + $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/fish/completions \ + $(CARGO_TARGET_DIR)/sqv.fish # Maintenance. .PHONY: update-usage |