mirror of
https://github.com/go-gitea/gitea
synced 2024-11-06 22:29:03 +01:00
18 lines
311 B
Makefile
18 lines
311 B
Makefile
|
GO ?= go
|
||
|
VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
|
||
|
|
||
|
.PHONY: fmt
|
||
|
fmt:
|
||
|
$(GO) fmt ./...
|
||
|
|
||
|
.PHONY: test
|
||
|
test:
|
||
|
$(GO) test -race ./...
|
||
|
|
||
|
.PHONY: vet
|
||
|
vet:
|
||
|
$(GO) vet ./...
|
||
|
|
||
|
.PHONY: build
|
||
|
build:
|
||
|
$(GO) build -ldflags '-s -w -X "main.Version=$(VERSION)"' go.jolheiser.com/pwn/cmd/pwn
|