-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
49 lines (38 loc) · 1.19 KB
/
Copy pathmakefile
File metadata and controls
49 lines (38 loc) · 1.19 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
.PHONY: docs fmt test run update examples
docs:
rm -rf ./docs
v doc . -f markdown -o ./docs/markdown
v doc . -f html -o ./docs/html
fmt:
v fmt -w .
test:
v -stats test ./tests
run:
v run .
symlink:
ln -s $(CURDIR) $(HOME)/.vmodules/vlibuv
clean-symlink:
rm -rf $(HOME)/.vmodules/vlibuv
clean-examples:
find ./examples -type f ! -name "*.v" -exec rm {} \;
examples:
v examples/http_server_uv.v
v examples/http_server.v
v examples/threadpool.v
v examples/default_loop.v
update:
rm -rf ./thirdparty
mkdir -p ./thirdparty
cd ./thirdparty && git init
cd ./thirdparty && git remote add origin https://github.com/libuv/libuv.git
cd ./thirdparty && git config core.sparseCheckout true
# Specify the files and directories you want to include
echo "include/" >> ./thirdparty/.git/info/sparse-checkout
echo "src/" >> ./thirdparty/.git/info/sparse-checkout
echo "LICENSE*" >> ./thirdparty/.git/info/sparse-checkout
echo "README*" >> ./thirdparty/.git/info/sparse-checkout
echo "*.pc*" >> ./thirdparty/.git/info/sparse-checkout
# Exclude the docs/src directory
echo "!docs/src/" >> ./thirdparty/.git/info/sparse-checkout
cd ./thirdparty && git pull origin master
cd ./thirdparty && rm -rf .git