-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 696 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
BIN := termask
INSTALL := $(HOME)/.local/bin
.PHONY: build install shell-zsh shell-bash clean
build:
go build -buildvcs=false -o $(BIN) ./cmd/termask
install: build
mkdir -p $(INSTALL)
cp $(BIN) $(INSTALL)/.$(BIN).tmp
mv -f $(INSTALL)/.$(BIN).tmp $(INSTALL)/$(BIN)
@echo "✓ Installed to $(INSTALL)/$(BIN)"
@echo ""
@echo "Add the shell integration to your .zshrc:"
@echo " $(INSTALL)/$(BIN) shell --shell zsh >> ~/.zshrc && source ~/.zshrc"
@echo ""
@echo "Or for bash:"
@echo " $(INSTALL)/$(BIN) shell --shell bash >> ~/.bashrc && source ~/.bashrc"
shell-zsh:
@$(INSTALL)/$(BIN) shell --shell zsh
shell-bash:
@$(INSTALL)/$(BIN) shell --shell bash
clean:
rm -f $(BIN)