Robert Kaussow
dbf265e0a8
Co-authored-by: Robert Kaussow <mail@geeklabor.de> Reviewed-on: docker/vaultwarden-ldap#29 Co-authored-by: Robert Kaussow <xoxys@rknet.org> Co-committed-by: Robert Kaussow <xoxys@rknet.org>
28 lines
596 B
Makefile
28 lines
596 B
Makefile
# renovate: datasource=github-releases depName=ViViDboarder/vaultwarden_ldap
|
|
export BUILD_VERSION ?= v0.4.0
|
|
export DEBIAN_FRONTEND ?= noninteractive
|
|
export LANG ?= C.UTF-8
|
|
export TZ ?= UTC
|
|
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/ViViDboarder/vaultwarden_ldap/archive/$${BUILD_VERSION}.tar.gz" | tar xz -C $(SRC) --strip-components=1
|
|
|
|
.PHONY: build-bin
|
|
build-bin:
|
|
rustup set profile minimal && \
|
|
cd $(SRC) && \
|
|
cargo build -j 8 --release
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(SRC)
|