vaultwarden/Makefile
Renovator Bot d4d690d48a
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
chore(deps): update bitwarden packages (#31)
chore(deps): update bitwarden packages

Reviewed-on: docker/bitwardenrs#31
Co-Authored-By: Renovator Bot <renovator@rknet.org>
Co-Committed-By: Renovator Bot <renovator@rknet.org>
2021-03-29 09:05:11 +02:00

30 lines
715 B
Makefile

# renovate: datasource=github-releases depName=dani-garcia/bitwarden_rs
export BUILD_VERSION ?= 1.20.0
export DEBIAN_FRONTEND ?= noninteractive
export LANG ?= C.UTF-8
export TZ ?= UTC
DB ?= sqlite,postgresql
SRC := src
.PHONY: all
all: build
.PHONY: build
build: build-src build-bin
.PHONY: build-src
build-src:
mkdir -p $(SRC); \
curl -sSL "https://github.com/dani-garcia/bitwarden_rs/archive/$${BUILD_VERSION##v}.tar.gz" | tar xz -C $(SRC) --strip-components=1
.PHONY: build-bin
build-bin:
rustup set profile minimal && \
cd $(SRC) && \
rustup target add x86_64-unknown-linux-musl && \
BWRS_VERSION="$${BUILD_VERSION##v}" cargo build -j 8 --features $(DB) --release
.PHONY: clean
clean:
rm -rf $(SRC)