当前位置: 技术问答>linux和unix
makefile里的一个规则不是很懂,求解释一下 :"make 目录 all"
来源: 互联网 发布时间:2017-05-27
本文导语: 以下是Makefile里的一段,其中Init是第一个目标: init: FORCE @$(MAKE) QTDIR=`pwd` all all: src-moc src-mt sub-src sub-tools sub-tutorial sub-examples @echo @echo "The Qt library is now built in ./lib" ...
以下是Makefile里的一段,其中Init是第一个目标:
init: FORCE
@$(MAKE) QTDIR=`pwd` all
all: src-moc src-mt sub-src sub-tools sub-tutorial sub-examples
@echo
@echo "The Qt library is now built in ./lib"
@echo "The Qt examples are built in the directories in ./examples"
@echo "The Qt tutorials are built in the directories in ./tutorial"
@echo
@echo 'Note: be sure to set $$QTDIR to point to here or to wherever'
@echo ' you move these directories.'
@echo
@echo "Enjoy! - the Trolltech team"
@echo
不知道这个一句:$(MAKE) QTDIR=`pwd` all
make后面接个目录,再接个all目标,是什么用法 ?
init: FORCE
@$(MAKE) QTDIR=`pwd` all
all: src-moc src-mt sub-src sub-tools sub-tutorial sub-examples
@echo
@echo "The Qt library is now built in ./lib"
@echo "The Qt examples are built in the directories in ./examples"
@echo "The Qt tutorials are built in the directories in ./tutorial"
@echo
@echo 'Note: be sure to set $$QTDIR to point to here or to wherever'
@echo ' you move these directories.'
@echo
@echo "Enjoy! - the Trolltech team"
@echo
不知道这个一句:$(MAKE) QTDIR=`pwd` all
make后面接个目录,再接个all目标,是什么用法 ?
|
类似给 Makefile 传递一个变量(QTDIR)的 值
|
不知道你$(MAKE)变量定义的是什么值,如果是 mkdir 的话,应该是在当前目录下创建多个子目录。