diff options
-rw-r--r-- | .build.yml | 8 | ||||
-rw-r--r-- | Makefile | 8 |
2 files changed, 16 insertions, 0 deletions
@@ -9,3 +9,11 @@ packages: tasks: - lint: make -C btrfs-ng lint - check: make -C btrfs-ng check + - generate: | + cd btrfs-ng + make generate + git add . + if [[ -n "$(git status --porcelain)" ]]; then + PAGER= git diff --cached + exit 1 + fi @@ -12,6 +12,14 @@ lint: tools/bin/golangci-lint tools/bin/golangci-lint run ./... .PHONY: lint +generate: + $(MAKE) -C pkg/btrfs +.PHONY: generate + +generate-clean: + $(MAKE) -C pkg/btrfs clean +.PHONY: generate-clean + # tools tools/bin/%: tools/src/%/pin.go tools/src/%/go.mod |