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.
vaultwarden-ldap/Makefile

28 lines
606 B
Makefile
Raw Normal View History

2020-02-22 16:32:27 +00:00
export BUILD_VERSION ?= master
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); \
2020-02-22 19:24:24 +00:00
curl -sSL "https://github.com/ViViDboarder/bitwarden_rs_ldap/archive/$${BUILD_VERSION}.tar.gz" | tar xz -C $(SRC) --strip-components=1; \
2020-02-22 19:26:53 +00:00
grep -rlI 'Box<Error>' $(SRC)/src/ | xargs sed -i 's/Box<Error>/Box<dyn Error>/g'
2020-02-22 16:32:27 +00:00
.PHONY: build-bin
build-bin:
rustup set profile minimal && \
cd $(SRC) && \
cargo build -j 8 --release
.PHONY: clean
clean:
rm -rf $(SRC)