执行 makefile 跳转到指定目录
可以使用cd命令在makefile中跳转到指定目录。例如:
all:
cd /path/to/directory && $(MAKE)
这个makefile将会跳转到/path/to/directory目录下执行另一个makefile。在这个例子中,all是一个伪目标,它只是用来执行cd和$(MAKE)命令。
原文地址: https://www.cveoy.top/t/topic/fmwy 著作权归作者所有。请勿转载和采集!