Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在努力更改所有 makefile 以将 premake 用于我的项目。
由于它有许多使用其他配置工具(如 autotools)的其他外部库,我决定只使用它自己的 Makefile,而不是通过 premake 为某些库制作 makeif。我了解“种类:Makefile”可用于我将要做的事情。
问题是 autotools ./configure 命令应该在前面,但我不知道如何通过 premake 来完成。任何人都可以建议如何处理它?
提前致谢。
你可以使用 Lua 的os.execute()来调用外部命令。
os.setcwd("path/to/project") os.execute("./configure")
这能满足你的需要吗?