27 lines
520 B
Makefile
27 lines
520 B
Makefile
|
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); \
|
||
|
curl -sSL "https://github.com/ViViDboarder/bitwarden_rs_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)
|