提交 f3019b74 编写于 作者: D Derek Parker

Prefer makefile to shell script

上级 4d918aeb
UNAME = $(shell uname)
PREFIX=github.com/derekparker/delve
build:
go build github.com/derekparker/delve/cmd/dlv
ifeq "$(UNAME)" "Darwin"
codesign -s dlv-cert ./dlv
endif
install:
go install github.com/derekparker/delve/cmd/dlv
ifeq "$(UNAME)" "Darwin"
codesign -s dlv-cert $(which dlv)
endif
test:
ifeq "$(UNAME)" "Darwin"
go test $(PREFIX)/command $(PREFIX)/dwarf/frame $(PREFIX)/dwarf/op $(PREFIX)/dwarf/util
cd proctl && go test -c $(PREFIX)/proctl && codesign -s $(CERT) ./proctl.test && ./proctl.test
else
go test ./...
endif
#!/bin/sh
go test -c && codesign -s dbg-cert ./proctl.test && ./proctl.test -test.v -test.run "$1"
rm ./proctl.test
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册