Advertisement
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 $($(@)_PUSHBACK),$(eval $($(@)_PUSHBACK)))
- $(if $($(@)_PUSHBACK),@echo $(c_rst) '>' $(c_t)$@$(c_rst)':' $(c_hack)$(@)_PUSHBACK = $($(@)_PUSHBACK)$(c_rst))
- $(if $(LDFLAGS),@echo $(c_rst) '>' $(c_t)$@$(c_rst)':' $(c_hack)LDFLAGS = $(LDFLAGS)$(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_PUSHBACK = LDFLAGS += -lz
- ### output:
- # > b:
- # > f:
- # > c: f
- # > h/i.k: h/i.k_PUSHBACK = LDFLAGS += -lz
- # > h/i.k: LDFLAGS = -lz
- # > h/i.k:
- # > g: LDFLAGS = -lz
- # > g: h/i.k
- # > d: LDFLAGS = -lz
- # > d: g
- # > e: LDFLAGS = -lz
- # > e:
- # > a: LDFLAGS = -lz
- # > a: b c | d e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement