makefile切换目录解决方法

makefile切换目录
怎么在makefile里写个脚本达到下面这个目的
功能同SHELL里   的cd   ../c这个命令


$ make
Current working dir is: /usr/home/mymtom/src/shell
Entering dir /usr/home/mymtom/src/shell/../c
Current working dir is: /usr/home/mymtom/src/c
$ cat Makefile

all:
@_curdir=`pwd`; \
echo "Current working dir is: $${_curdir} "; \
echo "Entering dir $${_curdir}/../c "; \
cd ../c; \
_curdir=`pwd`; \
echo "Current working dir is: $${_curdir} "
$

makefile切换目录解决方法

相关文章:

你感兴趣的文章:

标签云: