2013-08-11 19:24:38 +08:00
|
|
|
tmp=_git_distcheck
|
2013-05-19 01:04:03 +08:00
|
|
|
nalgebra_lib_path=lib
|
2013-05-21 23:25:01 +08:00
|
|
|
nalgebra_doc_path=doc
|
2013-05-14 19:35:01 +08:00
|
|
|
all:
|
2013-06-09 20:14:03 +08:00
|
|
|
mkdir -p $(nalgebra_lib_path)
|
2014-07-12 15:30:49 +08:00
|
|
|
rustc src/lib.rs --out-dir $(nalgebra_lib_path) --crate-type dylib --crate-type rlib --opt-level 3
|
2013-05-19 01:04:03 +08:00
|
|
|
|
|
|
|
test:
|
2013-06-09 20:14:03 +08:00
|
|
|
mkdir -p $(nalgebra_lib_path)
|
2013-12-13 01:07:44 +08:00
|
|
|
rustc --test src/lib.rs --opt-level 3 -o test~ && ./test~
|
2013-10-12 16:39:42 +08:00
|
|
|
rm test~
|
2014-02-18 19:13:40 +08:00
|
|
|
rustdoc --test -L lib src/lib.rs
|
2013-05-14 19:35:01 +08:00
|
|
|
|
2013-09-13 19:21:42 +08:00
|
|
|
bench:
|
2013-12-13 01:07:44 +08:00
|
|
|
rustc --test src/lib.rs --opt-level 3 -o bench~ && ./bench~ --bench
|
2013-09-13 19:21:42 +08:00
|
|
|
rm bench~
|
|
|
|
|
2013-05-14 19:35:01 +08:00
|
|
|
doc:
|
2013-06-09 20:14:03 +08:00
|
|
|
mkdir -p $(nalgebra_doc_path)
|
2013-12-13 01:07:44 +08:00
|
|
|
rustdoc src/lib.rs
|
2013-05-14 19:35:01 +08:00
|
|
|
|
2013-08-11 19:24:38 +08:00
|
|
|
distcheck:
|
|
|
|
rm -rf $(tmp)
|
|
|
|
git clone --recursive . $(tmp)
|
|
|
|
make -C $(tmp)
|
2013-09-13 19:21:42 +08:00
|
|
|
make -C $(tmp) test
|
2013-08-11 19:24:38 +08:00
|
|
|
rm -rf $(tmp)
|
|
|
|
|
2013-05-21 23:25:01 +08:00
|
|
|
.PHONY:doc
|
|
|
|
.PHONY:test
|