20 lines
359 B
Makefile
20 lines
359 B
Makefile
GO ?= go
|
|
|
|
.PHONY: build deps lint install
|
|
|
|
all: build
|
|
|
|
deps:
|
|
$(GO) mod download
|
|
|
|
build: deps
|
|
CGO_ENABLED=0 $(GO) build -a -v -x -trimpath -ldflags "-X fes/modules/version.gitCommit=$(shell git rev-parse --short HEAD) -s -w -buildid=" -o fes
|
|
@echo "Fes is now built to ./fes"
|
|
|
|
lint:
|
|
$(GO) vet ./...
|
|
$(GO) fmt ./...
|
|
|
|
install: build
|
|
@cp fes /usr/local/bin
|