Makefileの内部マクロ
from Makefile
こんなの使いだしたら可読性下がりすぎて破綻しそうやなmrsekut.icon
https://tex2e.github.io/blog/makefile/automatic-variables
https://ie.u-ryukyu.ac.jp/~e085739/c.makefile.tuts.html#id7
簡潔にまとまっていてめちゃくちゃ良い
$@
target名
code:makefile
hoge:
@echo $@ # => hoge
@D
@F
$<
依存ファイルの先頭のファイル名を表す
code:makefile
hoge: piyo.hs fuga.hs
@echo $< # => piyo.hs
<D
<F
$%
$?
$^
$+
$*
(@:%.js=%.elm)
target名の~~.jsを~~.elmに変える
https://stackoverflow.com/a/38220188