-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
19 lines (18 loc) · 815 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: dependencies
dependencies:
@if ! [ -d "deps/mpl-token-metadata" ]; then \
echo "Adding submodule: Metaplex program library"; \
git submodule add --force https://github.com/metaplex-foundation/mpl-token-metadata deps/mpl-token-metadata; \
fi
@if ! [ -d "deps/sol-cerberus" ]; then \
echo "Adding submodule: Sol Cerberus"; \
git submodule add --force https://github.com/AnderUstarroz/sol-cerberus deps/sol-cerberus; \
fi
@echo "installing npm packages"
yarn
@echo "installing submodules"
git submodule update --recursive --init
@echo "Building token-metadata program.."
cd deps/mpl-token-metadata/programs/token-metadata/program && cargo build-bpf && cd ../../../../
@echo "Building sol-cerberus program.."
cd deps/sol-cerberus/programs/sol-cerberus && cargo build-bpf && cd ../../../../