File tree 2 files changed +17
-2
lines changed
website/content/en/docs/installation
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,12 @@ PACKAGE := github.com/lima-vm/lima
46
46
VERSION := $(shell git describe --match 'v[0-9]* ' --dirty='.m' --always --tags)
47
47
VERSION_TRIMMED := $(VERSION:v%=% )
48
48
49
- GO_BUILD_LDFLAGS := -ldflags="-s -w -X $(PACKAGE ) /pkg/version.Version=$(VERSION ) "
49
+ KEEP_SYMBOLS ?=
50
+ GO_BUILD_LDFLAGS_S := true
51
+ ifeq ($(KEEP_SYMBOLS ) ,1)
52
+ GO_BUILD_LDFLAGS_S = false
53
+ endif
54
+ GO_BUILD_LDFLAGS := -ldflags="-s=$(GO_BUILD_LDFLAGS_S ) -w -X $(PACKAGE ) /pkg/version.Version=$(VERSION ) "
50
55
# `go -version -m` returns -tags with comma-separated list, because space-separated list is deprecated in go1.13.
51
56
# converting to comma-separated list is useful for comparing with the output of `go version -m`.
52
57
GO_BUILD_FLAG_TAGS := $(addprefix -tags=,$(shell echo "$(GO_BUILDTAGS ) "|tr " " "\n"|paste -sd "," -) )
68
73
@echo ' binaries - Build all binaries'
69
74
@echo ' manpages - Build manual pages'
70
75
@echo
71
- @echo " Use 'make help-targets' to see additional targets."
76
+ @echo ' help-variables - Show Makefile variables'
77
+ @echo ' help-targets - Show additional Makefile targets'
78
+
79
+ .PHONY : help-varaibles
80
+ help-variables :
81
+ @echo ' # Variables that can be overridden.'
82
+ @echo
83
+ @echo ' - PREFIX (directory) : Installation prefix (default: /usr/local)'
84
+ @echo ' - KEEP_SYMBOLS (1 or 0) : Whether to keep symbols (default: 0)'
72
85
73
86
.PHONY : help-targets
74
87
help-targets :
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ make install
60
60
61
61
The installation directory (` $PREFIX ` ) defaults to ` /usr/local ` .
62
62
63
+ Run ` make help-variables ` to show other Makefile variables.
64
+
63
65
#### Advanced configuration with Kconfig tools
64
66
(This step is not needed for most users)
65
67
You can’t perform that action at this time.
0 commit comments