cacert-boardvoting/Makefile

17 lines
433 B
Makefile
Raw Normal View History

2017-04-18 14:07:54 +00:00
VERSION := $(shell git describe --always --dirty=-dev)
BUILD := $(shell date --iso-8601=seconds --utc)
GOFILES = $(shell find . -type f -name '*.go')
2017-04-18 14:07:54 +00:00
all: cacert-boardvoting
cacert-boardvoting: ${GOFILES}
2021-03-14 17:10:51 +00:00
go build -o $@ -buildmode=pie -trimpath -x -ldflags " -s -w -X 'main.version=${VERSION}' -X 'main.build=${BUILD}'"
2017-04-18 14:07:54 +00:00
clean:
rm -f cacert-boardvoting
distclean: clean
rm -f boardvoting/assets.go
.PHONY: clean distclean all