From cf5658fed95cd4c283b3c8b661f54da7005d17e4 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Thu, 15 Jun 2023 08:54:17 +0200 Subject: [PATCH] fixed targets for doc build Signed-off-by: Christian Goll --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1abd6869..f5c1dacc 100644 --- a/Makefile +++ b/Makefile @@ -216,12 +216,12 @@ init: cp -r tftpboot/* $(WWTFTPDIR)/ipxe/ restorecon -r $(WWTFTPDIR) -wwctl: $(WWCTL_DEPS) +wwctl: config vendor $(WWCTL_DEPS) @echo Building "$@" @cd cmd/wwctl; GOOS=linux go build -mod vendor -tags "$(WW_GO_BUILD_TAGS)" \ -o ../../wwctl -wwclient: $(WWCLIENT_DEPS) +wwclient: config vendor $(WWCLIENT_DEPS) @echo Building "$@" @cd cmd/wwclient; CGO_ENABLED=0 GOOS=linux go build -mod vendor -a -ldflags "-extldflags -static" \ -o ../../wwclient @@ -246,6 +246,7 @@ dist: vendor config rm -rf .dist reference: wwctl + mkdir -p userdocs/reference ./wwctl --emptyconf genconfig reference userdocs/reference/ latexpdf: reference