Skip to content

Instantly share code, notes, and snippets.

@lighth7015
Created February 4, 2020 16:52
Show Gist options
  • Save lighth7015/7233df4bef05a8c06f52736a5112eb56 to your computer and use it in GitHub Desktop.
Save lighth7015/7233df4bef05a8c06f52736a5112eb56 to your computer and use it in GitHub Desktop.
write-col
EQT:="
# function?
define write-col
$(shell printf $(EQT) printf \"%-$(1)s\"\n$(EQT) $(EQT)$(2)$(EQT)
endef
test:
$(info $(EQT)A $(write-col 12 "foo") B $(EQT))
.PHONY: test
all: test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment