Skip to content

Commit

Permalink
explorer: update Makefile to add bundle src contracts target to .PHON…
Browse files Browse the repository at this point in the history
…Y 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
  • Loading branch information
kalm committed Jan 16, 2025
1 parent a12a364 commit 3777279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/research/blockchain-explorer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
.PHONY: all clean install uninstall bundle_contracts_src

0 comments on commit 3777279

Please sign in to comment.