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