makefile
$ make --debug=all ##输出所有的调试信息
or
$ make -n ## 只打印命令$ make -p${MAKE} ## make命令$ vim Makefile
@echo test1
echo test2
$ make
test1
echo test2
test2Last updated
$ make --debug=all ##输出所有的调试信息
or
$ make -n ## 只打印命令$ make -p${MAKE} ## make命令$ vim Makefile
@echo test1
echo test2
$ make
test1
echo test2
test2Last updated
$ vim Makefile
# 如果a和b不相等,则do something
ifneq ($(a), $(b))
# do something
endif$ vim Makefile
sources := a b c d f g
# 指定的模式为 a b c ,多个模式间,用空格区分
$(filter a b c , $(sources))
# 上式返回值为
# a b c