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


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to