diff --git a/Makefile b/Makefile index 43d0172..730e0b3 100644 --- a/Makefile +++ b/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 .