2019-05-01 01:53:53 +00:00
|
|
|
COVER_PROFILE=cover.out
|
|
|
|
COVER_HTML=cover.html
|
|
|
|
|
2019-05-01 01:55:14 +00:00
|
|
|
.PHONY: $(COVER_PROFILE) $(COVER_HTML)
|
|
|
|
|
2019-03-27 23:09:54 +00:00
|
|
|
all: open
|
|
|
|
|
|
|
|
build: clean
|
2023-08-29 13:34:14 +00:00
|
|
|
mkdir -p -v ./bin/amm.app/Contents/Resources/assets/icon
|
2019-03-27 23:09:54 +00:00
|
|
|
mkdir -p -v ./bin/amm.app/Contents/MacOS
|
|
|
|
cp ./appInfo/*.plist ./bin/amm.app/Contents/Info.plist
|
2019-03-28 01:01:45 +00:00
|
|
|
cp ./appInfo/*.icns ./bin/amm.app/Contents/Resources/icon.icns
|
2023-08-29 13:34:14 +00:00
|
|
|
cp ./assets/icon/* ./bin/amm.app/Contents/Resources/assets/icon
|
2019-03-27 23:09:54 +00:00
|
|
|
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
|
|
|
|
|
2019-05-01 23:50:28 +00:00
|
|
|
test:coverage
|
|
|
|
|
2019-05-01 01:53:53 +00:00
|
|
|
coverage: $(COVER_HTML)
|
|
|
|
|
|
|
|
$(COVER_HTML): $(COVER_PROFILE)
|
|
|
|
go tool cover -html=$(COVER_PROFILE) -o $(COVER_HTML)
|
|
|
|
|
|
|
|
$(COVER_PROFILE):
|
|
|
|
go test -v -failfast -race -coverprofile=$(COVER_PROFILE) ./...
|
2019-03-27 23:09:54 +00:00
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet $(shell glide nv)
|
|
|
|
|
|
|
|
lint:
|
2019-05-01 23:50:28 +00:00
|
|
|
go list ./... | grep -v vendor | grep -v /assets/ |xargs -L1 golint -set_exit_status
|
2019-03-27 23:09:54 +00:00
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
.PHONY: clean
|