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.
我有一个目录结构,例如:
home |-- folder1 |-- Makefile |-- code1.cpp |-- folder2 |-- Makefile |-- code2.cpp |-- many more folders with Makefile and code inside . .
我想在所有文件夹上调用 make 。我该怎么做呢?谢谢!
请参阅Eldar Abusalimov 的回答:
SUBDIRS := $(wildcard */.) .PHONY : all $(SUBDIRS) all : $(SUBDIRS) $(SUBDIRS) : $(MAKE) -C $@