Makefile - The hard way¶
Overview¶
Choosing default SHELL¶
#!/bin/bash
# Set default shell
SHELL := /bin/bash
.DEFAULT_GOAL := info
# Non-alias
.PHONY: venv seeds tests docs logs
# Note
# ?= is used for setting default values and only assigns if the variable is undefined.
# := performs immediate evaluation and assigns the value right away.
# ===================================================================================================
# Developer Environment =============================================================================
# ===================================================================================================
# [+] Environment
# Included environment variables
# include .env
# Export the environment variables
# export $(shell sed 's/=.*//' .env)
# Workspace
VITURAL_ENVIRONMENT_FOLDER := "venv"
# The default interpreted Python version
DEFAULT_INTERPRETED_PYTHON_VERSION ?= "3.12.8"
Reference¶
https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html