forked from hacs/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 756 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
.DEFAULT_GOAL := help
help: ## Shows help message.
@printf "\033[1m%s\033[36m %s\033[32m %s\033[0m \n\n" "Development environment for" "HACS" "Documentation";
@awk 'BEGIN {FS = ":.*##";} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m make %-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST);
@echo
init: bootstrap
start: generate ## Start the documentation server
yarn start;
bootstrap: ## Run yarn
apt update
apt install -y python3-pip
rm -rf documentation/repositories
yarn global add prettier;
yarn;
generate: ## Build the documentation
python3 -m pip install requests
python3 script/generate_default_repositories.py
update: ## Pull main from hacs/documentation
git pull upstream main;