提交 7b7387fd 编写于 作者: E Evan Lin 提交者: Derek Parker

makefile: Check $GOBIN before codesign, otherwise use $GOPATH/bin (#504)

Fixes #502
上级 f7cb6053
......@@ -37,13 +37,21 @@ endif
build: check-cert
go build $(BUILD_FLAGS) github.com/derekparker/delve/cmd/dlv
ifdef DARWIN
codesign -s "$(CERT)" ./dlv
ifneq "$(GOBIN)" ""
codesign -s "$(CERT)" $(GOBIN)/dlv
else
codesign -s "$(CERT)" $(GOPATH)/bin/dlv
endif
endif
install: check-cert
go install $(BUILD_FLAGS) github.com/derekparker/delve/cmd/dlv
ifdef DARWIN
codesign -s "$(CERT)" $(GOPATH)/bin/dlv
ifneq "$(GOBIN)" ""
codesign -s "$(CERT)" $(GOBIN)/dlv
else
codesign -s "$(CERT)" $(GOPATH)/bin/dlv
endif
endif
test: check-cert
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册