.PHONY: all # all: test build run all: build run .PHONY: run run: ./run.sh -r #@go run ./... .PHONY: build build: @go build -o ./build/servcvgen ./... @echo "[OK] servcvgen was build in ./build/servcvgen !" sbuild: @CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ./build/servcvgen ./... @echo "[OK] servcvgen was build in ./build/servcvgen !" .PHONY: install install: @go install @echo "[OK] servcvgen was installed in $$GOPATH/bin/servcvgen" # .PHONY: test # test: # @go test -v -coverprofile=cover.out ./... # @echo "[OK] Test and coverage file was created!" .PHONY: show_coverage show_coverage: @go tool cover -html=cover.out @echo "[OK] Coverage file opened!"