28 lines
478 B
Makefile
28 lines
478 B
Makefile
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
|
|
|
|
start:
|
|
go run cmd/main.go
|
|
|
|
test:
|
|
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 |