1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Rename binaries folder to bin.

This commit is contained in:
Sascha L. Teichmann 2022-02-02 11:20:51 +01:00
parent ec6cabb9ac
commit 9680a220be
2 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
SHELL=/bin/bash SHELL=/bin/bash
BUILD = go build BUILD = go build
MAKDIR = mkdir -p binaries MKDIR = mkdir -p bin
.PHONY: build build_win build_tag clean .PHONY: build build_win build_tag clean
@ -13,13 +13,13 @@ all:
build_linux: build_linux:
@$(MKDIR) @$(MKDIR)
@echo "Bulding binaries for GNU/Linux ..." @echo "Bulding binaries for GNU/Linux ..."
@$(BUILD) -o ./binaries/ -v ./cmd/... @$(BUILD) -o ./bin/ -v ./cmd/...
# Build the binaries for windows (cross build) and place them under binaries/ directory. # Build the binaries for windows (cross build) and place them under binaries/ directory.
build_win: build_win:
@$(MKDIR) @$(MKDIR)
@echo "Bulding binaries for windows (cross build) ..." @echo "Bulding binaries for windows (cross build) ..."
@env GOOS=windows $(BUILD) -o ./binaries/ -v ./cmd/... @env GOARCH=amd64 GOOS=windows $(BUILD) -o ./bin/ -v ./cmd/...
# Build the binaries for both GNU/linux and Windows and place them under binaries/ directory. # Build the binaries for both GNU/linux and Windows and place them under binaries/ directory.
build: build_linux build_win build: build_linux build_win
@ -39,6 +39,6 @@ endif
# Remove binaries directory # Remove binaries directory
clean: clean:
@rm -rf binaries/ @rm -rf bin/

View file

@ -10,13 +10,13 @@
- Clone the repository `git clone https://github.com/csaf-poc/csaf_distribution.git ` - Clone the repository `git clone https://github.com/csaf-poc/csaf_distribution.git `
- Build Go components - Build Go components
Makefile supplies the following builds: Makefile supplies the following targets:
- Build For Linux System:`make build_linux` - Build For GNU/Linux System: `make build_linux`
- Build For Windows System (cross build): `make build_win` - Build For Windows System (cross build): `make build_win`
- Build For both linux and windows: `make build` - Build For both linux and windows: `make build`
- Build from the last github-tag: `make build_tag` - Build from the last github-tag: `make build_tag`
These places the binaries under `binaries/` directory. These places the binaries under `bin/` directory.
- [Install](http://nginx.org/en/docs/install.html) **nginx** - [Install](http://nginx.org/en/docs/install.html) **nginx**
- To configure nginx see [docs/provider-setup.md](docs/provider-setup.md) - To configure nginx see [docs/provider-setup.md](docs/provider-setup.md)