d2/Makefile

30 lines
496 B
Makefile
Raw Normal View History

.POSIX:
.PHONY: all
all: fmt lint build test
ifdef CI
all: assert-linear
endif
.PHONY: fmt
fmt:
prefix "$@" ./ci/sub/fmt/make.sh
2022-11-20 10:09:32 +00:00
.PHONY: fmt-release
fmt-release_sh:
prefix "$@" ./ci/release/gen_sh.sh
.PHONY: lint
lint:
prefix "$@" go vet --composites=false ./...
.PHONY: build
build:
prefix "$@" go build ./...
.PHONY: test
test:
prefix "$@" ./ci/test.sh
.PHONY: race
race:
prefix "$@" ./ci/test.sh --race ./...
.PHONY: assert-linear
assert-linear:
prefix "$@" ./ci/sub/assert_linear.sh