Explorar el Código

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
kalm hace 1 año
padre
commit
3777279499
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      script/research/blockchain-explorer/Makefile

+ 2 - 1
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
+.PHONY: all clean install uninstall bundle_contracts_src