From 3777279499bf91b467b3c6414bf0184138aae460 Mon Sep 17 00:00:00 2001 From: kalm Date: Thu, 16 Jan 2025 07:56:07 -0800 Subject: [PATCH] explorer: update Makefile to add bundle src contracts target to .PHONY and update clean target This commit enhances the Makefile by adding the bundle_contracts_src as a phony target and adding clean-up for bundled contract code. Summary of Updates: - Added `bundle_contracts_src` to `.PHONY` - Updated the `clean` target to remove the `native_contracts_src` directory --- script/research/blockchain-explorer/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/research/blockchain-explorer/Makefile b/script/research/blockchain-explorer/Makefile index 923950317170..b214e7ff157f 100644 --- a/script/research/blockchain-explorer/Makefile +++ b/script/research/blockchain-explorer/Makefile @@ -30,6 +30,7 @@ $(BIN): $(SRC) clean: RUSTFLAGS="$(RUSTFLAGS)" $(CARGO) clean --target=$(RUST_TARGET) --release --package $(BIN) rm -f $(BIN) ../../../$(BIN) + rm -rf native_contracts_src install: all mkdir -p $(DESTDIR)$(PREFIX)/bin @@ -49,4 +50,4 @@ bundle_contracts_src: find contract/money/proof -name '*.zk' -exec tar -rf $(CURDIR)/native_contracts_src/money_contract_src.tar --transform 's,^.*proof/,proof/,' {} + \ ) -.PHONY: all clean install uninstall native_contracts \ No newline at end of file +.PHONY: all clean install uninstall bundle_contracts_src \ No newline at end of file