# toggle these to switch between literal # and 'pretty' outputs #quiet = quiet = quiet_ echo-cmd = $(if $($(quiet)cmd_$(1)), \ echo ' $($(quiet)cmd_$(1))';) cmd = @$(echo-cmd) $(cmd_$(1)) quiet_cmd_create = MAKING $@ cmd_create = echo test >$@ all: myfile myotherfile myfile: $(call cmd,create) myotherfile: $(call cmd,create)