chore: use go generate to create Validate and Merge funcs on RoleConfigs
This commit is contained in:
parent
28b7993be4
commit
c9e93802eb
10 changed files with 236 additions and 200 deletions
10
Makefile
10
Makefile
|
|
@ -1,13 +1,15 @@
|
|||
|
||||
all: hivemind hivemind-musl
|
||||
|
||||
hivemind:
|
||||
codegen:
|
||||
go generate ./...
|
||||
|
||||
hivemind: codegen
|
||||
go build -o build/hivemind ./cmd/hivemind
|
||||
|
||||
hivemind-musl:
|
||||
hivemind-musl: codegen
|
||||
CC=musl-gcc go build \
|
||||
-ldflags="-linkmode external -extldflags '-static'" \
|
||||
-o build/hivemind-musl \
|
||||
./cmd/hivemind
|
||||
|
||||
.phony: all hivemind hivemind-musl
|
||||
.phony: all codegen hivemind hivemind-musl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue