Set GNUSTEP_MAKEFILES

Set GNUSTEP_MAKEFILES

GNUstep-make resolves the files it includes relative to the GNUSTEP_MAKEFILES environment variable. Often, the value of this is /Library/GNUstep/Makefiles, but you can set it correctly by running this command:

% export GNUSTEP_MAKEFILES=`gnustep-config --var=GNUSTEP_MAKEFILES`

If you get build errors about missing /common.make, it’s because you didn’t set this variable. The other way to set it is to source the GNUstep.sh script (or GNUstep.csh on C-style shells like tcsh), but as this script is inside the GNUSTEP_MAKEFILES folder this isn’t a good way to discover the location. You source the script in a .rc or .profile file.

Tags: