-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 729 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 729 Bytes
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
# TARGETS
charm: clean version ## Build the charm
@charmcraft pack
@mv new-jobbergate-cli_*.charm new-jobbergate-cli.charm
lint: ## Run linter
tox -e lint
clean: ## Remove .tox and build dirs
rm -rf .tox/ venv/ build/
rm -f *.charm
rm -f version
version: ## Create/update version file
@git describe --tags --dirty --always > version
format:
isort src
black src
# Display target comments in 'make help'
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
# SETTINGS
# Use one shell for all commands in a target recipe
.ONESHELL:
# Set default goal
.DEFAULT_GOAL := help
# Use bash shell in Make instead of sh
SHELL := /bin/bash