[solved] fpcmake lazarus / 13-General ---------------------------------------------------------------------- dbannon · 2022-03-13 07:21 I understand that the Lazarus Makefiles are generated by fpcmake. And editing a Makefile is not productive as it will be overwritten by the next run of fpcmake. Is that the case ? Docs indicate its a simple command as used below but not working for me. Note, This thread is a spin off from https://forum.lazarus.freepascal. org/index.php/topic,58631.msg437004.html but is specifically about using fpcmake Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i dbannon@dell:~/bin/Lazarus/TEST$ fpcmake -TallProcessing Makefile.fpcError: Target "linux", package "rtl" not found I have built a current main FPC, compiled with fpc322 and am in a dir with lazarus source including the Makefile.fpc - Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i dbannon@dell:~/bin/Lazarus/TEST$ which fpcmake/home/dbannon/bin/FPC/fpc- main/bin/fpcmake dbannon@dell:~/bin/Lazarus/TEST$ ls -la Makefile*-rw- rw-r-- 1 dbannon dbannon 116393 Mar 12 19:31 Makefile-rw-rw-r-- 1 dbannon dbannon  15839 Mar 12 09:59 Makefile.fpc-rw-rw-r-- 1 dbannon dbannon 116451 Mar 12 18:29 Makefile.old dbannon@dell:~/bin/Lazarus/TEST$ fpc -iVSPTPSOTO3.3.1 x86_64 x86_64 linux linux Neither the man page nor the wiki page mention anything about how fpcmake gets its config.  There is a fpcmake.ini but it appears to have mostly make template stuff and is compiled in anyway. Is there more to using fpcmake (to generate a Makefile for Lazarus) than meets the eye ? Davo ---------------------------------------------------------------------- trev · 2022-03-13 07:55 See: https://wiki.freepascal.org/Fpcmake QuoteIf you regenerate makefiles outside the fpc/ SVN tree, (e.g. for Lazarus in projects), and fpcmake complains it can't find package.fpc for the RTL package, try setting the environment variable FPCDIR to the FPC source directory using commands like the following:     Unix/Linux/OSX bash/sh # e.g. if your FPC directory is located in /location/to/fpc: export FPCDIR=/location/to/fpc You might also want to use the -v arg to see what it's doing... ---------------------------------------------------------------------- dbannon · 2022-03-13 08:36 Yeah, thanks Trev, I really thought I'd read that page, must have stopped at the bit about having to use trunk and dashed off to install trunk..... So, that works but does not produce exactly the same Makefile as original, going to have to think about that.  I MUST see exactly the same Makefile before I start editing Makefile.fpc Davo