]> granicus.if.org Git - esp-idf/commitdiff
make: use `shell` command to extract version string
authorMahavir Jain <mahavir@espressif.com>
Sun, 17 Mar 2019 13:33:22 +0000 (21:33 +0800)
committerMahavir Jain <mahavir@espressif.com>
Sun, 17 Mar 2019 13:33:22 +0000 (21:33 +0800)
make/project.mk

index c214aa1910279ff1d5f01d3ac8561147875a7ef9..06c7e02da211c58e5624dc8e97e68a84736d5e0f 100644 (file)
@@ -329,7 +329,7 @@ endif
 ifeq ("$(wildcard ${IDF_PATH}/version.txt)","")
 IDF_VER_T := $(shell cd ${IDF_PATH} && git describe --always --tags --dirty)
 else
-IDF_VER_T := `cat ${IDF_PATH}/version.txt`
+IDF_VER_T := $(shell cat ${IDF_PATH}/version.txt)
 endif
 IDF_VER := $(shell echo "$(IDF_VER_T)"  | cut -c 1-31)