This commit is contained in:
Rorikstr | Rust Dev 2025-10-19 19:29:21 +03:00
parent aa354f3258
commit 218ee65e67
3 changed files with 33 additions and 4 deletions

View file

@ -78,11 +78,16 @@ gcov_report: clean test
dvi:
@mkdir -p $(DVI_DIR)
@cp doc.md $(DVI_DIR)/ 2>/dev/null || echo "doc.md not found"
@if command -v doxygen >/dev/null 2>&1 && [ -f Doxyfile ]; then \
doxygen Doxyfile; \
@echo "Generating documentation with Doxygen..."
@if command -v doxygen >/dev/null 2>&1; then \
doxygen Doxyfile && echo "HTML docs: $(DVI_DIR)/html/index.html"; \
else \
echo "Error: Doxygen not found. Install: nix-shell -p doxygen"; \
echo "Copying doc.md as fallback..."; \
cp doc.md $(DVI_DIR)/; \
fi
@echo "Documentation in $(DVI_DIR)/"
xdg-open dvi/html/index.html
dist: clean
tar -czf tetris.tar.gz Makefile $(TETRISDIR) $(CLIDIR) $(TESTDIR) README.md doc.md