From 0db7c4b1cb656136ecdba0e538610884c80e1f4e Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 22 Jul 2021 12:45:56 +0300 Subject: [PATCH] Makefile: provide directory to `contract compile` Allow to divide contract in multiple files. Signed-off-by: Evgenii Stratonikov --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4e88207..c75bb25 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ mainnet_sc = neofs processing define sc_template $(2)$(1)/$(1)_contract.nef: $(2)$(1)/$(1)_contract.go - $(NEOGO) contract compile -i $(2)$(1)/$(1)_contract.go -c $(if $(2),$(2),$(1)/)config.yml -m $(2)$(1)/config.json + $(NEOGO) contract compile -i $(2)$(1) -c $(if $(2),$(2),$(1)/)config.yml -m $(2)$(1)/config.json $(if $(2),$(2)$(1)/$(1)_contract.go: alphabet/alphabet.go alphabet/alphabet.tpl go run alphabet/alphabet.go