-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 817 Bytes
/
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
.PHONY: test help clean
.DEFAULT_GOAL := deploy
# Global Variables
CURRENT_PWD:=$(shell pwd)
VENV_DIR:=.env
AWS_PROFILE:=elf
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
all: ## Trigger Resources and Function Code deployments
sh deployment_scripts/deploy.sh
deploy: ## Trigger Only Resource deployments & Not Function Code
sh deployment_scripts/deploy.sh
func: ## Trigger Only Funtion code deployments
sh deployment_scripts/deploy_func.sh
destroy: ## Delete deployments without confirmation
sh deployment_scripts/destroy.sh shiva
clean: ## Remove All virtualenvs
@rm -rf ${PWD}/${VENV_DIR} build dist *.egg-info .eggs .pytest_cache .coverage
@find . | grep -E "(__pycache__|\.pyc|\.pyo$$)" | xargs rm -rf