summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.build.yml8
-rw-r--r--Makefile8
2 files changed, 16 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
index 9b0bf76..0cbd549 100644
--- a/.build.yml
+++ b/.build.yml
@@ -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
diff --git a/Makefile b/Makefile
index 73263d0..1a14ffe 100644
--- a/Makefile
+++ b/Makefile
@@ -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