summaryrefslogtreecommitdiff
path: root/Makefile
blob: c69f2b78363f46e96622fb596cc82581679969ac (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 $@ -x -ldflags " -X 'main.version=${VERSION}' -X 'main.build=${BUILD}'"

clean:
	rm -f cacert-boardvoting

distclean: clean
	rm -f boardvoting/assets.go

.PHONY: clean distclean all