ID: 51254c30ec4743028a8ba7a285f05e4ee79c9876
31 lines
—
620B —
View raw
| SHELL = /bin/bash
# Requires mdbook for building the docs
# $ apt install rustc cargo
# $ cargo install mdbook
REPOSITORY = https://github.com/rust-lang/cargo.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/rust-cargo
else
$(error OUTPUT_PATH is undefined)
endif
repository:
git clone ${REPOSITORY} repository
0.29.0 0.39.0 0.49.0 0.59.0 0.69.1 0.76.0: check_env_vars repository
source venv/bin/activate
cd repository
git checkout tags/$@
cd src/doc/
mdbook build
mkdir --parents "${OUTPUT_PATH}"
cp --recursive book "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|