-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
38 lines (30 loc) · 941 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
27
28
29
30
31
32
33
34
35
36
37
38
SHELL := /bin/bash
VERSION := 0.0.1
BUILD_INFO := Manual build
ENV_FILE := .env
ifeq ($(filter $(MAKECMDGOALS),config clean),)
ifneq ($(strip $(wildcard $(ENV_FILE))),)
ifneq ($(MAKECMDGOALS),config)
include $(ENV_FILE)
export
endif
endif
endif
clean: ## 🤖 Clean all caches and update packages
@figlet $@ || true
@py3clean . && rm -rf dist && poetry update
install: ## 🤖 Install dependencies
@figlet $@ || true
@rm -f poetry.lock && poetry install
build: ## 🤖 Build the project
@figlet $@ || true
@poetry build --format wheel
deploy: ## 🤖 Deploy the project locally
@figlet $@ || true
@make build && pip install dist/*.whl --force-reinstall
deploy-infra: ## 🤖 Deploy the required Azure infrastructure
@figlet $@ || true
@infrastructure/deploy.sh
extract-docs: ## 🤖 Extract the Azure CLI Documentation
@figlet $@ || true
@rm extract/docs -fdr && rm extract/yml -fdr && python3 extract/main.py