日期:2014-05-16 浏览次数:20851 次
var1=12345
var2=v12.3b
all:
@echo ==================
ifeq ($(shell echo $(var1)
------解决方案--------------------
sed 's/[0-9]//g'),)
@echo $(var1) only contain numbers
else
@echo $(var1) contain other characters
endif
ifeq ($(shell echo $(var2)
------解决方案--------------------
sed 's/[0-9]//g'),)
@echo $(var2) only ocntain numbers
else
@echo $(var2) contain other characters
endif