[fpc-pascal] command and variable substitution in fpcmake

Marc Santhoff M.Santhoff at t-online.de
Wed Aug 1 22:03:30 CEST 2007


Hi,

when using Makefiles something like this is executed at runtime, so a
variable can be set by a command:

	PWD=`pwd`

or

	PDW=$(pwd)

sets the Varaible $PWD to the current path.


If one of both forms is used in a fpcmake-file that doesn't work.

	[dist]
	destdir=`pwd`/dist

If used that way, the string "`pwd`/dist" is copied as is with no
replacement at all. I didn't try the other form because it's the
variable syntax in fpcmake-files.

How can I make command execution work?

If used in a [prerules] section it does work, which is as expected
because that section is only copied according to the manual.

TIA,
Marc





More information about the fpc-pascal mailing list