Created
April 27, 2022 18:15
-
-
Save Sigmanificient/7a9714192578c5aceb170924430a325f to your computer and use it in GitHub Desktop.
lolcat echo support check for prettier Makefile
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
# - lolcat suffix check - | |
COLOR := $(shell command -v lolcat) | |
ifeq (, $(COLOR)) | |
COLOR= | |
else | |
COLOR= |lolcat | |
endif | |
# ---------------------- | |
demo: | |
@ echo 'This is a demo' $(COLOR) | |
# if you dont have `lolcat` it will appear white! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment