-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
25 lines (22 loc) · 927 Bytes
/
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
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}/_awsd_prompt
cp scripts/_awsd ${BINDIR}/_awsd
cp scripts/_awsd_autocomplete ${BINDIR}/_awsd_autocomplete
@echo " -=-=--=-=-=-=-=-=-=-=-=-=-=-=- "
@echo " "
@echo " To Finish Installation add "
@echo " "
@echo " alias awsd=\"source _awsd\" "
@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}/_awsd
rm -f ${BINDIR}/_awsd_autocomplete
rm -f ${BINDIR}/_awsd_prompt