This commit is contained in:
parent
25b5f519c3
commit
fb43bc9e2f
4
Makefile
4
Makefile
@ -2,7 +2,6 @@ export BUILD_VERSION ?= 1.15.0
|
|||||||
export DEBIAN_FRONTEND ?= noninteractive
|
export DEBIAN_FRONTEND ?= noninteractive
|
||||||
export LANG ?= C.UTF-8
|
export LANG ?= C.UTF-8
|
||||||
export TZ ?= UTC
|
export TZ ?= UTC
|
||||||
export RUSTFLAGS ?= -C link-arg=-s
|
|
||||||
DB ?= postgresql
|
DB ?= postgresql
|
||||||
SRC := src
|
SRC := src
|
||||||
|
|
||||||
@ -20,9 +19,8 @@ build-src:
|
|||||||
.PHONY: build-bin
|
.PHONY: build-bin
|
||||||
build-bin:
|
build-bin:
|
||||||
rustup set profile minimal && \
|
rustup set profile minimal && \
|
||||||
cp patch/main.rs src/src/ && \
|
|
||||||
cd $(SRC) && \
|
cd $(SRC) && \
|
||||||
rustup target add x86_64-unknown-linux-musl && \
|
RUSTFLAGS="-C link-arg=-s" rustup target add x86_64-unknown-linux-musl && \
|
||||||
BWRS_VERSION="$${BUILD_VERSION##v}" cargo build -j 8 --features $(DB) --release
|
BWRS_VERSION="$${BUILD_VERSION##v}" cargo build -j 8 --features $(DB) --release
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user