我正在尝试将此命令的输出(即在我的makefile中)分配给makefile HEADER var,如下面的代码行所示:
HEADER = $(shell for file in `find . -name *.h`;do echo $file; done)
Run Code Online (Sandbox Code Playgroud)
问题是,如果我使用以下命令在makefile中打印HEADER:
print:
@echo $(HEADER)
Run Code Online (Sandbox Code Playgroud)
我明白了
ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile ile
Run Code Online (Sandbox Code Playgroud)
如果我直接在控制台中运行此命令,并直接在我的makefile所在的位置:
myaccount$ for file in `find . -name *.h`;do echo $file; done
./engine/helper/crypto/tomcrypt/headers/._tomcrypt_pk.h
./engine/helper/crypto/tomcrypt/headers/tomcrypt.h
./engine/helper/crypto/tomcrypt/headers/tomcrypt_argchk.h
./engine/helper/crypto/tomcrypt/headers/tomcrypt_cfg.h
./engine/helper/crypto/tomcrypt/headers/tomcrypt_cipher.h
./engine/helper/crypto/tomcrypt/headers/tomcrypt_custom.h …
Run Code Online (Sandbox Code Playgroud)