mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-10 06:28:04 -05:00
23 lines
949 B
Makefile
23 lines
949 B
Makefile
.PHONY: build update clean
|
|
|
|
ZKVM_COMMIT ?= freebuild
|
|
PLONKY3_GPU_VERSION=$(shell ./print_plonky3gpu_version.sh | sed -n '2p')
|
|
$(info PLONKY3_GPU_VERSION is ${PLONKY3_GPU_VERSION})
|
|
|
|
GIT_REV ?= $(shell git rev-parse --short HEAD)
|
|
GO_TAG ?= $(shell grep "var tag = " ../../common/version/version.go | cut -d "\"" -f2)
|
|
ZK_VERSION=${ZKVM_COMMIT}-${PLONKY3_GPU_VERSION}
|
|
$(info ZK_GPU_VERSION is ${ZK_VERSION})
|
|
|
|
clean:
|
|
cargo clean -Z unstable-options --release -p prover --lockfile-path ./Cargo.lock
|
|
|
|
# build gpu prover, never touch lock file
|
|
build:
|
|
GO_TAG=${GO_TAG} GIT_REV=${GIT_REV} ZK_VERSION=${ZK_VERSION} cargo build -Z unstable-options --release -p prover --lockfile-path ./Cargo.lock
|
|
|
|
version:
|
|
echo ${GO_TAG}-${GIT_REV}-${ZK_VERSION}
|
|
# update Cargo.lock while override config has been updated
|
|
#update:
|
|
# GO_TAG=${GO_TAG} GIT_REV=${GIT_REV} ZK_VERSION=${ZK_VERSION} cargo build -Z unstable-options --release -p prover --lockfile-path ./Cargo.lock
|