70cee0ea3d
This is a first step toward the use of rustpkg.
25 lines
446 B
Makefile
25 lines
446 B
Makefile
tmp=_git_distcheck
|
|
nalgebra_lib_path=lib
|
|
nalgebra_doc_path=doc
|
|
all:
|
|
mkdir -p $(nalgebra_lib_path)
|
|
rust build src/lib.rs --out-dir $(nalgebra_lib_path) --opt-level 3
|
|
|
|
test:
|
|
mkdir -p $(nalgebra_lib_path)
|
|
rust test src/lib.rs
|
|
rm libtest~
|
|
|
|
doc:
|
|
mkdir -p $(nalgebra_doc_path)
|
|
rust doc src/lib.rs --output-dir $(nalgebra_doc_path)
|
|
|
|
distcheck:
|
|
rm -rf $(tmp)
|
|
git clone --recursive . $(tmp)
|
|
make -C $(tmp)
|
|
rm -rf $(tmp)
|
|
|
|
.PHONY:doc
|
|
.PHONY:test
|