Skip to content

Instantly share code, notes, and snippets.

@benwei
Last active March 21, 2019 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benwei/4e9869f7c102de6b785abe7b9d612253 to your computer and use it in GitHub Desktop.
Save benwei/4e9869f7c102de6b785abe7b9d612253 to your computer and use it in GitHub Desktop.
current_mk_abspathname := $(abspath $(lastword $(MAKEFILE_LIST)))
current_mk_absdir := $(dir $(current_mk_abspathname))
all:
@echo "Makefile absolute pathname: $(current_mk_abspathname)" ; \
echo "Makefile absolute path: $(current_mk_absdir)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment