-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (26 loc) · 1.05 KB
/
Makefile
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
SHELL=/bin/bash
help: ## Display the help menu.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## Build entire project
@if [ -n "$$AndroidSdkDirectory" ]; then \
cd ./src; dotnet build; \
else \
cd ./src; dotnet build /p:AndroidSdkDirectory=$$HOME/Android/Sdk; \
fi
run-desktop: ## Run desktop version
@cd ./src/ConsoleLaunchpad.Desktop; dotnet run
run-android: ## Run android version
@if [ -n "$$AndroidSdkDirectory" ]; then \
cd ./src/ConsoleLaunchpad.Android; dotnet build -t:Run -f net8.0-android; \
else \
cd ./src/ConsoleLaunchpad.Android; dotnet build -t:Run -f net8.0-android /p:AndroidSdkDirectory=$$HOME/Android/Sdk; \
fi
run-web: ## Run browser version
@cd ./src/ConsoleLaunchpad.Browser; dotnet run
develop-web: ## Develop browser version
@cd ./src/ConsoleLaunchpad.Browser; dotnet watch
setup: ## Setup local environment
@cd ./src;dotnet workload restore
@cd ./src;dotnet restore
clean: ## Clean local environment
@cd ./src;dotnet clean