1 Star 1 Fork 0

JaccyLi/termtask

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 511 Bytes
一键复制 编辑 原始数据 按行查看 历史
JaccyLi 提交于 2022-09-24 01:51 +08:00 . fix bug
.PHONY: run,deploy,build,completion
OUT_BIN=termtask
COM_SCRIPT=termtask-com.sh
run:
go run main.go
all: deploy completion
completion: deploy
apt install -y bash-completion
termtask completion bash > /etc/profile.d/$(COM_SCRIPT)
source /usr/share/bash-completion/bash_completion
source ~/.bashrc
deploy: build move
move:
[ -f $(OUT_BIN) ] && cp $(OUT_BIN) /bin/
chmod u+x /bin/$(OUT_BIN)
build:
GOOS=linux GOARCH=amd64 go build -o $(OUT_BIN) main.go
clean:
[ -f $(OUT_BIN) ] && rm -f $(OUT_BIN)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/JaccyLi/termtask.git
git@gitee.com:JaccyLi/termtask.git
JaccyLi
termtask
termtask
master

搜索帮助