JP> dir1/Makefile: JP> -------------- JP> VARIABLE = $(shell echo $$PWD) JP> JP> sources : JP> @echo VARIABLE set to ${VARIABLE}
The GNU make variable CURDIR is set by make to the current working directory of the executing make. This is probably the variable you want. Hope this helps, -- Robert -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/