-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (50 loc) · 1.72 KB
/
Makefile
File metadata and controls
55 lines (50 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
DICTIONARY_FILE ?= .cspell-anchor-dictionary.txt
.PHONY: build-cli
build-cli:
cargo build -p anchor-cli --release
cp target/release/anchor cli/npm-package/anchor
.PHONY: clean
clean:
find . -type d -name .anchor -print0 | xargs -0 rm -rf
find . -type d -name node_modules -print0 | xargs -0 rm -rf
find . -type d -name target -print0 | xargs -0 rm -rf
.PHONY: publish
publish:
cd lang/syn/ && cargo publish && cd ../../
sleep 25
cd lang/derive/accounts/ && cargo publish && cd ../../../
sleep 25
cd lang/derive/serde/ && cargo publish && cd ../../../
sleep 25
cd lang/derive/space/ && cargo publish && cd ../../../
sleep 25
cd lang/attribute/access-control/ && cargo publish && cd ../../../
sleep 25
cd lang/attribute/account/ && cargo publish && cd ../../../
sleep 25
cd lang/attribute/constant/ && cargo publish && cd ../../../
sleep 25
cd lang/attribute/error/ && cargo publish && cd ../../../
sleep 25
cd lang/attribute/program/ && cargo publish && cd ../../..
sleep 25
cd lang/attribute/event/ && cargo publish && cd ../../../
sleep 25
cd lang/ && cargo publish && cd ../
sleep 25
cd spl/ && cargo publish && cd ../
sleep 25
cd client/ && cargo publish && cd ../
sleep 25
cd cli/ && cargo publish && cd ../
sleep 25
.PHONY: spellcheck
spellcheck:
cspell *.md **/*.md **/*.mdx --config cspell.config.yaml --no-progress
.PHONY: update-dictionary
update-dictionary:
echo $(DICTIONARY_FILE)
cspell *.md **/*.md **/*.mdx --config cspell.config.yaml --words-only --unique --no-progress --quiet 2>/dev/null | sort --ignore-case > .new-dictionary-words
cat .new-dictionary-words $(DICTIONARY_FILE) | sort --ignore-case > .new-$(DICTIONARY_FILE)
mv .new-$(DICTIONARY_FILE) $(DICTIONARY_FILE)
rm -f .new-dictionary-words