nalgebra/Makefile

30 lines
569 B
Makefile
Raw Normal View History

2013-08-11 19:24:38 +08:00
tmp=_git_distcheck
2013-05-19 01:04:03 +08:00
nalgebra_lib_path=lib
nalgebra_doc_path=doc
2013-05-14 19:35:01 +08:00
all:
mkdir -p $(nalgebra_lib_path)
rustc src/nalgebra.rs --out-dir $(nalgebra_lib_path) --opt-level 3
2013-05-19 01:04:03 +08:00
test:
mkdir -p $(nalgebra_lib_path)
rustc --test src/nalgebra.rs --opt-level 3 -o test~ && ./test~
2013-10-12 16:39:42 +08:00
rm test~
2013-05-14 19:35:01 +08:00
bench:
rustc --test src/nalgebra.rs --opt-level 3 -o bench~ && ./bench~ --bench
rm bench~
2013-05-14 19:35:01 +08:00
doc:
mkdir -p $(nalgebra_doc_path)
rustdoc src/nalgebra.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)
make -C $(tmp) test
2013-08-11 19:24:38 +08:00
rm -rf $(tmp)
.PHONY:doc
.PHONY:test