Skip to content
Snippets Groups Projects
Select Git revision
  • 7a9a5ef9d1c106884a6d7d4153ac0187e6d8454c
  • master default protected
2 results

makelib.mk

Blame
  • 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