11 lines
297 B
Makefile
11 lines
297 B
Makefile
VERSION := $(shell git describe --always --dirty=-dev)
|
|
BUILD := $(shell date --iso-8601=seconds --utc)
|
|
GOFILES := $(wildcard *.go)
|
|
|
|
cacert-boardvoting: ${GOFILES}
|
|
go build -o $@ -x -ldflags " -X 'main.version=${VERSION}' -X 'main.build=${BUILD}'"
|
|
|
|
clean:
|
|
rm -f cacert-boardvoting
|
|
|
|
.PHONY: clean
|