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.
我意识到为什么我没有工作,因为从本地目录中删除了PROGS = ltest makefiletest。$(PREFIX)/ltestmakefiletest
PROGS = ltest makefiletest
$(PREFIX)/ltest
makefiletest
有没有办法在单行中做到这一点,还是我必须一个一个地指定所有目标?
addprefix 函数是为这个确切的用例设计的:
$(RM) $(addprefix $(PREFIX)/bin/,$(PROGS))