Created
February 4, 2020 16:52
-
-
Save lighth7015/7233df4bef05a8c06f52736a5112eb56 to your computer and use it in GitHub Desktop.
write-col
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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