-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (52 loc) · 1.91 KB
/
Copy pathMakefile
File metadata and controls
62 lines (52 loc) · 1.91 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
60
61
62
REPOS_AW=ActivityWatch/activitywatch \
ActivityWatch/docs \
ActivityWatch/activitywatch.github.io \
ActivityWatch/aw-core \
ActivityWatch/aw-server \
ActivityWatch/aw-server-rust \
ActivityWatch/aw-webui \
ActivityWatch/aw-qt \
ActivityWatch/aw-tauri \
ActivityWatch/aw-android \
ActivityWatch/aw-client \
ActivityWatch/aw-client-js \
ActivityWatch/aw-client-rust \
ActivityWatch/aw-watcher-web \
ActivityWatch/aw-watcher-afk \
ActivityWatch/aw-watcher-window \
ActivityWatch/aw-watcher-window-wayland \
ActivityWatch/aw-watcher-vim \
ActivityWatch/aw-watcher-vscode \
ActivityWatch/aw-watcher-input \
ActivityWatch/aw-leaderboard-rust \
ActivityWatch/aw-leaderboard-firebase \
ActivityWatch/aw-supabase \
ActivityWatch/aw-notify \
2e3s/awatcher
REPOS_SL=SuperuserLabs/thankful \
SuperuserLabs/thankful-contracts \
SuperuserLabs/thankful-server \
SuperuserLabs/superuserlabs.github.io
build-aw: clone-aw
python3 src/contributor_stats/main.py $(addprefix repos/,$(REPOS_AW))
build-sl: clone-sl
python3 src/contributor_stats/main.py $(addprefix repos/,$(REPOS_SL))
# Render the GitHub activity table (github-activity-table.html) and the
# contributors avatar list (contributors.yml) from the committed
# github-stats-state.json, without calling the GitHub API. The website build
# (the consumer) uses this to generate both rather than committing them here.
render:
poetry run python3 src/contributor_stats/github_stats.py --render-only
clone-aw: $(patsubst %, repos/%, $(REPOS_AW))
clone-sl: $(patsubst %, repos/%, $(REPOS_SL))
repoorg = $(word 2,$(subst /, ,$1))
reponame = $(word 3,$(subst /, ,$1))
repos/%:
git clone https://github.com/$(call repoorg,$@)/$(call reponame,$@).git $@
clean:
rm -f tables/*
rm -rf repos/*
test:
poetry run python3 -m pytest tests/
typecheck:
poetry run python3 -m mypy src/contributor_stats tests --ignore-missing-imports