Skip to content

The open-source AI voice studio. Clone, dictate, create.

fix: improve Makefile robustness and update CONTRIBUTING docs

tomasmach9d98e1e768b4
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d1daede3..b71c4f3e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -32,6 +32,10 @@ Thank you for your interest in contributing to Voicebox! This document provides
### Development Setup
+**Using the Makefile (recommended for macOS/Linux):** Run `make setup` to install all dependencies, then `make dev` to start development servers. See `make help` for all available commands.
+
+**Manual setup (required for Windows):**
+
1. **Fork and clone the repository**
```bash
git clone https://github.com/YOUR_USERNAME/voicebox.git
diff --git a/Makefile b/Makefile
index ce92ebdc..48de0784 100644
--- a/Makefile
+++ b/Makefile
@@ -126,7 +126,7 @@ build-web: ## Build web app
.PHONY: db-init db-reset generate-api
-db-init: ## Initialize SQLite database
+db-init: $(VENV)/bin/activate ## Initialize SQLite database
@echo -e "$(BLUE)Initializing database...$(NC)"
cd $(BACKEND_DIR) && $(PYTHON_VENV) -c "from database import init_db; init_db()"
@echo -e "$(GREEN)✓ Database created at $(BACKEND_DIR)/data/voicebox.db$(NC)"
@@ -180,6 +180,7 @@ test-backend: ## Run Python backend tests (requires pytest)
cd $(BACKEND_DIR) && $(VENV_BIN)/pytest -v; \
else \
echo -e "$(YELLOW)pytest not installed. Run: $(PIP) install pytest$(NC)"; \
+ exit 1; \
fi
test-frontend: ## Run frontend tests (requires test script in package.json)
@@ -188,6 +189,7 @@ test-frontend: ## Run frontend tests (requires test script in package.json)
bun run test; \
else \
echo -e "$(YELLOW)No test script configured$(NC)"; \
+ exit 1; \
fi
# =============================================================================