@@ -22,7 +22,11 @@ XARGS := xargs -L 1
22
22
23
23
VERSION_TAG = $(shell git describe --tags)
24
24
25
+ DEV_TAGS = kvdb_etcd kvdb_postgres kvdb_sqlite
26
+ RELEASE_TAGS = $(DEV_TAGS )
27
+
25
28
BUILD_SYSTEM = darwin-amd64 \
29
+ darwin-arm64 \
26
30
linux-386 \
27
31
linux-amd64 \
28
32
linux-armv6 \
49
53
make_ldflags = $(2 ) -X $(PKG ) .Commit=$(COMMIT )
50
54
51
55
DEV_GCFLAGS := -gcflags "all=-N -l"
52
- LDFLAGS := -ldflags "$(call make_ldflags, ${tags} , -s -w) "
56
+ LDFLAGS := -ldflags "$(call make_ldflags, $( DEV_TAGS ) , -s -w) "
53
57
DEV_LDFLAGS := -ldflags "$(call make_ldflags, $(DEV_TAGS ) ) "
54
58
55
59
# For the release, we want to remove the symbol table and debug information (-s)
83
87
84
88
install :
85
89
@$(call print, "Installing lndinit.")
86
- $(GOINSTALL ) -tags=" ${tags} " $(LDFLAGS ) $(PKG )
90
+ $(GOINSTALL ) -tags=" $( DEV_TAGS ) " $(LDFLAGS ) $(PKG )
87
91
88
92
release-install :
89
93
@$(call print, "Installing release lndinit.")
@@ -105,7 +109,7 @@ scratch: build
105
109
106
110
unit :
107
111
@$(call print, "Running unit tests.")
108
- $(GOTEST ) ./...
112
+ $(GOTEST ) -tags= " $( DEV_TAGS ) " ./...
109
113
110
114
fmt : $(GOIMPORTS_BIN )
111
115
@$(call print, "Fixing imports.")
@@ -115,7 +119,7 @@ fmt: $(GOIMPORTS_BIN)
115
119
116
120
lint : docker-tools
117
121
@$(call print, "Linting source.")
118
- $(DOCKER_TOOLS ) golangci-lint run -v $(LINT_WORKERS )
122
+ $(DOCKER_TOOLS ) golangci-lint run -v --build-tags= " $( DEV_TAGS ) " $(LINT_WORKERS )
119
123
120
124
vendor :
121
125
@$(call print, "Re-creating vendor directory.")
0 commit comments