-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
58 lines (40 loc) · 1.03 KB
/
Makefile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
GO_FLAGS := -ldflags "-extldflags \"-static\" -s -w $(GO_LDFLAGS)" -tags netgo
test:
echo "testing"
test-integration:
echo "integration testing"
lint:
echo "linting"
loki:
go build -o cmd/loki/loki cmd/loki/main.go
loki-image:
docker build -t trevorwhitney075/loki -f cmd/loki/Dockerfile .
clean:
rm -rf cmd/loki/loki dist
check-generated-files:
echo "checking generated files"
check-mod:
echo "checking mod"
lint-scripts:
echo "linting scripts"
check-doc:
echo "checking docs"
check-example-config-doc:
echo "checking example config docs"
documentation-helm-reference-check:
echo "documentation helm reference check"
validate-example-configs:
echo "validating example configs"
validate-dev-cluster-config:
echo "validating dev cluster config"
check-format:
echo "checking the format"
dist:
mkdir -p dist
cp CHANGELOG.md dist/
packages:
./tools/nfpm-env-var-test.sh
mkdir -p dist
cp CHANGELOG.md dist/PACKAGING.MD
clients/cmd/docker-driver/docker-driver:
CGO_ENABLED=0 go build $(GO_FLAGS) -o $@ ./$(@D)