ファイルがあるかないかで分岐

ifeq ($(findstring text11.o,$(wildcard *.o)), )
    echo "no file named text11"
else
    rm text11.o
endif