引用:
include 路径/makefile文件
例:
include test/test.mk
嵌套:
subsystem:
cd【子文件夹】 && 【编译命令】 #等价于 【编译命令】 -C 【子文件夹】
例:
subsystem:
cd sub_dir && gcc -c main.c
subsystem:
gcc -c main.c -C sub_dir
引用:
include 路径/makefile文件
例:
include test/test.mk
嵌套:
subsystem:
cd【子文件夹】 && 【编译命令】 #等价于 【编译命令】 -C 【子文件夹】
例:
subsystem:
cd sub_dir && gcc -c main.c
subsystem:
gcc -c main.c -C sub_dir