Select Git revision
makelib.mk 493 B
# Shell is Bash.
SHELL := /bin/bash
.DEFAULT_GOAL := all
# Set terminal colors
tred=$(shell tput setaf 1)
tgreen=$(shell tput setaf 2)
tyellow=$(shell tput setaf 3)
tnormal=$(shell tput sgr0)
# Define inform message and Q (quiet command prefix)
define inform
echo -e " $(tgreen)** [$(1)]\t$(tyellow)$(2)$(tnormal)";
endef
ifeq ($(V),1)
Q=
else
Q=@
endif
# Force target (see `info make 'Force Targets'`)
# Usage of .PHONY is preferred over force.
force:
.PHONY: force
ALGO=$(ROOT)/algo