aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 985a327..eb98380 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,10 @@ fmt: ## Run syntax re-formatting
build: ## Build
cargo build
+.PHONY: build-release
+build-release: ## Build for release
+ cargo build --release
+
.PHONY: completions
completions: build ## generate shell completions
./target/debug/fatcat-cli --shell-completions bash status > extra/fatcat-cli.bash_completions
@@ -35,3 +39,12 @@ manpage: extra/fatcat-cli.1 ## Rebuild manpage using scdoc
.PHONY: deb
deb: ## Build debian packages (.deb files)
cargo deb -p fatcat-cli
+
+.PHONY: brew-folder
+brew-folder: extra/fatcat-cli.1 completions build-release ## Copy files into homebrew folder
+ mkdir -p target/homebrew/doc
+ cp extra/fatcat-cli.1 target/homebrew/doc/fatcat-cli.1
+ mkdir -p target/homebrew/complete
+ cp extra/fatcat-cli.bash_completions target/homebrew/complete/fatcat-cli.bash
+ cp extra/fatcat-cli.zsh_completions target/homebrew/complete/_fatcat-cli
+ cp target/release/fatcat-cli target/homebrew/fatcat-cli