Created
June 23, 2021 17:37
-
-
Save mattolenik/0e21606988d9dbf99d348a63cca175df to your computer and use it in GitHub Desktop.
Get path of makefile within make, path of file itself, not working dir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAKEFILE_PATH := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) # Keep at top of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment