subst: replace string in Makefile 123456TARGETS = 111.cpp 222.cpp 333.cppOTARGETS= $(subst cpp,o,$(TARGETS))LTARGETS= $(subst cpp,lo,$(TARGETS))%.o: %.cpp g++ -c -o $@ $<all: objs libs Tools #gcc subst: replace string in Makefile https://martinbj2008.github.io/2007/06/22/2013-06-22-subst/ Author Martinbj2008 Posted on June 22, 2007 Licensed under windows in vim Previous gcc参数可变的宏定义 Next