
本文共 3564 字,大约阅读时间需要 11 分钟。
���Makefile������������������������������������������������������������������������������������������������������������������������������������������������������������������������Makefile������������������������������������������shell������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������
���������Makefile���������������������������������������������������������������������������������������������������������������������������������������Makefile���������pwd
���������������$(pwd)
������������������������������������Makefile������������������������shell���������������������������shell������������������������������������������������������������������������
������$(shell pwd)������������������������
���Makefile������������$(shell pwd)
������������������������������������������������������������������Makefile���������������shell���������������pwd
������������������������������������������������������������$(shell pwd)
������������������������������������������������������������������������������������������������������������������
������������Makefile���������include������
���������������������������������������������������������Makefile������-I
������������������������������������������������������������������������������������������������������include���������������������������������������������subdir
���������������������include���������������������������������
INCDIR := $(shell pwd)/subdirCPPFLAGS := -I$(INCDIR)/include
���������$(shell pwd)
������������������������������������������������subdir
������������������������������������������$(INCDIR)/include
���������������������������������������������������������������������������subdir/include
������������������
���$(pwd)���������
������������������������Makefile���������������$(pwd)
���������������$(pwd)
������������shell������������������������������������������Makefile��������������������������������������������� "���������"���������������������������������������������������������������������������������������������������������
������������������Makefile������������������������������������
P := $(pwd) # ������������������������P := $(shell pwd) # ������������������������all: echo $P
������������$(pwd)
������������������������Makefile���������������������������������������������������������������������������������������������������������������Makefile������������������
t���n ������
������������������������������������������������������������������������Makefile���������������
all: echo "���������������������$(shell pwd)" echo "������������������$(INCDIR)/include"
���������������������test.mk
���������������������������make test
���������������Makefile������������������������������������������������������������������������$(shell pwd)������������������������
������
������������������������������������������������������
- ���Makefile������������
$(shell pwd)
��������������������������������������������������������� - strictify������
$(pwd)
���������������������������������������������������Makefile������������������ - ������������������������������������������������������������������������������������������������������������������������������
- ������������������������������������������������Combining $(shell pwd)���������������������������������������������
���������������������������������������������Makefile���������������������������������������������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
