Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #don't copy highlighted text, use 'raw paste data' textbox
- MAKEFLAGS +=--no-print-directory -Rr
- c_t = "\033[01;31m"
- c_pr_n = "\033[01;32m"
- c_pr_o = "\033[01;33m"
- c_hack = "\033[01;34m"
- c_rst = "\033[00m"
- T=a b c d e f g h/i.k
- .PHONY: $(T)
- $(T):
- $(if $($(@)_ENV),@echo $(c_rst) '>' $(c_t)$@$(c_rst)':' $(c_hack)$($(@)_ENV)$(c_rst))
- @echo $(c_rst) '>' $(c_t)$@$(c_rst)':'$(if $+, $(c_pr_n)$+)$(if $PIPE>,$(c_rst) '|' $(c_pr_o)$PIPE>)$(c_rst)
- .DEFAULT: a
- a: b c | d e
- c: f
- d: g
- g: h/i.k
- h/i.k_ENV = hacked successfully
- ### output:
- # > b:
- # > f:
- # > c: f
- # > h/i.k: hacked successfully
- # > h/i.k:
- # > g: h/i.k
- # > d: g
- # > e:
- # > a: b c | d e
Add Comment
Please, Sign In to add comment