adf3511b1e
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
19 lines
362 B
Makefile
19 lines
362 B
Makefile
.PHONY: all
|
|
all: dagger
|
|
|
|
.PHONY: generate
|
|
generate:
|
|
go generate ./dagger
|
|
|
|
.PHONY: dagger
|
|
dagger: generate
|
|
go build -o ./cmd/dagger/ ./cmd/dagger/
|
|
|
|
.PHONY: cuefmt
|
|
cuefmt:
|
|
(cd ./dagger && cue fmt -s ./... && cue trim -s ./...)
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
golangci-lint run
|
|
@test -z "$$(git status -s . | grep -e "^ M" | grep .cue | cut -d ' ' -f3 | tee /dev/stderr)"
|