¿Cómo puedo capturar el directorio actual como una ruta absoluta en una variable make?
Me gustaría obtener el directorio actual durante la ejecución de un archivo GNUmake en una variable make.
¿Cuál es la sintaxis para hacer esto? ¿Algo así?
DIR := $(PWD)
25
Author: Ciro Santilli 新疆改造中心 六四事件 法轮功, 2010-06-16
1 answers
Um, no, $PWD
a veces se define en su entorno y por lo tanto heredado por make, pero a menudo no. Necesitas $CURDIR
.
DIR := ${CURDIR}
43
Author: bobbogo,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2010-09-09 17:59:06
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2010-09-09 17:59:06