forked from microsoft/ccf-app-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 1.02 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
SHELL := /bin/bash
.PHONY: help
.DEFAULT_GOAL := help
help: ## 💬 This help message :)
@grep -E '[a-zA-Z_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
lint: ## 🔍 Lint the code base (but don't fix)
@echo -e "\e[34m$@\e[0m" || true
@./lint.sh
lint-fix: ## 🌟 Lint and fix the code base
@echo -e "\e[34m$@\e[0m" || true
@./lint.sh -f
build: ## 🔨 Build an Application
@echo -e "\e[34mPlease change directory to the sample you wish to build.\e[0m" || true
test: ## 🧪 Test an Application
@echo -e "\e[34mPlease change directory to the sample you wish to test.\e[0m" || true
start-host: build ## 🏃 Start the CCF Sandbox
@echo -e "\e[34mPlease change directory to the sample you wish to start.\e[0m" || true
demo: ## 🎬 Demo an Application
@echo -e "\e[34mPlease change directory to the sample you wish to demo.\e[0m" || true
clean: ## 🧹 Clean the working folders created during build/demo
@rm -rf .venv_ccf_sandbox
@rm -rf workspace