From 636f54cbfb811fad07f79f855881379fd1a8e85b Mon Sep 17 00:00:00 2001 From: ehlxr Date: Tue, 8 Oct 2019 17:44:54 +0800 Subject: [PATCH] update at 2019-10-08 17:44:54 by ehlxr --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 967aa46..c407eb4 100644 --- a/Makefile +++ b/Makefile @@ -28,9 +28,16 @@ clean: install: go install -ldflags $(LD_FLAGS) +# 如果一个规则是以 .IGNORE 作为目标的,那么这个规则中所有命令都将会忽略错误 +.IGNORE: + upx + # 压缩。需要安装 https://github.com/upx/upx upx: + @# 在命令前面加上“-”,表示不管该命令出不出错,后面的命令都将继续执行下去 + @# -upx $(DIST_DIR)** upx $(DIST_DIR)** + echo "sdfs" release: build upx ifneq ($(shell type ghr >/dev/null 2>&1;echo $$?), 0)