mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
add run-dev to makefile
This commit is contained in:
parent
7fdcd7bbf1
commit
db2c832bd7
8
Makefile
8
Makefile
@ -11,9 +11,6 @@ build:
|
||||
go mod download
|
||||
CGO_ENABLED=0 go build -tags release -ldflags $(LD_FLAGS) -o ctop
|
||||
|
||||
build-dev:
|
||||
go build -ldflags "-w -X main.version=$(VERSION)-dev -X main.build=$(BUILD) -extldflags=$(EXT_LD_FLAGS)"
|
||||
|
||||
build-all:
|
||||
mkdir -p _build
|
||||
GOOS=darwin GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/ctop-$(VERSION)-darwin-amd64
|
||||
@ -23,6 +20,11 @@ build-all:
|
||||
GOOS=windows GOARCH=amd64 go build -tags release -ldflags $(LD_FLAGS) -o _build/ctop-$(VERSION)-windows-amd64
|
||||
cd _build; sha256sum * > sha256sums.txt
|
||||
|
||||
run-dev:
|
||||
rm -f ctop.sock ctop
|
||||
go build -ldflags $(LD_FLAGS) -o ctop
|
||||
CTOP_DEBUG=1 ./ctop
|
||||
|
||||
image:
|
||||
docker build -t ctop -f Dockerfile .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user