概要
- とても難しい。わかるようなわからんような。
- 一旦シェルスクリプトで考えるといい。
参考
例
# Standard for x in 1 2 3 do echo $x done # 1 line for x in 1 2 3; do echo $x; done
.PHONY: test test: @for x in 1 2 3;\ do\ echo $$x;\ done
# Standard if true; then echo "hello" else echo "goodbye" fi # 1 line if true; then echo "hello"; else echo "goodbye"; fi
.PHONY: test test: if true; then\ echo "hello";\ else\ echo "goodbye";\ fi