在Makefile中,可以使用以下方式来生成文件到指定位置:
target: source cp source /path/to/destination DEST_PATH = /path/to/destination target: source cp source $(DEST_PATH) target: source cp source $(DEST_PATH) 在命令行中执行以下命令:
make DEST_PATH=/path/to/destination 以上是一些常用的方法,具体的实现方式可以根据实际需求进行调整。