-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (58 loc) · 1.76 KB
/
Makefile
File metadata and controls
78 lines (58 loc) · 1.76 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.PHONY: help install build test analyze clean run format lint
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install dependencies
flutter pub get
build: ## Build the app
flutter build apk --release
flutter build ios --release --no-codesign
flutter build web --release
test: ## Run tests
flutter test
analyze: ## Analyze code
flutter analyze
clean: ## Clean build files
flutter clean
rm -rf build/
rm -rf .dart_tool/
run: ## Run the app
flutter run
format: ## Format code
flutter format .
lint: ## Run linter
flutter analyze
setup-remotes: ## Setup Git remotes
@if [ -f scripts/setup_git_remotes.sh ]; then \
chmod +x scripts/setup_git_remotes.sh && \
./scripts/setup_git_remotes.sh; \
fi
install-hooks: ## Install Git hooks
@if [ -f scripts/install_git_hooks.sh ]; then \
chmod +x scripts/install_git_hooks.sh && \
./scripts/install_git_hooks.sh; \
fi
push-all: ## Push to all remotes
@if [ -f scripts/push_to_all.sh ]; then \
chmod +x scripts/push_to_all.sh && \
./scripts/push_to_all.sh; \
fi
sync-remotes: ## Sync all remotes
@if [ -f scripts/sync_all_remotes.sh ]; then \
chmod +x scripts/sync_all_remotes.sh && \
./scripts/sync_all_remotes.sh; \
fi
docker-build: ## Build Docker image
docker build -t bugbounty-hunter .
docker-run: ## Run Docker container
docker run -it --rm bugbounty-hunter
docker-compose-up: ## Start Docker Compose
docker-compose up
docker-compose-down: ## Stop Docker Compose
docker-compose down
docker-compose-test: ## Run tests in Docker
docker-compose run test
docker-compose-analyze: ## Analyze code in Docker
docker-compose run analyze