-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 813 Bytes
/
Makefile
File metadata and controls
42 lines (31 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
VERSION = $(shell git describe --tags --always --dirty)
LDFLAGS = -ldflags "-X main.version=$(VERSION)"
all: deb
bin/ik: .PHONY
mkdir -p bin
cd go/ik &&\
CGO_ENABLED=0 go build -o ../../bin/ik $(LDFLAGS)
# see https://github.com/jordansissel/fpm
deb: bin/ik
fpm \
-f \
-s dir -t deb \
-p identitykit-$(VERSION)-amd64.deb \
--name identitykit \
--license BSD \
--version $(VERSION) \
--architecture amd64 \
--description "dg identitkit" \
--url "https://kraudcloud.com" \
--maintainer "Arvid E. Picciani <aep@exys.org>" \
bin/ik=/usr/bin/ik \
release: deb
cp identitykit-$(VERSION)-amd64.deb ../dpkg/deb/
cd ../dpkg && ./push.sh
vet:
cd go && go fmt ./...
cd go && go vet ./...
cd go && go test ./...
cd go && golangci-lint run ./...
cd go && govulncheck ./...
.PHONY: