e3d1bf6f92
Version of rustc: 0.11.0-nightly (5ad7286dc37839b7234ff51aab172e48935869d8 2014-07-12 00:31:46 +0000)
31 lines
620 B
Makefile
31 lines
620 B
Makefile
tmp=_git_distcheck
|
|
nalgebra_lib_path=lib
|
|
nalgebra_doc_path=doc
|
|
all:
|
|
mkdir -p $(nalgebra_lib_path)
|
|
rustc src/lib.rs --out-dir $(nalgebra_lib_path) --crate-type dylib --crate-type rlib --opt-level 3
|
|
|
|
test:
|
|
mkdir -p $(nalgebra_lib_path)
|
|
rustc --test src/lib.rs --opt-level 3 -o test~ && ./test~
|
|
rm test~
|
|
rustdoc --test -L lib src/lib.rs
|
|
|
|
bench:
|
|
rustc --test src/lib.rs --opt-level 3 -o bench~ && ./bench~ --bench
|
|
rm bench~
|
|
|
|
doc:
|
|
mkdir -p $(nalgebra_doc_path)
|
|
rustdoc src/lib.rs
|
|
|
|
distcheck:
|
|
rm -rf $(tmp)
|
|
git clone --recursive . $(tmp)
|
|
make -C $(tmp)
|
|
make -C $(tmp) test
|
|
rm -rf $(tmp)
|
|
|
|
.PHONY:doc
|
|
.PHONY:test
|