-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (27 loc) · 1.1 KB
/
Makefile
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
29
30
BINDIR = /usr/local/bin
help: ## Show this help
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
install: ## Install Target
GOOS= GOARCH= GOARM= GOFLAGS= go build -o ${BINDIR}/_kxd_prompt
cp scripts/_kxd ${BINDIR}/_kxd
cp scripts/_kxd_autocomplete ${BINDIR}/_kxd_autocomplete
@echo " -=-=--=-=-=-=-=-=-=-=-=-=-=-=- "
@echo " __ __ _ __ ____ "
@echo " / //_/ | |/ / / __ \ "
@echo " / ,< | / / / / / "
@echo " / /| | / | / /_/ / "
@echo " /_/ |_| /_/|_| /_____/ "
@echo " "
@echo " To Finish Installation add "
@echo " "
@echo " alias kxd=\"source _kxd\" "
@echo " "
@echo " to your bash profile or zshrc "
@echo " then open new terminal or "
@echo " source that file "
@echo " "
@echo " -=-=--=-=-=-=-=-=-=-=-=-=-=-=- "
uninstall: ## Uninstall Target
rm -f ${BINDIR}/_kxd
rm -f ${BINDIR}/_kxd_autocomplete
rm -f ${BINDIR}/_kxd_prompt