# # makefile to demonstrate colors # # to see all colors: # make -f make_colors all # # to see single color: # make -f make_colors blue # # Orvedahl R. 8-1-2014 normal = `tput sgr0` c_red = `tput setaf 1` c_green = `tput setaf 2` c_yellow = `tput setaf 3` c_blue = `tput setaf 4` c_purple = `tput setaf 5` c_cyan = `tput setaf 6` c_gray = `tput setaf 7` all: red green yellow blue purple cyan gray red: @echo "this is "${c_red}"red"${normal}"... cool" green: @echo "this is "${c_green}"green"${normal}"... cool" yellow: @echo "this is "${c_yellow}"yellow"${normal}"... cool" blue: @echo "this is "${c_blue}"blue"${normal}"... cool" purple: @echo "this is "${c_purple}"purple"${normal}"... cool" cyan: @echo "this is "${c_cyan}"cyan"${normal}"... cool" gray: @echo "this is "${c_gray}"gray"${normal}"... cool"