-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) Β· 1.44 KB
/
Makefile
File metadata and controls
39 lines (30 loc) Β· 1.44 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
30
31
32
33
34
35
36
37
38
.PHONY: help generate serve clean test deploy test-urls
help: ## Show this help message
@echo "Repository Browser Commands:"
@echo ""
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
generate: ## Generate repository structure JSON
@echo "π Generating repository structure..."
@python3 generate_structure.py
@echo "β
Repository structure generated successfully!"
serve: ## Serve the repository browser locally
@echo "π Starting local server on http://localhost:8000"
@echo "Press Ctrl+C to stop the server"
@python3 -m http.server 8000
clean: ## Clean generated files
@echo "π§Ή Cleaning generated files..."
@rm -f repo_structure.json
@echo "β
Cleaned!"
test: generate ## Test the structure generation
@echo "π§ͺ Testing repository structure generation..."
@python3 -c "import json; data = json.load(open('repo_structure.json')); print(f'β
Valid JSON with {len(data[\"structure\"])} top-level items')"
test-urls: generate ## Test GitHub URL construction
@echo "π Testing GitHub URLs..."
@python3 test_urls.py
deploy: generate ## Prepare for deployment (generate structure)
@echo "π Preparing for deployment..."
@python3 generate_structure.py
@echo "β
Ready for deployment!"
install: ## Install local dependencies (if needed)
@echo "π¦ All dependencies are built-in Python modules"
@echo "β
No additional installation required!"