summaryrefslogtreecommitdiffstats
path: root/tool/Makefile
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-10-14 11:43:23 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-10-14 12:16:15 +0200
commit653960de3dfe19c9b46daad38efbc4a49a7676f2 (patch)
treedd1c0c5963667dd06b717e69a0dd40df0a94cd68 /tool/Makefile
parent2079449be080b4da3cdc8c6f9972f4ac48e58aaf (diff)
sq: Rename module to 'sequoia-sq'.
Diffstat (limited to 'tool/Makefile')
-rw-r--r--tool/Makefile45
1 files changed, 0 insertions, 45 deletions
diff --git a/tool/Makefile b/tool/Makefile
deleted file mode 100644
index 44428c96..00000000
--- a/tool/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-# Configuration.
-CARGO_TARGET_DIR ?= $(shell pwd)/../target
-# We currently only support absolute paths.
-CARGO_TARGET_DIR := $(abspath $(CARGO_TARGET_DIR))
-SQ ?= $(CARGO_TARGET_DIR)/debug/sq
-
-# Tools.
-CARGO ?= cargo
-
-ifneq ($(filter Darwin BSD,$(shell uname -s)),"")
- INSTALL ?= ginstall
-else
- INSTALL ?= install
-endif
-
-all: src/sq-usage.rs
-
-# Installation.
-.PHONY: build-release
-build-release:
- CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \
- $(CARGO) build $(CARGO_FLAGS) --release --package sequoia-tool
- $(MAKE) -C../store build-release
-
-.PHONY: install
-install: build-release
- $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
- $(INSTALL) -t $(DESTDIR)$(PREFIX)/bin $(CARGO_TARGET_DIR)/release/sq
- $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/zsh/site-functions
- $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/zsh/site-functions \
- $(CARGO_TARGET_DIR)/_sq
- $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions
- $(INSTALL) $(CARGO_TARGET_DIR)/sq.bash \
- $(DESTDIR)$(PREFIX)/share/bash-completion/completions/sq
- $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/fish/completions
- $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/fish/completions \
- $(CARGO_TARGET_DIR)/sq.fish
- $(MAKE) -C../store install
-
-# Maintenance.
-.PHONY: update-usage
-update-usage: src/sq-usage.rs
-
-src/sq-usage.rs: make-usage.sh $(SQ)
- sh make-usage.sh $(SQ) >$@~ && mv $@~ $@