-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (54 loc) · 2.42 KB
/
Makefile
File metadata and controls
59 lines (54 loc) · 2.42 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
56
57
58
59
.PHONY: docs
docs:
rm -r ./docs/source -f
rm -r ./docs/_templates -f
rm -r ./docs/_build -f
sphinx-apidoc --private -o ./docs/source ./a_sync
cython:
python setup.py build_ext --inplace
stubs:
stubgen ./a_sync -o . --include-docstrings
# Update the TaskStart hook submodule and commit the change
hooks:
mkdir -p .clinerules/hooks/submodules
# TaskStart hook update
if [ -d .clinerules/hooks/submodules/TaskStart ]; then \
if [ ! -f .clinerules/hooks/submodules/TaskStart/.git ] || ! grep -q "TaskStart" .gitmodules 2>/dev/null; then \
rm -rf .clinerules/hooks/submodules/TaskStart; \
fi \
fi
if [ ! -d .clinerules/hooks/submodules/TaskStart ]; then \
rm -rf .git/modules/clinerules/hooks/submodules/TaskStart; \
git submodule add --force https://github.com/BobTheBuidler/TaskStart.git .clinerules/hooks/submodules/TaskStart || true; \
test -f .gitmodules && git add .gitmodules; \
git add .clinerules/hooks/submodules/TaskStart; \
fi
git submodule update --init --recursive
git -c protocol.file.allow=always submodule update --remote .clinerules/hooks/submodules/TaskStart
cp .clinerules/hooks/submodules/TaskStart/TaskStart .clinerules/hooks/TaskStart
git add .clinerules/hooks/submodules/TaskStart
git add .clinerules/hooks/TaskStart
if ! git diff --cached --quiet; then \
git commit -m "Update TaskStart hook submodule and file"; \
fi
# PostToolUse hook update
if [ -d .clinerules/hooks/submodules/PostToolUse ]; then \
if [ ! -f .clinerules/hooks/submodules/PostToolUse/.git ] || ! grep -q "PostToolUse" .gitmodules 2>/dev/null; then \
rm -rf .clinerules/hooks/submodules/PostToolUse; \
fi \
fi
if [ ! -d .clinerules/hooks/submodules/PostToolUse ]; then \
rm -rf .git/modules/clinerules/hooks/submodules/PostToolUse; \
git submodule add --force https://github.com/BobTheBuidler/PostToolUse.git .clinerules/hooks/submodules/PostToolUse || true; \
test -f .gitmodules && git add .gitmodules; \
git add .clinerules/hooks/submodules/PostToolUse; \
fi
git submodule update --init --recursive
git -c protocol.file.allow=always submodule update --remote .clinerules/hooks/submodules/PostToolUse
cp .clinerules/hooks/submodules/PostToolUse/PostToolUse .clinerules/hooks/PostToolUse
chmod +x .clinerules/hooks/PostToolUse
git add .clinerules/hooks/submodules/PostToolUse
git add .clinerules/hooks/PostToolUse
if ! git diff --cached --quiet; then \
git commit -m "Update PostToolUse hook submodule and file"; \
fi