-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (35 loc) · 1.92 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
32
33
34
35
36
37
38
39
40
41
42
43
define DESCRIPTION
Code quality (testing, linting/auto-formatting, etc.) and local execution
orchestration for $(PROJECT_NAME).
endef
export DESCRIPTION
#################################################################################
# CONFIGURATIONS #
#################################################################################
NUM_PROCS:=$(shell nproc --all)
MAKEFLAGS += --warn-undefined-variables
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := help
.DELETE_ON_ERROR:
.SUFFIXES:
#################################################################################
# GLOBALS #
#################################################################################
SRC_DIR := cookiecutter_cruft_poetry_tox_pre_commit_ci_cd_instance
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
PROJECT_NAME := $(shell basename $(PROJECT_DIR))
#################################################################################
# COMMANDS #
#################################################################################
# Commands' help text generation
# When users invoke `make help` at the command line, any `##` prefixed lines that
# immediately precede a rule will render as that rule's help text
include .makefile/help.mk
.DEFAULT_GOAL := help # alias `make` to `make help`
# Note: must come before other includes
include .makefile/version_tags.mk # "Strong" version tag for both packages & Docker image tags
include .makefile/docker.mk # Docker orchestration commands
include .makefile/docs.mk # Documentation building commands
include .makefile/project_orchestration.mk # Project/virtual environment orchestration commands
include .makefile/test.mk # Application testing + code quality and security scanning commands