From 2bbd9a965df9e65f25d3611d1bfa003d14856a61 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 10 Feb 2021 23:52:47 -0800 Subject: make: homebrew helper target --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- cgit v1.2.3