-
-
Save ludwigtuerme/ccf13b1f12b552c1013580a77bbfebdf to your computer and use it in GitHub Desktop.
Get Makefile root directory absolute path
This file contains 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
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) | |
test: | |
@echo $(ROOT_DIR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default, GitHub will render a tab as 8 spaces.
You can change that to 4 spaces from
Settings > Appearance > Tab size preference
.I forked the original gist because it was indented with spaces.