2019-03-27 23:09:54 +00:00
|
|
|
all: open
|
|
|
|
|
|
|
|
build: clean
|
|
|
|
mkdir -p -v ./bin/amm.app/Contents/Resources
|
|
|
|
mkdir -p -v ./bin/amm.app/Contents/MacOS
|
|
|
|
cp ./appInfo/*.plist ./bin/amm.app/Contents/Info.plist
|
|
|
|
go build -o ./bin/amm.app/Contents/MacOS/amm cmd/main.go
|
|
|
|
|
|
|
|
open: build
|
|
|
|
open ./bin
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf ./bin
|
|
|
|
|
2019-03-22 22:56:20 +00:00
|
|
|
start:
|
2019-03-27 02:50:09 +00:00
|
|
|
go run cmd/main.go
|
|
|
|
|
|
|
|
test:
|
2019-03-27 23:09:54 +00:00
|
|
|
go test -v -race -failfast ./...
|
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet $(shell glide nv)
|
|
|
|
|
|
|
|
lint:
|
|
|
|
go list ./... | grep -v vendor | xargs -L1 golint -set_exit_status
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
.PHONY: clean
|