@@ -63,7 +63,7 @@ mcm-multisig-init:
6363 --authority $(AUTHORITY ) \
6464 --multisig-id $(MCM_MULTISIG_ID ) \
6565 --chain-id $(MCM_CHAIN_ID ) " \
66- output=artifacts/mcm-multisig-init.json
66+ output=$( or $( MCM_MULTISIG_INIT_ARTIFACT ) , artifacts/mcm-multisig-init.json)
6767
6868.PHONY : mcm-signers-init
6969mcm-signers-init :
@@ -75,7 +75,7 @@ mcm-signers-init:
7575 --authority $(AUTHORITY ) \
7676 --multisig-id $(MCM_MULTISIG_ID ) \
7777 --total $(MCM_SIGNER_COUNT ) " \
78- output=artifacts/mcm-signers-init.json
78+ output=$( or $( MCM_SIGNERS_INIT_ARTIFACT ) , artifacts/mcm-signers-init.json)
7979
8080.PHONY : mcm-signers-append
8181mcm-signers-append :
@@ -87,7 +87,7 @@ mcm-signers-append:
8787 --authority $(AUTHORITY ) \
8888 --multisig-id $(MCM_MULTISIG_ID ) \
8989 --signers $(MCM_SIGNERS ) " \
90- output=artifacts/mcm-signers-append.json
90+ output=$( or $( MCM_SIGNERS_APPEND_ARTIFACT ) , artifacts/mcm-signers-append.json)
9191
9292.PHONY : mcm-signers-finalize
9393mcm-signers-finalize :
@@ -98,7 +98,7 @@ mcm-signers-finalize:
9898 --mcm-program-id $(MCM_PROGRAM_ID ) \
9999 --authority $(AUTHORITY ) \
100100 --multisig-id $(MCM_MULTISIG_ID ) " \
101- output=artifacts/mcm-signers-finalize.json
101+ output=$( or $( MCM_SIGNERS_FINALIZE_ARTIFACT ) , artifacts/mcm-signers-finalize.json)
102102
103103.PHONY : mcm-signers-clear
104104mcm-signers-clear :
@@ -109,7 +109,7 @@ mcm-signers-clear:
109109 --mcm-program-id $(MCM_PROGRAM_ID ) \
110110 --authority $(AUTHORITY ) \
111111 --multisig-id $(MCM_MULTISIG_ID ) " \
112- output=artifacts/mcm-signers-clear.json
112+ output=$( or $( MCM_SIGNERS_CLEAR_ARTIFACT ) , artifacts/mcm-signers-clear.json)
113113
114114.PHONY : mcm-signers-set-config
115115mcm-signers-set-config :
@@ -124,7 +124,7 @@ mcm-signers-set-config:
124124 --group-quorums $(MCM_GROUP_QUORUMS ) \
125125 --group-parents $(MCM_GROUP_PARENTS ) \
126126 $(if $(filter true,$(MCM_CLEAR_ROOT ) ) ,--clear-root) " \
127- output=artifacts/mcm-signers-set-config.json
127+ output=$( or $( MCM_SIGNERS_SET_CONFIG_ARTIFACT ) , artifacts/mcm-signers-set-config.json)
128128
129129.PHONY : mcm-signatures-init
130130mcm-signatures-init :
@@ -136,7 +136,7 @@ mcm-signatures-init:
136136 --authority $(AUTHORITY ) \
137137 --proposal $(MCM_PROPOSAL_OUTPUT ) \
138138 --total $(MCM_SIGNATURES_COUNT ) " \
139- output=artifacts/mcm-signatures-init.json
139+ output=$( or $( MCM_SIGNATURES_INIT_ARTIFACT ) , artifacts/mcm-signatures-init.json)
140140
141141.PHONY : mcm-signatures-append
142142mcm-signatures-append :
@@ -148,7 +148,7 @@ mcm-signatures-append:
148148 --authority $(AUTHORITY ) \
149149 --proposal $(MCM_PROPOSAL_OUTPUT ) \
150150 --signatures $(MCM_SIGNATURES ) " \
151- output=artifacts/mcm-signatures-append.json
151+ output=$( or $( MCM_SIGNATURES_APPEND_ARTIFACT ) , artifacts/mcm-signatures-append.json)
152152
153153.PHONY : mcm-signatures-finalize
154154mcm-signatures-finalize :
@@ -159,7 +159,7 @@ mcm-signatures-finalize:
159159 --mcm-program-id $(MCM_PROGRAM_ID ) \
160160 --authority $(AUTHORITY ) \
161161 --proposal $(MCM_PROPOSAL_OUTPUT ) " \
162- output=artifacts/mcm-signatures-finalize.json
162+ output=$( or $( MCM_SIGNATURES_FINALIZE_ARTIFACT ) , artifacts/mcm-signatures-finalize.json)
163163
164164.PHONY : mcm-signatures-clear
165165mcm-signatures-clear :
@@ -170,7 +170,7 @@ mcm-signatures-clear:
170170 --mcm-program-id $(MCM_PROGRAM_ID ) \
171171 --authority $(AUTHORITY ) \
172172 --proposal $(MCM_PROPOSAL_OUTPUT ) " \
173- output=artifacts/mcm-signatures-clear.json
173+ output=$( or $( MCM_SIGNATURES_CLEAR_ARTIFACT ) , artifacts/mcm-signatures-clear.json)
174174
175175.PHONY : mcm-ownership-transfer
176176mcm-ownership-transfer :
@@ -182,7 +182,7 @@ mcm-ownership-transfer:
182182 --authority $(AUTHORITY ) \
183183 --multisig-id $(MCM_MULTISIG_ID ) \
184184 --proposed-owner $(MCM_PROPOSED_OWNER ) " \
185- output=artifacts/mcm-ownership-transfer.json
185+ output=$( or $( MCM_OWNERSHIP_TRANSFER_ARTIFACT ) , artifacts/mcm-ownership-transfer.json)
186186
187187.PHONY : mcm-ownership-accept
188188mcm-ownership-accept :
@@ -193,7 +193,7 @@ mcm-ownership-accept:
193193 --mcm-program-id $(MCM_PROGRAM_ID ) \
194194 --authority $(AUTHORITY ) \
195195 --multisig-id $(MCM_MULTISIG_ID ) " \
196- output=artifacts/mcm-ownership-accept.json
196+ output=$( or $( MCM_OWNERSHIP_ACCEPT_ARTIFACT ) , artifacts/mcm-ownership-accept.json)
197197
198198.PHONY : mcm-proposal-set-root
199199mcm-proposal-set-root :
@@ -204,7 +204,7 @@ mcm-proposal-set-root:
204204 --mcm-program-id $(MCM_PROGRAM_ID ) \
205205 --authority $(AUTHORITY ) \
206206 --proposal $(MCM_PROPOSAL_OUTPUT ) " \
207- output=artifacts/mcm-proposal-set-root.json
207+ output=$( or $( MCM_PROPOSAL_SET_ROOT_ARTIFACT ) , artifacts/mcm-proposal-set-root.json)
208208
209209.PHONY : mcm-proposal-execute
210210mcm-proposal-execute :
@@ -217,7 +217,7 @@ mcm-proposal-execute:
217217 --proposal $(MCM_PROPOSAL_OUTPUT ) \
218218 $(if $(MCM_START_INDEX ) ,--start-index $(MCM_START_INDEX ) ) \
219219 $(if $(MCM_OPERATION_COUNT ) ,--operation-count $(MCM_OPERATION_COUNT ) ) " \
220- output=artifacts/mcm-proposal-execute.json
220+ output=$( or $( MCM_PROPOSAL_EXECUTE_ARTIFACT ) , artifacts/mcm-proposal-execute.json)
221221
222222# #
223223# Proposal creation commands (read-only, create proposal files)
0 commit comments