Follow-up Comment #2, bug #46580 (project make):

$(lastword ${MAKEFILE_LIST)) doesn't give the current makefile, it gives the
last file that was sourced.  For example:


~ cat /tmp/makefile1
$(info $(lastword ${MAKEFILE_LIST}))
include /tmp/makefile2
$(info $(lastword ${MAKEFILE_LIST}))
~ cat /tmp/makefile2
$(info $(lastword ${MAKEFILE_LIST}))
~ gmake -f /tmp/makefile1
/tmp/makefile1
/tmp/makefile2
/tmp/makefile2


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46580>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to