automatic-mouse-mover/Makefile

41 lines
818 B
Makefile
Raw Normal View History

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
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
2019-03-28 01:01:45 +00:00
cp ./appInfo/*.icns ./bin/amm.app/Contents/Resources/icon.icns
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
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