11 lines
559 B
Makefile
11 lines
559 B
Makefile
rustlib := librustzcash-wrapper/target/x86_64-unknown-linux-gnu/debug
|
|
|
|
.PHONY: all
|
|
|
|
all: haskell
|
|
|
|
haskell: src/HaskellZcash/Orchard.hs src/HaskellZcash/Sapling.hs src/HaskellZcash/Types.hs src/HaskellZcash/Utils.hs src/C/Zcash.chs package.yaml stack.yaml $(rustlib)/rustzcash_wrapper.h $(rustlib)/librustzcash_wrapper.a $(rustlib)/librustzcash_wrapper.so $(rustlib)/rustzcash_wrapper-uninstalled.pc
|
|
stack build
|
|
|
|
$(rustlib)/rustzcash_wrapper.h: librustzcash-wrapper/src/lib.rs librustzcash-wrapper/Cargo.toml
|
|
cd librustzcash-wrapper && cargo +nightly cbuild
|