[英]How to run a ./configure script inside makefile
I have tried the following: 我尝试过以下方法:
$(shell ./libpng/configure)
./libpng/configure
under this context 在这种背景下
all : build_jpeg build_libpng
#JPEG BUILD RULES
build_jpeg :
make -C ./jpeg
#LIB PNG BUILD RULES
build_libpng :
$(shell ./libpng/configure)
make -C ./libpng
What can I do to make this work? 我能做些什么来完成这项工作?
What happens when you just do ./libpng/configure
? 当你执行./libpng/configure
时会发生什么? Make sure the configure script is executable! 确保configure脚本是可执行的! ( chmod +x ./libpng/configure
) ( chmod +x ./libpng/configure
)
If you want configure to generate the files in the folder libpng you can: 如果要配置生成libpng文件夹中的文件,您可以:
(cd ./libpng && ./configure)
Code in parentheses is executed in a subshell. 括号中的代码在子shell中执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.