#ARCH
ARCH="`uname -s`"
LINUX="Linux"
HP-UX="HP-UX"
#Main build target
all:build
build:
@if [ $(ARCH) = $(LINUX) ]; \
then \
echo $(ARCH); \
elif [ $(ARCH) = $(HP-UX) ]; \
then \
echo $(ARCH); \
else \
echo "ARCH unknow"; \
fi
Makefile if else 判断平台
最新推荐文章于 2024-06-14 16:14:15 发布