summaryrefslogtreecommitdiff
path: root/Makefile
blob: 73104a61d447a78b2ab5e357a003d1993ca40030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
VERSION := $(shell git describe --always --dirty=-dev)
BUILD := $(shell date --iso-8601=seconds --utc)
GOFILES = $(shell find . -type f -name '*.go')

all: cacert-boardvoting

cacert-boardvoting: ${GOFILES}
	go build -o $@ -buildmode=pie -trimpath -x -ldflags " -s -w -X 'main.version=${VERSION}' -X 'main.build=${BUILD}'"

clean:
	rm -f cacert-boardvoting

distclean: clean
	rm -f boardvoting/assets.go

.PHONY: clean distclean all