-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
28 lines (20 loc) · 839 Bytes
/
Makefile
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
.PHONY: help install install-dev run tests
help: ## Show list of commands
@printf "\033[33m%s:\033[0m\n\n" 'Available commands'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[32m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
setup_venv = test -d venv || python3.11 -m venv venv
pip_install = pip install -r requirements.txt
activate = . venv/bin/activate
install: ## Make venv
$(setup_venv)
$(activate) && $(pip_install)
install-dev: ## Make venv
$(activate) && $(pip_install) -r requirements-dev.txt
run-server: ## Run server
$(activate) && cd src && python app.py --server
run-hamster: ## Run HamsterKombat
$(activate) && cd src && python app.py --hamster-kombat
run-bloom: ## Run Bloom
$(activate) && cd src && python app.py --bloom
run-bot: ## Run Bloom
$(activate) && cd src && python app.py --bot