OUTPUT_PATH := test all: ifeq "$(wildcard $(OUTPUT_PATH))" "" mkdir $(OUTPUT_PATH) echo "directory not existed" else echo "directory existed" endif