File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ BFE_PKGS := $(shell go list ./...)
48
48
# make, make all
49
49
all : prepare compile package
50
50
51
+ # make, make strip
52
+ strip : prepare compile-strip package
53
+
51
54
# make prepare, download dependencies
52
55
prepare : prepare-dep prepare-gen
53
56
prepare-dep :
@@ -60,6 +63,11 @@ compile: test build
60
63
build :
61
64
$(GOBUILD ) -ldflags " -X main.version=$( BFE_VERSION) -X main.commit=$( GIT_COMMIT) -extldflags=-static"
62
65
66
+ # make compile-strip, go build without symbols and DWARFs
67
+ compile-strip : test build-strip
68
+ build-strip :
69
+ $(GOBUILD ) -ldflags " -X main.version=$( BFE_VERSION) -X main.commit=$( GIT_COMMIT) -extldflags=-static -s -w"
70
+
63
71
# make test, test your code
64
72
test : test-case vet-case
65
73
test-case :
You can’t perform that action at this time.
0 commit comments