-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 1.26 KB
/
Makefile
File metadata and controls
29 lines (23 loc) · 1.26 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
.PHONY: help
help: ## Displays this list of targets with descriptions
@echo "The following commands are available:\n"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: docs
docs: ## Generate projects docs (from "Documentation" directory)
mkdir -p Documentation-GENERATED-temp
docker run --rm --pull always -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
.PHONY: docs-fast
docs-fast: ## Generate projects docs (from "Documentation" directory)
mkdir -p Documentation-GENERATED-temp
docker run --rm -v "$(shell pwd)":/project -t ghcr.io/typo3-documentation/render-guides:latest --config=Documentation
.PHONY: docs-watch
docs-watch: ## Watch for changes and regenerate docs automatically
@echo "Watching for changes in Documentation directory..."
@while inotifywait -r -e modify,create,delete,move Documentation/ 2>/dev/null; do \
echo "Changes detected, regenerating documentation..."; \
$(MAKE) docs-fast; \
echo "Documentation updated at $$(date)"; \
done
.PHONY: watch-install
watch-install: ## Install inotify-tools for file watching (Ubuntu/Debian)
sudo apt-get update && sudo apt-get install -y inotify-tools