summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-10 13:14:17 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-10 13:34:59 -0600
commit42f6f78e0a32ba0eda707154f8e1ffb4579604ee (patch)
tree07472bcec915dbf57c7c234fb184d6aac213c58b
parent26c6f54f33b41882cb7957f316aef64157f8e972 (diff)
Integrate pkg/btrfs/Makefile in to Makefile and .build.yml
-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