docs make target

This commit is contained in:
2026-02-21 23:44:03 +01:00
parent 0b25ecc793
commit 3b137fd48e
2 changed files with 17 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
.local .local
impostor.lua impostor.lua
prompts prompts
docs docs

View File

@@ -204,7 +204,22 @@ install_precommit_hook:
@chmod +x .git/hooks/pre-commit @chmod +x .git/hooks/pre-commit
@echo "Pre-commit hook installed successfully." @echo "Pre-commit hook installed successfully."
.PHONY: all build export watch import_assets export_assets clean lint ci-version ci-export ci-upload ci-update install_precommit_hook docs: build
@echo "==> Checking for ldoc..."
@if ! command -v ldoc &> /dev/null; then \
echo "ldoc not found, attempting to install with luarocks..."; \
if command -v luarocks &> /dev/null; then \
luarocks install ldoc; \
else \
echo "Error: luarocks not found. Please install luarocks and then ldoc manually."; \
exit 1; \
fi; \
fi
@echo "==> Running ldoc..."
@ldoc ${OUTPUT} -d docs
@echo "==> Documentation generated."
.PHONY: all build export watch import_assets export_assets clean lint ci-version ci-export ci-upload ci-update install_precommit_hook docs
#-- <WAVES> #-- <WAVES>
#-- 000:224578acdeeeeddcba95434567653100 #-- 000:224578acdeeeeddcba95434567653100