serum-dex/registry/Makefile

27 lines
943 B
Makefile
Raw Normal View History

2020-10-02 12:42:48 -07:00
include ../Makefile
LIB_NAME=serum_registry_program
2020-12-02 19:25:52 -08:00
.PHONY: test test-program deploy-lockup deploy-meta-entity deploy-all
2020-10-02 12:42:48 -07:00
2020-12-02 19:25:52 -08:00
test: deploy-lockup deploy-meta-entity deploy-super test-program
2020-10-02 12:42:48 -07:00
@ # no-op
2020-12-01 09:48:26 -08:00
deploy-lockup:
$(eval TMP=$(shell make -s -C ../lockup deploy))
$(eval TEST_LOCKUP_PROGRAM_ID=$(shell echo $(TMP) | sed 's/.*{programId: \(.*\)}.*/\1/g'))
deploy-meta-entity:
$(eval TMP=$(shell make -s -C ./meta-entity deploy))
$(eval TEST_META_ENTITY_PROGRAM_ID=$(shell echo $(TMP) | sed 's/.*{programId: \(.*\)}.*/\1/g'))
2020-10-02 12:42:48 -07:00
test-program:
2020-12-01 09:48:26 -08:00
make \
TEST_PROGRAM_ID=$(TEST_PROGRAM_ID) \
TEST_LOCKUP_PROGRAM_ID=$(TEST_LOCKUP_PROGRAM_ID) \
TEST_META_ENTITY_PROGRAM_ID=$(TEST_META_ENTITY_PROGRAM_ID) \
test-program-super
2020-12-02 19:25:52 -08:00
deploy-all: deploy-lockup deploy-meta-entity self-deploy
echo '{ "registryProgramId": "$(TEST_PROGRAM_ID)", "lockupProgramId": "$(TEST_LOCKUP_PROGRAM_ID)", "metaEntityProgramId": "$(TEST_META_ENTITY_PROGRAM_ID)" }'