|
linux makefile 问题请教:if语句问题
[复制链接]
linux2.6.9内核的makefile中有一段如下语句:
prepare1: prepare2
ifneq ($(KBUILD_SRC),)
@echo ' Using $(srctree) as source for kernel'
$(Q)if [ -h $(srctree)/include/asm -o -f $(srctree)/.config ]; then \
echo " $(srctree) is not clean, please run 'make mrproper'";\
echo " in the '$(srctree)' directory.";\
/bin/false; \
fi;
$(Q)if [ ! -d include2 ]; then mkdir -p include2; fi;
$(Q)ln -fsn $(srctree)/include/asm-$(ARCH) include2/asm
endif
请问其中的$(Q)if [ -h $(srctree)/include/asm -o -f $(srctree)/.config ]; 是什么意思?其中 -h-o -f是和何作用?那里有相关的资料可以查看?
刚开始学LINUX,请各位高手多多指教。
|
|