Switch over to rustpkg
This commit is contained in:
parent
9dd1c622f4
commit
a9ce2a36d5
|
|
@ -1,5 +1,9 @@
|
||||||
*.sw[po]
|
*.sw[po]
|
||||||
libcrypto*.dylib
|
*.dylib
|
||||||
libcrypto*.so
|
*.so
|
||||||
*.dSYM/
|
*.dSYM/
|
||||||
crypto
|
/.rust
|
||||||
|
/bin/
|
||||||
|
/build/
|
||||||
|
/lib/
|
||||||
|
/src/crypto/lib
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,4 @@ before_install:
|
||||||
install:
|
install:
|
||||||
- sudo apt-get install rust-nightly
|
- sudo apt-get install rust-nightly
|
||||||
script:
|
script:
|
||||||
- make all
|
- make all test
|
||||||
- ./crypto
|
|
||||||
|
|
|
||||||
16
Makefile
16
Makefile
|
|
@ -1,9 +1,13 @@
|
||||||
|
RUSTPKG ?= rustpkg
|
||||||
|
RUSTC ?= rustc
|
||||||
|
RUST_FLAGS ?= -Z debug-info -O
|
||||||
|
|
||||||
crypto: $(wildcard *.rs)
|
all:
|
||||||
rustc crypto.rs
|
$(RUSTPKG) $(RUST_FLAGS) install crypto
|
||||||
rustc --test crypto.rs
|
|
||||||
|
test:
|
||||||
|
$(RUSTC) $(RUST_FLAGS) --test src/crypto/lib.rs
|
||||||
|
./src/crypto/lib
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f crypto libcrypto-*.so
|
rm -rf bin/ lib/ build/ src/crypto/lib
|
||||||
rm -f libcrypto-*.dylib
|
|
||||||
rm -rf *.dSYM
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue