Skip to content

Commit bf1f587

Browse files
authored
make the Makefile more robust
1 parent 67b9022 commit bf1f587

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
SHELL := /bin/bash
2+
13
install:
24
@if ! command -v python3 >/dev/null 2>&1; then \
3-
echo "Python 3 is required but it's not installed. Please install Python 3 and try again." >&2; \
5+
echo "Python 3 is required but it's not installed. Please install Python 3 (or ensure 'python3' command is available) and try again." >&2; \
46
exit 1; \
57
fi
68
@if [ ! -d "venv-jit" ]; then \
79
python3 -m venv venv-jit; \
810
fi
9-
source venv-jit/bin/activate && pip install -r requirements.txt
11+
. venv-jit/bin/activate && pip install -r requirements.txt
1012

1113
configure:
1214
@read -p "Enter GitHub organization name: " org_name; \
@@ -21,10 +23,10 @@ configure:
2123
echo "TEAM_WILDCARD_TO_EXCLUDE=$$topics_to_exclude" >> .env
2224

2325
create-teams:
24-
source venv-jit/bin/activate && \
26+
. venv-jit/bin/activate && \
2527
export PYTHONPATH=$(CURDIR) && \
26-
python src/utils/github_topics_to_json_file.py && \
27-
python src/scripts/create_teams.py teams.json
28+
python3 src/utils/github_topics_to_json_file.py && \
29+
python3 src/scripts/create_teams.py teams.json
2830

2931
help:
3032
@echo "Usage: make [target]"

0 commit comments

Comments
 (0)