GNU Make WIN32: absolute path to the current Make file.

Fermé
denis.beurive - Modifié par denis.beurive le 30/09/2016 à 23:07
Hello everybody,


I use to use GNU Make under UNIX, but (unfortunately), I have to work under Windows. This is not my cup of tea… and I have the MSDOS, which is a prehistoric tool. However, I have no choice.


Under UNIX, I use to use this construct in order to get the absolute path to the file that contains the Make file that is currently being interpreted by Make :


__DIR__ := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))


This works fine under UNIX.


However, under Windows, it does not work… The result is totally unexpected.


Does somebody know a reliable way to get the absolute path to the file that contains the Make file that is currently being interpreted by Make, under Windows ?


Best regards,


Denis
A voir également: