19
Je voudrais obtenir le répertoire courant pendant un fichier GNUmake exécuté dans une variable make.Comment puis-je capturer le répertoire courant en tant que chemin absolu dans une variable make?
Quelle est la syntaxe pour le faire? Quelque chose comme ça?
DIR := $(PWD)
Doc: https://www.gnu.org/software/make/manual/html_node/Recursion.html#Recursion Note: non Posix: http://pubs.opengroup.org/onlinepubs/9699919799/ utilities/make.html En particulier, 'PWD' n'est pas mis à jour sur les invocations récursives de' make -C'. –