0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Makefileで赤文字 ( 色付きの文字 ) を標準出力する

0
Posted at

コード例

FONT_RED := $(shell tput setaf 1)
FONT_RESET := $(shell tput sgr0)

print-test:
	@printf "$(FONT_RED)red$(FONT_RESET)\n"

実行例

make print-test
image

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

プロフィール・経歴

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?