From bb6b8d15d4be24cd0c3d9a2cbb3c8fa076eee5be Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Wed, 11 May 2022 12:16:31 +0200 Subject: [PATCH] Improve make dist for windows target * Change dist target for windows to only include the two binaries that work, uploader and checker. And prepare for selected docs. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0f23e23..facacc1 100644 --- a/Makefile +++ b/Makefile @@ -71,8 +71,11 @@ build_linux build_win: DISTDIR := csaf_distribution-$(SEMVER) dist: build_linux build_win mkdir -p dist - mkdir dist/$(DISTDIR)-windows-amd64 - cp -r README.md docs bin-windows-amd64 dist/$(DISTDIR)-windows-amd64 + mkdir -p dist/$(DISTDIR)-windows-amd64/bin-windows-amd64 + cp README.md dist/$(DISTDIR)-windows-amd64 + cp bin-windows-amd64/csaf_uploader.exe bin-windows-amd64/csaf_checker.exe dist/$(DISTDIR)-windows-amd64/bin-windows-amd64/ + mkdir -p dist/$(DISTDIR)-windows-amd64/docs + #cp docs/csaf_uploader.md docs/csaf_checker.md dist/$(DISTDIR)-windows-amd64/docs mkdir dist/$(DISTDIR)-gnulinux-amd64 cp -r README.md docs bin-linux-amd64 dist/$(DISTDIR)-gnulinux-amd64 cd dist/ ; zip -r $(DISTDIR)-windows-amd64.zip $(DISTDIR)-windows-amd64/