I need to execute some make rules conditionally, only if the Python installed is greater than a certain version (say 2.5).
I thought I could do something like execut
In the below example, I have stored the Makefile folder path to LOCAL_PKG_DIR and then use LOCAL_PKG_DIR variable in targets.
LOCAL_PKG_DIR
Makefile:
LOCAL_PKG_DIR := $(shell eval pwd) .PHONY: print print: @echo $(LOCAL_PKG_DIR)
Terminal output:
$ make print /home/amrit/folder