以下是我对lambda表达式的马马虎虎仿真在gnumake的: space := $(strip) $(strip)
comma := ,
# convert a space-separated list in $1 into a comma-separated list:
list2param = $(subst $(space),$(comma),$(strip $1))
# pa
鉴于我有一个简单的Makefile中像这样一个项目: all: foobar
foobar: foo.o bar.o
,我可以建立针对不同的架构: $ CC=clang make # or
$ CC=x86_64-w64-mingw32-gcc make # or
$ CC=arm-linux-gnueabihf-gcc make
这工作,但我希望能够保持多路输出同时配置,例
我知道它很简单,但我错过了这里的一些东西。 我想在x86主机上构建我的代码。当我给make它为手臂建立。 我想知道如何让这个构建到我的主机?我设置变量LOCAL_BUILD:=host和给make主机我得到了错误。 make: *** No rule to make target 'host'. Stop.
common.makefile,这看起来是怎样的。 DEFAULT: all
#