2021-06-29 14:04:59 -07:00
|
|
|
.PHONY: build-cli
|
|
|
|
build-cli:
|
|
|
|
cargo build -p anchor-cli --release
|
|
|
|
cp target/release/anchor cli/npm-package/anchor
|
2021-08-08 13:20:26 -07:00
|
|
|
|
|
|
|
.PHONY: build-example-bpf-%
|
|
|
|
build-example-bpf-%: export NAME=$(subst _,/,$($(strip @):build-example-bpf-%=%))
|
|
|
|
build-example-bpf-%:
|
|
|
|
cd examples/${NAME} && cargo build-bpf
|
|
|
|
|
|
|
|
.PHONY: build-example-bpf-permissioned-markets
|
|
|
|
build-example-bpf-permissioned-markets:
|
|
|
|
cd examples/permissioned-markets/deps/serum-dex/dex && cargo build-bpf
|
|
|
|
cd examples/permissioned-markets && cargo build-bpf
|
|
|
|
|
|
|
|
.PHONY: build-example-bpf-swap
|
|
|
|
build-example-bpf-swap:
|
|
|
|
cd examples/swap/deps/serum-dex/dex && cargo build-bpf
|
|
|
|
cd examples/swap && cargo build-bpf
|
|
|
|
|
|
|
|
.PHONY: build-example-bpf-all
|
|
|
|
build-example-bpf-all: build-example-bpf-cashiers-check
|
|
|
|
build-example-bpf-all: build-example-bpf-cfo
|
|
|
|
build-example-bpf-all: build-example-bpf-chat
|
|
|
|
build-example-bpf-all: build-example-bpf-composite
|
|
|
|
build-example-bpf-all: build-example-bpf-errors
|
|
|
|
build-example-bpf-all: build-example-bpf-escrow
|
|
|
|
build-example-bpf-all: build-example-bpf-events
|
|
|
|
build-example-bpf-all: build-example-bpf-ido-pool
|
|
|
|
build-example-bpf-all: build-example-bpf-interface
|
|
|
|
build-example-bpf-all: build-example-bpf-lockup
|
|
|
|
build-example-bpf-all: build-example-bpf-misc
|
|
|
|
build-example-bpf-all: build-example-bpf-multisig
|
|
|
|
build-example-bpf-all: build-example-bpf-permissioned-markets
|
|
|
|
build-example-bpf-all: build-example-bpf-pyth
|
|
|
|
build-example-bpf-all: build-example-bpf-spl_token-proxy
|
|
|
|
build-example-bpf-all: build-example-bpf-swap
|
|
|
|
build-example-bpf-all: build-example-bpf-sysvars
|
|
|
|
build-example-bpf-all: build-example-bpf-tutorial_basic-0
|
|
|
|
build-example-bpf-all: build-example-bpf-tutorial_basic-1
|
|
|
|
build-example-bpf-all: build-example-bpf-tutorial_basic-2
|
|
|
|
build-example-bpf-all: build-example-bpf-tutorial_basic-3
|
|
|
|
build-example-bpf-all: build-example-bpf-tutorial_basic-4
|
|
|
|
build-example-bpf-all: build-example-bpf-tutorial_basic-5
|
|
|
|
build-example-bpf-all: build-example-bpf-typescript
|
|
|
|
build-example-bpf-all: build-example-bpf-zero-copy
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
find . -type d -name .anchor -print0 | xargs -0 rm -rf
|
|
|
|
find . -type d -name target -print0 | xargs -0 rm -rf
|
2022-01-09 13:50:10 -08:00
|
|
|
|
|
|
|
.PHONY: publish
|
|
|
|
publish:
|
|
|
|
cd lang/syn/ && cargo publish && cd ../../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/derive/accounts/ && cargo publish && cd ../../../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/attribute/access-control/ && cargo publish && cd ../../../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/attribute/account/ && cargo publish && cd ../../../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/attribute/constant/ && cargo publish && cd ../../../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/attribute/error/ && cargo publish && cd ../../../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/attribute/interface/ && cargo publish && cd ../../../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/attribute/program/ && cargo publish && cd ../../..
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/attribute/state/ && cargo publish && cd ../../../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
|
|
|
cd lang/attribute/event/ && cargo publish && cd ../../../
|
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd lang/ && cargo publish && cd../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd spl/ && cargo publish && cd ../
|
2022-01-09 14:19:19 -08:00
|
|
|
sleep 10
|
2022-01-09 13:50:10 -08:00
|
|
|
cd client/ && cargo publish && cd ../
|