diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-10 13:14:17 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-07-10 13:34:59 -0600 |
commit | 42f6f78e0a32ba0eda707154f8e1ffb4579604ee (patch) | |
tree | 07472bcec915dbf57c7c234fb184d6aac213c58b | |
parent | 26c6f54f33b41882cb7957f316aef64157f8e972 (diff) |
Integrate pkg/btrfs/Makefile in to Makefile and .build.yml
-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 |