This repository has been archived on 2024-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
2021-05-15 15:01:36 +02:00
|
|
|
# renovate: datasource=github-releases depName=ViViDboarder/vaultwarden_ldap
|
2022-01-21 21:23:53 +01:00
|
|
|
export BUILD_VERSION ?= v0.6.2
|
2020-02-22 17:32:27 +01:00
|
|
|
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); \
|
2021-05-15 15:01:36 +02:00
|
|
|
curl -sSL "https://github.com/ViViDboarder/vaultwarden_ldap/archive/$${BUILD_VERSION}.tar.gz" | tar xz -C $(SRC) --strip-components=1
|
2020-02-22 17:32:27 +01:00
|
|
|
|
|
|
|
.PHONY: build-bin
|
|
|
|
build-bin:
|
|
|
|
rustup set profile minimal && \
|
|
|
|
cd $(SRC) && \
|
|
|
|
cargo build -j 8 --release
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf $(SRC)
|