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.
如何制作一个生成可执行文件的Makefilemyscript ,例如,它转换为以下内容:
myscript
node myscript.js param1
所以我要做的就是
myscript param1
让它生成一个包含以下内容的文件:
#!/bin/sh node myscript.js "$@"
然后让它标记文件可执行文件(chmod +x myscript)。
chmod +x myscript