Major refactor for Cobra and new pkg/app structure for wwctl

This commit is contained in:
Gregory Kurtzer
2020-11-10 21:28:39 -08:00
parent 0c369270ef
commit 189618a111
24 changed files with 658 additions and 130 deletions

View File

@@ -40,7 +40,7 @@ lint:
@echo Running golangci-lint...
@$(GOLANGCI_LINT) run --build-tags "$(WW_BUILD_GO_BUILD_TAGS)" ./...
all: warewulfd wwbuild wwclient
all: warewulfd wwctl wwclient
files: all
install -d -m 0755 /var/warewulf/
@@ -67,8 +67,8 @@ services: files
warewulfd:
cd cmd/warewulfd; go build -mod vendor -o ../../warewulfd
wwbuild:
cd cmd/wwbuild; go build -mod vendor -tags "$(WW_BUILD_GO_BUILD_TAGS)" -o ../../wwbuild
wwctl:
cd cmd/wwctl; go build -mod vendor -tags "$(WW_BUILD_GO_BUILD_TAGS)" -o ../../wwctl
wwclient:
cd cmd/wwclient; CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -ldflags '-extldflags -static' -o ../../wwclient
@@ -76,7 +76,6 @@ wwclient:
clean:
rm -f warewulfd
rm -f wwbuild
rm -f wwclient
rm -f wwctl
install: files services