[fpc-pascal] How to auto create the $fpctarget directory

Henry Vermaak henry.vermaak at gmail.com
Wed Oct 1 14:24:44 CEST 2008


On 01/10/2008, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> Hi,
>
> How can I auto create the $fpctarget directory?  Just specifying
> ../lib/$fpctarget/ and then compiling the project doesn't create the
> needed directory, and I get the following build error. I gather the
> compiler itself doesn't create directories at all. Could this become
> an option? Alternatively, is there some why I can query the $fpctarget
> and then in the build scripts for Linux, Windows and *BSD create the
> correct output paths, because I actually start the compile?

echo `fpc -iTP`-`fpc -iTO` gives the same string for $fpctarget, i
think.  i also think the compiler should auto create the output
directories.

henry



More information about the fpc-pascal mailing list