forked from M-Labs/nalgebra
becb77843e
Version of rustc: 0.10-pre (b0ce960 2014-02-17 22:16:51 -0800) This replaces uses of the `Orderable` trait by a `PartialOrd` trait: the `min` and `max` methods are replaced by `inf` and `sup` methods. Vectors do not implement the `Ord` trait any more. Fix #4
32 lines
665 B
Makefile
32 lines
665 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) --opt-level 3
|
|
rustc src/lib.rs --out-dir $(nalgebra_lib_path) --crate-type dylib --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
|