【发布时间】:2012-11-17 23:50:42
【问题描述】:
我正在尝试这样做:
我想从位于不同目录中的 shell 脚本调用 make(Makefile 存在于其他目录中,abc 路径可以使用)。我该怎么做呢?
由于shell脚本不允许我将cd进入Makefile目录并执行make,我该如何编写shell命令(通过给出要执行的Makefile的路径)来执行@987654327 @?
【问题讨论】:
-
Shell scripting does not allow me to 'cd' into the make file directory是什么意思?当然可以:cd /p/a/t/h && make工作得很好。 -
您好威廉,感谢您的回复。由于某种原因,我无法在 shell 脚本中使用 cd 命令。它给出了一个错误..这是我在 shell 脚本中使用的语法: cd