-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (44 loc) · 1.56 KB
/
Copy pathMakefile
File metadata and controls
53 lines (44 loc) · 1.56 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
.PHONY: help
help: ## Print this help message and exit
@echo Usage:
@echo " make [target]"
@echo
@echo Targets:
@awk -F ':|##' \
'/^[^\t].+?:.*?##/ {\
printf " %-30s %s\n", $$1, $$NF \
}' $(MAKEFILE_LIST)
.PHONY: coverage
coverage: ## run code coverage report on module via unittest
@./scripts/coverage.sh ${case}
.PHONY: unit
unit: ## execute monitor unittest suite, for single case make unit case=<NAME>
@rm -f monitor/logs/*.log*
@./scripts/unittest.sh ${case}
.PHONY: lint
lint: ## lint codebase using a combination of yamllint, shellcheck and flake8
@./scripts/lint.sh
.PHONY: config
config: ## send env delta to docker dev directory
@./scripts/config.sh
.PHONY: dev
dev: config ## build development stack
@./scripts/dev.sh
.PHONY: clean
clean: ## clean docker images and containers
@./scripts/clean.sh
.PHONY: pull
pull: ## pull new services from registry
@docker compose -f docker/dev/docker-compose.yaml pull
.PHONY: setup
setup: ## setup RPi dev environment from a fresh ubuntu 20.04 install
@printf "${OKB}Installing iris apt package dependancies ...${NC}\n";
@sudo apt update;
@xargs -a apt-packages.txt sudo apt install -y;
@printf "${OKB}Installing iris python package dependancies to root ...${NC}\n";
@sudo -H python3 -m pip install -r --upgrade pre-requirements.txt --ignore-installed;
@sudo -H python3 -m pip install -r requirements.txt;
@printf "${OKB}Copying boot config files ...${NC}\n";
@sudo cp ./dev/BOOT/firmware/*.* /boot/firmware/.
@printf "${OKB}Reboot to apply boot config changes.${NC}\n"
@printf "${OKG} ✓ ${NC} Complete\n";