Files
darkfi/example/smart-contract/Makefile

17 lines
270 B
Makefile

.POSIX:
SRC = $(shell find src -type f)
# Cargo binary
CARGO = cargo
DEPS = smart_contract.wasm
all: $(DEPS)
smart_contract.wasm: $(SRC)
$(CARGO) build --release --lib --target wasm32-unknown-unknown
cp -f target/wasm32-unknown-unknown/release/$@ $@
.PHONY: all