-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
52 lines (39 loc) · 1.48 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: help
help:
@echo "make [TARGETS...]"
@echo
@echo 'Targets:'
@awk 'match($$0, /^([a-zA-Z_\/-]+):.*?## (.*)$$/, m) {printf " \033[36m%-30s\033[0m %s\n", m[1], m[2]}' $(MAKEFILE_LIST) | sort
.PHONY: test
.ONESHELL:
test: ## test pulling the readmes from the other projects
cd scripts
python3 test_pull_readmes.py
.PHONY: pull-readmes
pull-readmes: ## pull the readmes from other projects given in `readme-list`
python3 scripts/pull_readmes.py readme-list
.PHONY: pull-otk
pull-otk: ## pull the otk documentation
python3 scripts/pull_otk.py
.PHONY: pull-osbuild-modules
pull-osbuild-modules: ## pull the documentation of the osbuild modules
python3 scripts/pull_osbuild_modules.py
.PHONY: generate
generate: pull-readmes pull-osbuild-modules ## generate all external content
.PHONY: install-dependencies
install-dependencies: ## install all dependencies
npm clean-install
.PHONY: build-website
build-website: ## build the website (dependencies need to be met)
npm run build
.PHONY: build
build: install-dependencies build-website ## build the website in one go
.PHONY: run
run: ## run docusaurus locally with auto-updates from the code (redirects don't work here)
npm start
.PHONY: serve
serve: build ## serve the pre-built docusaurus locally (redirects only work here, not with `make run`)
npm run serve
.PHONY: protect-readmes
protect-readmes: ## verify the READMEs don't get changed in a pull request (to be used in the workflow)
python3 scripts/protect_readmes.py readme-list