misc: Add baddev tooling

I think this is the *wrong* way to build this, but it's perfectly legal
to have a feature branch with this committed that people can develop
against. We can always cherry-pick off those commits to merge them, and
we can update and rebase this commit over time when needed.
This commit is contained in:
James Shubin
2025-02-27 17:18:39 -05:00
parent c5257dd64b
commit a64e3ee179
2 changed files with 15 additions and 0 deletions

View File

@@ -213,6 +213,10 @@ build: $(PROGRAM)
build-debug: LDFLAGS=
build-debug: $(PROGRAM)
# if you're using the bad/dev branch, you might want this too!
baddev: BUILD_FLAGS = -tags 'noaugeas novirt'
baddev: $(PROGRAM)
# pattern rule target for (cross)building, mgmt-OS-ARCH will be expanded to the correct build
# extract os and arch from target pattern
GOOS=$(firstword $(subst -, ,$*))