- membuat makefile, dimana rerequisites adalah optional
# prerequisitesd is optional
# each command will run in a new shell, use "\" for multiline related command. Or ; for consequence command
# [variable name] := [value]
[target] : prerequisites
[command]
[command]
[target] : prerequisites
[command] \
[command related] \
[command related]
[target] : prerequisites
[command] ; [command related] ; [command related]
# example namafilke `Makefile`, run with `make test`
x := dude
test:
echo $(x)
echo ${x}2
echo ${x}; echo ${x}2
echo ${x} \
echo ${x}2
# semmua diatas adalah sama
echo "${x} ${x}2"
make [target]
menjalankan makefile