Bump dawidd6/action-send-mail from 3.7.0 to 3.7.1
[reguloj.git] / Makefile
blob64df4405076e19d2f02c2174035926f64a4ebb27
1 MAKEFLAGS += --warn-undefined-variables
2 SHELL = /bin/bash
3 .SHELLFLAGS := -eu -o pipefail -c
4 .DEFAULT_GOAL := all
5 .DELETE_ON_ERROR:
6 .SUFFIXES:
8 TIMESTAMPED_VERSION := $(shell /bin/date "+%Y.%m.%d-%H%M%S")
9 CURRENT_DATE := $(shell /bin/date "+%Y-%m-%d")
10 USERNAME := $(shell id -u -n)
11 USERID := $(shell id -u)
12 GREEN := $(shell tput -Txterm setaf 2)
13 WHITE := $(shell tput -Txterm setaf 7)
14 YELLOW := $(shell tput -Txterm setaf 3)
15 RESET := $(shell tput -Txterm sgr0)
17 HELP_FUN = \
18 %help; \
19 while(<>) { push @{$$help{$$2 // 'targets'}}, [$$1, $$3] if /^([a-zA-Z\-]+)\s*:.*\#\#(?:@([a-zA-Z\-]+))?\s(.*)$$/ }; \
20 print "usage: make [target]\n\n"; \
21 for (sort keys %help) { \
22 print "${WHITE}$$_:${RESET}\n"; \
23 for (@{$$help{$$_}}) { \
24 $$sep = " " x (32 - length $$_->[0]); \
25 print " ${YELLOW}$$_->[0]${RESET}$$sep${GREEN}$$_->[1]${RESET}\n"; \
26 }; \
27 print "\n"; }
29 .PHONY: all
30 all: help
32 .PHONY: help
33 help: ##@other Show this help
34 @perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
36 .PHONY: install
37 install: ##@hacking Install all artifacts into local repository
38 mvn clean install
40 .PHONY: verify
41 verify: ##@hacking Verify all modules
42 mvn verify