This repository has been archived on 2021-02-22. You can view files and clone it, but cannot push or open issues or pull requests.
pwn/Makefile
jolheiser 1975539a24
Initial Commit
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-08-28 11:56:10 -05:00

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