在 makefile 判斷目錄是否存在

OUTPUT_PATH := test

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

results matching ""

    No results matching ""