mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Add dist Makefile target
* Using a simple combined recipe to create to dist directories for a release archive with all docs.
This commit is contained in:
parent
8bf48a2de2
commit
b08eb94fdb
1 changed files with 12 additions and 2 deletions
14
Makefile
14
Makefile
|
|
@ -67,7 +67,17 @@ build_linux build_win:
|
||||||
env GOARCH=$(GOARCH) GOOS=$(GOOS) $(BUILD) -o $(BINDIR) $(LDFLAGS) -v ./cmd/...
|
env GOARCH=$(GOARCH) GOOS=$(GOOS) $(BUILD) -o $(BINDIR) $(LDFLAGS) -v ./cmd/...
|
||||||
|
|
||||||
|
|
||||||
# Remove bin-*-* directories
|
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 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/
|
||||||
|
cd dist/ ; tar -cvmlzf $(DISTDIR)-gnulinux-amd64.tar.gz $(DISTDIR)-gnulinux-amd64/
|
||||||
|
|
||||||
|
# Remove bin-*-* and dist directories
|
||||||
mostlyclean:
|
mostlyclean:
|
||||||
rm -rf ./bin-*-*
|
rm -rf ./bin-*-* dist/
|
||||||
@echo Files in \`go env GOCACHE\` remain.
|
@echo Files in \`go env GOCACHE\` remain.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue