[fpc-devel] Changes in Makefile-system

Joost van der Sluis joost at cnoc.nl
Wed Apr 6 10:56:15 CEST 2011


On Wed, 2011-04-06 at 12:28 +0400, Sergei Gorelkin wrote:
> 02.04.2011 1:15, Joost van der Sluis пишет:
> > Hi all,
> >
> > I've just committed a change in the Makefiles for the fcl-web package.
> > The Makefile now calls fpmake to build and install the package.
> >
> Another disaster occurs when I try to use the same source tree from different OSes.
> Say first I build in Linux, it successfully creates the '/packages/fcl-web/fpmake' executable. After 
> that building from Windows fails since it attempts to run the Linux fpmake without rebuilding it.
> `make clean' from Windows does not remove Linux executable (tries to remove the 'fpmake.exe' or does 
> not remove it at all, or maybe for some other reason). Removing it by hand solves the problem.

The reason that fpmake is not removed, is that you need it to do the
clean. But maybe I can let the akefile compile fpmake, then run it to do
the cleanup, and then remove the executable again.

To solve your actual problem, we could add a suffix to the fpmake
executable name in case it is build by the Makefile. fppkg can simply
check if the existing executable does work, and if not, re-compile it. 

Joost.




More information about the fpc-devel mailing list