Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankatliarchuk authored Mar 23, 2024
1 parent 660cb2b commit 6c7b928
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,29 @@ install: ## Setup pre commit.

validate: ## Validate files with pre-commit hooks
@pre-commit run --all-files

SHELL := /bin/bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules

help:
@printf "Usage: make [target] [VARIABLE=value]\nTargets:\n"
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

install: ## Setup pre commit.
@pre-commit install
@pre-commit gc

validate: ## Validate files with pre-commit hooks
@pre-commit run --all-files

run: ## Vagrant run
@vagrant up

restart: ## Vagrant restart vm
@vagrant reload packer

stop: ## Vagrant stop vm
@vagrant halt packer

0 comments on commit 6c7b928

Please sign in to comment.