我的问题很简短。我有我的源目录 mySrcDir,我的 Makefile
也位于其中,我想将它编译到我的构建目录 myBuildDir 中。
如何制作
我的/some/path/mySrcDir
的内容到/another/path/myBuildDir
?
附:操作系统Ubuntu 14.04
最佳答案
1) 在你的构建目录中调用这个:
make -f /some/path/mySrcDir/your-makefile
-f 选项用于指定您要“制作”的文件。
2) 如果 Makefile 是由 GNU autotools 生成的,你可以试试这个:
./configure --prefix=/another/path/myBuildDir
然后制作
关于linux - 如何从构建目录中的 src 目录制作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36576209/